]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: include dirty xattrs state in snapped caps
authorSage Weil <sage@newdream.net>
Sun, 22 Aug 2010 22:03:56 +0000 (15:03 -0700)
committerSage Weil <sage@newdream.net>
Sun, 22 Aug 2010 22:16:46 +0000 (15:16 -0700)
commit15b66361d44cf18f863363031b78919090600a08
tree4224efef4f83bcf629934d6da17d2c122b49ba5c
parentf8b64b95aab8a90e549cabda925f5542bb1f432e
ceph: include dirty xattrs state in snapped caps

When we snapshot dirty metadata that needs to be written back to the MDS,
include dirty xattr metadata.  Make the capsnap reference the encoded
xattr blob so that it will be written back in the FLUSHSNAP op.

Also fix the capsnap creation guard to include dirty auth or file bits,
not just tests specific to dirty file data or file writes in progress
(this fixes auth metadata writeback).

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/caps.c
fs/ceph/snap.c
fs/ceph/super.h
fs/ceph/xattr.c