]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/FileStore: use _fgetattrs() for _setattrs()
authorSage Weil <sage@inktank.com>
Sat, 27 Oct 2012 22:08:48 +0000 (15:08 -0700)
committerSage Weil <sage@inktank.com>
Mon, 5 Nov 2012 08:13:52 +0000 (00:13 -0800)
commitcab1d6356d91b3dc325a41eb1a39707072648d37
tree4bb5fde1a7dd1618fcc5463855fb3e85d65906d4
parentad5ac17f0b227b307d3d57ea445bbdd582bcf93b
os/FileStore: use _fgetattrs() for _setattrs()

If we're using omap for spillover, we need to load the xattrs so that
they can be removed if necessary.

Note that we subtly change the failure behavior here to be more
strict: if we can't open the file, we fail, whereas before we did not.

Signed-off-by: Sage Weil <sage@inktank.com>
src/os/FileStore.cc