}
}
- if (rc != 0)
- GOTO(unlock, rc);
-
- rc = dt_attr_set(env, orphan, la, th, BYPASS_CAPA);
+ if (rc == 0)
+ rc = dt_attr_set(env, orphan, la, th, BYPASS_CAPA);
GOTO(stop, rc = (rc == 0 ? 1 : rc));
rc = ptlrpc_queue_wait(req);
ptlrpc_req_finished(req);
- if (rc == 0)
+ if (rc == 0) {
+ orphan->do_lu.lo_header->loh_attr |= LOHA_EXISTS;
rc = 1;
- else if (rc == -EEXIST)
+ } else if (rc == -EEXIST) {
+ orphan->do_lu.lo_header->loh_attr |= LOHA_EXISTS;
rc = 0;
+ }
GOTO(out, rc);
# do not use too small MDSSIZE/OSTSIZE, which affect the default journal size
MDSSIZE=100000
OSTSIZE=100000
-# no need too much OSTs, to reduce the format/start/stop overhead
+# no need too many OSTs, to reduce the format/start/stop overhead
[ $OSTCOUNT -gt 4 ] && OSTCOUNT=4
# build up a clean test environment.
test_29c() {
echo "#####"
- echo "There are too much hard links to the object, and exceeds the
- echo object's linkEA limitation, as to NOT all the known name entries"
+ echo "There are too many hard links to the object, and exceeds the"
+ echo "object's linkEA limitation, as to NOT all the known name entries"
echo "will be recorded in the linkEA. Under such case, LFSCK should"
echo "skip the nlink verification for this object."
echo "#####"