]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix snaprealm split for dir inode
authorSage Weil <sage.weil@dreamhost.com>
Wed, 29 Jun 2011 04:47:01 +0000 (21:47 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Wed, 29 Jun 2011 16:46:35 +0000 (09:46 -0700)
commit92e0fac0a8356b743687b1ee29e9d0ac8cf30358
treedd394ef88a1ff5d10308c8a52334aab3583524d7
parentb5510a6641fee07231c1e010a8d0c74e4cac7bea
mds: fix snaprealm split for dir inode

The snaprealm root directory inode belongs to the snaprealm, at least
currently.  This make split_at() consistent with the non-directory case
at the top of the method, and prevents a crash later down the line when we
try to tear down the parent snaprealm and we aren't part of it.

Fixes: #1238
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/mds/snap.cc