]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools/cephfs: set dir_layout when injecting inodes 14574/head
authorJohn Spray <john.spray@redhat.com>
Wed, 29 Mar 2017 18:38:37 +0000 (19:38 +0100)
committerNathan Cutler <ncutler@suse.com>
Fri, 14 Apr 2017 22:00:16 +0000 (00:00 +0200)
commit55a15b18e7a2188f5ff74b5fa26ef0316ec9c005
tree08d6bdbfdd4c5687c80a6227b7de03b82509ffd2
parenteb84959bac369dbb86674f9e4225ba1c836c104c
tools/cephfs: set dir_layout when injecting inodes

When we left this as zero, the MDS would interpret it was HASH_LINUX
rather than the default HASH_RJENKINS.  Potentially that
could cause problems if there perhaps were already dirfrags in
the metadata pool that were set up using rjenkins.  Mainly
it just seems more appropriate to explicitly set this field
rather than hit the fallback behaviour.

Related: http://tracker.ceph.com/issues/19406
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 7d6d542885bd29b71214f9ca52bd26e9183c5d01)
src/tools/cephfs/DataScan.cc