| Main index | Section 9 | Options |
#include <sys/param.h>
#include <sys/vnode.h>
Its arguments are:
| vp | |
| The vnode of the file. | |
| offset | |
| The start of the range to deallocate storage in the file. | |
| len | |
| The length of the range to deallocate storage in the file. | |
| flags | |
| The flags of this call. This should be set to 0 for now. | |
| ioflag | |
| Directives and hints to be given to the file system. | |
| cred | |
| The credentials of the caller. | |
*offset and *len are updated to reflect the portion of the range that still needs to be zeroed/deallocated on return. Partial result is considered a successful operation. For a non-partial successful completion, *len is updated to be the value 0, and *offset is incremented by the number of bytes zeroed before the end-of-file.
| [EINVAL] | |
| Invalid offset, ,, len or flags parameters are passed into this VOP call. | |
| [ENODEV] | |
| The vnode type is not supported by this VOP call. | |
| [ENOSPC] | |
| The file system is full. | |
| [EPERM] | |
| An append-only flag is set on the file, but the caller is attempting to zero before the current end of file. | |
| VOP_DEALLOCATE (9) | August 25, 2021 |
| Main index | Section 9 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | "I liken starting one's computing career with Unix, say as an undergraduate, to being born in East Africa. It is intolerably hot, your body is covered with lice and flies, you are malnourished and you suffer from numerous curable diseases. But, as far as young East Africans can tell, this is simply the natural condition and they live within it. By the time they find out differently, it is too late. They already think that the writing of shell scripts is a natural act." | ” |
| — Ken Pier, Xerox PARC | ||