]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix client cap condition
authorSage Weil <sage@newdream.net>
Thu, 24 Jun 2010 22:50:47 +0000 (15:50 -0700)
committerSage Weil <sage@newdream.net>
Thu, 24 Jun 2010 23:49:52 +0000 (16:49 -0700)
commit9795fabb63f6b6b291c1054ca578b213a6a0bf83
treead4dd1469eeb9743d7b1473df299b0cbfe8653a5
parent478fe72362267be40eee99b3f892ce4a53170efc
mds: fix client cap condition

In 551a12f52e36 we fixed a bug with cow_inode() where the
cap->client_follows didn't match last precisely.  Instead, we compare
to first.  But the == is too strict.. cap follows that is equal _or_older_
than the clone's first should be copied to the clone inode.

This fixes the simple test case
 $ echo asdf > bar ; mkdir .snap/bar ; rm bar ; cat .snap/bar/bar
 asdf
(Previously we would get nothing unless we waited for the cap to flush on
its own.)
src/mds/MDCache.cc