ma->ma_valid = 0;
mutex_lock(&o->mot_lov_mutex);
if (!(o->mot_flags & MOF_LOV_CREATED)) {
- if (p != NULL && !fid_is_md_operative(mdt_object_fid(p)))
- GOTO(unlock, rc = -EPERM);
-
rc = mdo_create_data(info->mti_env,
p ? mdt_object_child(p) : NULL,
mdt_object_child(o), spec, ma);
if (rc == 0 && ma->ma_valid & MA_LOV)
o->mot_flags |= MOF_LOV_CREATED;
}
-unlock:
+
mutex_unlock(&o->mot_lov_mutex);
RETURN(rc);
}
$OPENFILE -f O_LOV_DELAY_CREATE:O_CREAT $test_dir/$tfile-2
fid=$($LFS path2fid $test_dir/$tfile-2)
- echo "cp /etc/passwd $MOUNT/.lustre/fid/$fid"
- cp /etc/passwd $MOUNT/.lustre/fid/$fid &&
- error "create lov data thru .lustre should fail."
+
+ if [ $(lustre_version_code $SINGLEMDS) -ge $(version_code 2.6.50) ]
+ then # LU-5424
+ echo "cp /etc/passwd $MOUNT/.lustre/fid/$fid"
+ cp /etc/passwd $MOUNT/.lustre/fid/$fid ||
+ error "create lov data thru .lustre failed"
+ fi
echo "cp /etc/passwd $test_dir/$tfile-2"
cp /etc/passwd $test_dir/$tfile-2 ||
error "copy to $test_dir/$tfile-2 failed."
local rc=0
mkdir -p $DIR/$tdir
- $LFS mkdir -i $MDTIDX -c $MDSCOUNT $remote_dir ||
+ $LFS mkdir -i $MDTIDX $remote_dir ||
error "create remote directory failed"
cp /etc/hosts $remote_dir/$tfile