]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: make new inodes follow dn->first
authorSage Weil <sage@newdream.net>
Mon, 16 Aug 2010 23:01:30 +0000 (16:01 -0700)
committerSage Weil <sage@newdream.net>
Mon, 16 Aug 2010 23:01:30 +0000 (16:01 -0700)
commitcc8f5ac47c77d1e336e16d8deb024d507e0e8c59
tree5ce62f6680167198ebffc29da8e5b91e8493c035
parent2921e1350689627d74869b8a593c170ad5515b54
mds: make new inodes follow dn->first

We can get a dn->first that is greater than the parent dir's seq.  Notably,
when we do something like

 mkdir foo
 mkdir foo/.snap/a
 rmdir foo/.snap/a
 rmdir foo

Here, the foo dentry has a high seq, and subsequent mkdir foo should make
sure we give the new foo dir inode the same seq (and not a lower one from
the parent).  Otherwise, things get confused later on.
src/mds/Server.cc