]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix snapid tests in encode_inodestat
authorSage Weil <sage@newdream.net>
Tue, 2 Mar 2010 23:35:49 +0000 (15:35 -0800)
committerSage Weil <sage@newdream.net>
Wed, 3 Mar 2010 22:40:28 +0000 (14:40 -0800)
commite307f2b76bf777c49f6b26856746ca9c45860875
tree0b7e74d47b275378554a669bd0efd6beeb45aaf9
parent0ee0a8d4654dbb14f67cb63be9d41eb7182961dd
mds: fix snapid tests in encode_inodestat

Snapid should always be non-zero; assert as much.

This fixes bug where valid was set to false when stating dir
inodes on non-auth mds's, which in turn returned no caps to
clients and, in the case of cfuse, caused a crash.
src/mds/CInode.cc