]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
kclient: fix cap_snap flush to reference correct snap
authorSage Weil <sage@newdream.net>
Fri, 17 Oct 2008 21:12:35 +0000 (14:12 -0700)
committerSage Weil <sage@newdream.net>
Fri, 17 Oct 2008 21:12:35 +0000 (14:12 -0700)
commit378de9bfe35999105392b2ff152e0bb2eaef4de2
treed8f992232f83484bf4fd613913f748a4bce585c9
parent57709b27a1cc6c50acbb8f4cf07d4b4be184b19f
kclient: fix cap_snap flush to reference correct snap

The client was passing the snapid the data was to fall into
instead of the snap it _follows_ (which is now the mds tends
to look at things).  Use snapid-1 instead.  This fixes the
problem of files being written while the snapshot was taken
appearing as 0 bytes in the snapshot.
src/kernel/snap.c