X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fclient%2FFh.h;fp=src%2Fceph%2Fsrc%2Fclient%2FFh.h;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=33733a5e1c16c1e7d8a81f1d06eeda99e91dd2c4;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/client/Fh.h b/src/ceph/src/client/Fh.h deleted file mode 100644 index 33733a5..0000000 --- a/src/ceph/src/client/Fh.h +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef CEPH_CLIENT_FH_H -#define CEPH_CLIENT_FH_H - -#include "common/Readahead.h" -#include "include/types.h" -#include "InodeRef.h" -#include "UserPerm.h" - -class Cond; -class ceph_lock_state_t; -class Inode; - -// file handle for any open file state - -struct Fh { - InodeRef inode; - int _ref; - loff_t pos; - int mds; // have to talk to mds we opened with (for now) - int mode; // the mode i opened the file with - - int flags; - bool pos_locked; // pos is currently in use - list pos_waiters; // waiters for pos - - UserPerm actor_perms; // perms I opened the file with - - Readahead readahead; - - // file lock - ceph_lock_state_t *fcntl_locks; - ceph_lock_state_t *flock_locks; - - // IO error encountered by any writeback on this Inode while - // this Fh existed (i.e. an fsync on another Fh will still show - // up as an async_err here because it could have been the same - // bytes we wrote via this Fh). - int async_err = {0}; - - int take_async_err() - { - int e = async_err; - async_err = 0; - return e; - } - - Fh(Inode *in); - ~Fh(); - void get() { ++_ref; } - int put() { return --_ref; } -}; - - -#endif