z/OS UNIX System Services File System Interface Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Considerations for deleting files

z/OS UNIX System Services File System Interface Reference
SA23-2285-00

When the target of vn_remove – or an old file from a vn_rename – has a Share Reservation on it that denies opening the file for write, the attempt to delete the file is rejected with RC=EBUSY.

When the last link to a file is removed the file's data should not be discarded until the sum of all the (Opens_for_read + Opens_for_write + Internal_Opens) is zero.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014