]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
chain_xattr: s/onechunk/skip_chain_cleanup, add ensure_single_attr
authorSamuel Just <sjust@redhat.com>
Fri, 1 Apr 2016 23:56:43 +0000 (16:56 -0700)
committerSamuel Just <sjust@redhat.com>
Fri, 8 Apr 2016 21:16:04 +0000 (14:16 -0700)
commit8dc033078f5597bd87581c66678ba7e7c6e6bc1f
treeb6e47c19d89606c2583e370fedf94192f64547af
parent21487fd0c200f470eacbcc66aba3c9c4092dee6f
chain_xattr: s/onechunk/skip_chain_cleanup, add ensure_single_attr

onechunk was a deceptive name since it didn't actually ensure that
a single chunk would be used.  Rename to ensure_single_attr.  Also,
add a parameter to ensure that we use a single attribute.  We need
these to be distinct since we have LFN attrs which have been split
over 254 byte xattrs since after hammer which we need to correctly
clean up.  However, we need to ensure going forward that those attrs
are never split over more than one chunk -- it's not atomic.
Further, skip_chain_cleanup should imply ensure_single_attr, so make
them template params and add a static check to make sure we don't
mess this up in the future.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/os/filestore/FileStore.cc
src/os/filestore/IndexManager.cc
src/os/filestore/chain_xattr.cc
src/os/filestore/chain_xattr.h