Directories and dentries are initialized with value 0 which makes detecting a
null (or placeholder) dentry created via Client::get_or_create difficult. We
already do checks to see if a dentry is invalid when the directory's shared_gen
changes so use an invalid value for these synthetic dentries until they can be
appropriately updated from Client::update_dentry_lease.
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
(cherry picked from commit
4f8d1d38a38d44ec9984912effdb9d166128ccb1)
utime_t lease_ttl;
uint64_t lease_gen = 0;
ceph_seq_t lease_seq = 0;
- int cap_shared_gen = 0;
+ int cap_shared_gen = -1;
std::string alternate_name;
bool is_renaming = false;