]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
tools/cephfs: set dir_layout when injecting inodes
authorJohn Spray <john.spray@redhat.com>
Wed, 29 Mar 2017 18:38:37 +0000 (19:38 +0100)
committerJohn Spray <john.spray@redhat.com>
Wed, 12 Apr 2017 20:30:51 +0000 (16:30 -0400)
commit7d6d542885bd29b71214f9ca52bd26e9183c5d01
tree9fdc1ae8befe63778cc08ed033707dd9379d3dbe
parent7d12a7e184e11c27fcf88dcf3df38e6efd7f22d1
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>
src/tools/cephfs/DataScan.cc