]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: lseek shouldn't do permission checking
authorJeff Layton <jlayton@redhat.com>
Wed, 12 Oct 2016 11:04:42 +0000 (07:04 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 12 Oct 2016 11:04:42 +0000 (07:04 -0400)
commitdb2e7e0811679b4c284e105536ebf3327cc02ffc
tree702de3195da9c6e1326c81e167bb6e3865401822
parentb464161d938dbacd03bdea72af67571d35d7c035
client: lseek shouldn't do permission checking

With the addition of the UserPerm changes, ceph_lseek started
checking for open permissions using the default mount perms. lseek
should not require those permissions though, as it operates on an
already-opened file descriptor. Remove the perms argument from most
of these functions.

Fixes: be9e43e2da41e91ffd8577dfd0b890cdb361a08e
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/client/Client.cc
src/client/Client.h
src/client/SyntheticClient.cc
src/libcephfs.cc