16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Exit Values<br />

Related Information<br />

mv, rm, rmdir<br />

0 Successful completion<br />

1 Failure due to any of the following:<br />

v No write permission for directory containing link to be removed<br />

v Attempting to unlink a file that does not exist<br />

v Pathname specified is a directory<br />

2 Failure due to incorrect number of arguments specified<br />

unmount — Remove a file system from the file hierarchy<br />

Format<br />

Description<br />

Options<br />

unmount [–R] [–v] [–o normal|drain|immediate|force|reset] pathname...<br />

The unmount shell command, located in /usr/sbin, unmounts file systems.<br />

Note: An unmount user must have UID(0) or at least have READ access to the<br />

SUPERUSER.FILESYS.MOUNT resource found in the <strong>UNIX</strong>PRIV class.<br />

–R Unmounts the specified file system and all the file systems below it in the<br />

file system hierarchy.<br />

–o normal|drain|immediate|force|reset<br />

normal<br />

unlink<br />

Specifies that if no user is accessing any of the files in the specified<br />

file system, the system processes the unmount request. Otherwise,<br />

the system rejects the unmount request. This is the default<br />

drain Specifies that an unmount drain request is to be made. The system<br />

will wait for all use of the file system to be ended normally before<br />

the unmount request is processed or until another UNMOUNT<br />

command is issued.<br />

Note: Currently unmount –o drain is not supported in a sysplex. If<br />

an unmount –o drain is issued in a sysplex, the following<br />

behavior is exhibited:<br />

v If there is no activity in the file system, unmount -o drain<br />

will perform the unmount, but it will behave like an<br />

unmount normal.<br />

v If there is activity in the file system, unmount -o drain will<br />

return a Return_value of -1 with Return_code EINVAL and<br />

Reason_code JrNotSupInSysplex.<br />

immediate<br />

The system will unmount the file system immediately. Any users<br />

accessing files in the specified file system will receive failing return<br />

Chapter 2. Shell command descriptions 729

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!