]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ceph: direct requests in snapped namespace based on nonsnap parent
authorSage Weil <sage@newdream.net>
Mon, 16 Aug 2010 16:21:27 +0000 (09:21 -0700)
committerSage Weil <sage@newdream.net>
Sun, 22 Aug 2010 22:16:48 +0000 (15:16 -0700)
commiteb6bb1c5bdc6e455a9d16cb845cc65afc9b0a617
tree8bbdd454c7a528b7a9f7d84bf084311b7433757f
parented326044489ed89c740c50a3df5dffc9c3b20b96
ceph: direct requests in snapped namespace based on nonsnap parent

When making a request in the virtual snapdir or a snapped portion of the
namespace, we should choose the MDS based on the first nonsnap parent (and
its caps).  If that is not the best place, we will get forward hints to
find the right MDS in the cluster.  This fixes ESTALE errors when using
the .snap directory and namespace with multiple MDSs.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/mds_client.c