Whamcloud - gitweb
- fixed ROOT setting up. If it is not empty, it should not be rewritten by "/r".
authoryury <yury>
Mon, 28 Feb 2005 16:17:26 +0000 (16:17 +0000)
committeryury <yury>
Mon, 28 Feb 2005 16:17:26 +0000 (16:17 +0000)
lustre/mds/mds_reint.c
lustre/tests/test-framework.sh

index 5eefba5..4f2e7fd 100644 (file)
@@ -702,7 +702,7 @@ static int mds_reint_create(struct mds_update_record *rec, int offset,
 
                         rc = vfs_mkdir(dir, dchild, rec->ur_mode);
                         if (rc) {
-                                CERROR("Can't create dir %s, rc = %d\n",
+                                CERROR("Can't create dir \"%s\", rc = %d\n",
                                        dchild->d_name.name, rc);
                                 GOTO(cleanup, rc);
                         }
index c0f9c0f..c0f8ccd 100644 (file)
@@ -29,7 +29,7 @@ init_test_env() {
     export XMLCONFIG=${XMLCONFIG:-${TESTSUITE}.xml}
     export LTESTDIR=${LTESTDIR:-$LUSTRE/../ltest}
 
-    [ -d /r ] && export ROOT=/r
+    [ -d /r ] && test "x$ROOT" = "x" && export ROOT=/r
     export TMP=${TMP:-$ROOT/tmp}
 
     export PATH=:$PATH:$LUSTRE/utils:$LUSTRE/tests