]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "client/fuse_ll: fully initialize callback struct"
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Thu, 3 Feb 2011 15:50:54 +0000 (07:50 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Thu, 3 Feb 2011 15:50:54 +0000 (07:50 -0800)
Older build environments may not have all the fuse function ptrs that
are present in newer ones. It's best to just let them all silently be
set to 0.

This reverts commit 516ac99bb8c16614757f3b61f4bf266e4531861e.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/client/fuse_ll.cc

index c647b77fe1b57c7db103d2765c18880ffa064e48..ab0b78d2358ccb799d25f7d0a5332fdd5a7d6ec8 100644 (file)
@@ -445,7 +445,7 @@ static void do_init(void *foo, fuse_conn_info *bar)
   }
 }
 
-const static struct fuse_lowlevel_ops ceph_ll_oper = {
+static struct fuse_lowlevel_ops ceph_ll_oper = {
  init: do_init,
  destroy: 0,
  lookup: ceph_ll_lookup,
@@ -479,9 +479,7 @@ const static struct fuse_lowlevel_ops ceph_ll_oper = {
  create: ceph_ll_create,
  getlk: 0,
  setlk: 0,
- bmap : 0,
- ioctl : 0,
- poll : 0,
+ bmap: 0
 };
 
 int ceph_fuse_ll_main(Client *c, int argc, const char *argv[], int fd)