• Mark Fasheh's avatar
    ocfs2: Support xfs style space reservation ioctls · b2580103
    Mark Fasheh authored
    We re-use the RESVSP/UNRESVSP ioctls from xfs which allow the user to
    allocate and deallocate regions to a file without zeroing data or changing
    i_size.
    
    Though renamed, the structure passed in from user is identical to struct
    xfs_flock64. The three fields that are actually used right now are l_whence,
    l_start and l_len.
    
    This should get ocfs2 immediate compatibility with userspace software using
    the pre-existing xfs ioctls.
    Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
    b2580103
ioctl.c 3.53 KB