]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: don't journal src when not auth on rename
authorSage Weil <sage@newdream.net>
Fri, 6 May 2011 20:14:42 +0000 (13:14 -0700)
committerSage Weil <sage@newdream.net>
Fri, 6 May 2011 20:15:18 +0000 (13:15 -0700)
commitf757f134e964c8d3387b915c4e8f5309b23935aa
tree09e6c411b8f48665a57ba37bd0c8894dddbfc2f8
parent621af5e319784e25240c4bd40129d37497f03ccc
mds: don't journal src when not auth on rename

If we aren't auth for the srcdn, don't put it in the journal, or else we'll
barf on journal replay.

This fixes a crash reproduced with

sudo mkdir mnt/foo
sudo touch mnt/foo/a
sudo ln mnt/foo/a mnt/foo/b
sudo rm mnt/foo/a

sudo mkdir mnt/bar
sudo touch mnt/bar/nothing

./ceph mds tell 0 export_dir /bar 1

sudo mv mnt/foo/b mnt/bar/b

+ mds restart.

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/Server.cc