fs: handle SEEK_HOLE/SEEK_DATA properly in all fs's that define their own llseek
This converts everybody to handle SEEK_HOLE/SEEK_DATA properly. In some cases we just return -EINVAL, in others we do the normal generic thing, and in others we're simply making sure that the properly due-dilligence is done. For example in NFS/CIFS we need to make sure the file size is update properly for the SEEK_HOLE and SEEK_DATA case, but since it calls the generic llseek stuff itself that is all we have to do. Thanks, Signed-off-by:Josef Bacik <josef@redhat.com> Signed-off-by:
Al Viro <viro@zeniv.linux.org.uk>
Showing
- fs/block_dev.c 8 additions, 3 deletionsfs/block_dev.c
- fs/ceph/dir.c 7 additions, 1 deletionfs/ceph/dir.c
- fs/ceph/file.c 18 additions, 2 deletionsfs/ceph/file.c
- fs/cifs/cifsfs.c 5 additions, 2 deletionsfs/cifs/cifsfs.c
- fs/fuse/file.c 19 additions, 2 deletionsfs/fuse/file.c
- fs/hpfs/dir.c 4 additions, 0 deletionsfs/hpfs/dir.c
- fs/nfs/file.c 5 additions, 2 deletionsfs/nfs/file.c
Loading
Please register or sign in to comment