LASSERT(buf != NULL && buf->lb_buf != NULL);
lum = buf->lb_buf;
- CDEBUG(D_OTHER, "set default stripe_count # %u stripe_offset %d\n",
+ CDEBUG(D_INFO,
+ "set default stripe_count # %u stripe_offset %d hash %u\n",
le32_to_cpu(lum->lum_stripe_count),
- (int)le32_to_cpu(lum->lum_stripe_offset));
+ (int)le32_to_cpu(lum->lum_stripe_offset),
+ le32_to_cpu(lum->lum_hash_type));
if (LMVEA_DELETE_VALUES((le32_to_cpu(lum->lum_stripe_count)),
le32_to_cpu(lum->lum_stripe_offset)) &&
le32_to_cpu(lum->lum_magic) == LMV_USER_MAGIC &&
- le32_to_cpu(lum->lum_hash_type) == LMV_HASH_TYPE_UNKNOWN) {
+ le32_to_cpu(lum->lum_hash_type) != LMV_HASH_TYPE_SPACE) {
rc = lod_xattr_del_internal(env, dt, name, th);
if (rc == -ENODATA)
rc = 0;
done
[ $((max - min)) -gt $MDSCOUNT ] ||
error "subdirs shouldn't be evenly distributed"
+
+ which getfattr > /dev/null 2>&1 || skip_env "no getfattr command"
+
+ $LFS setdirstripe -D -d $DIR/$tdir || error "setdirstripe -d failed"
+ getfattr -n trusted.dmv $DIR/$tdir && error "default dir layout exists"
+ true
}
run_test 413b "mkdir with balanced space usage"