<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffcc" text="#000066">
<tt>Signed-off-by: Marcos Matsunaga <a class="moz-txt-link-rfc2396E" href="mailto:Marcos.Matsunaga@oracle.com"><Marcos.Matsunaga@oracle.com></a></tt><br>
<pre class="moz-signature" cols="72">Regards,
Marcos Eduardo Matsunaga
Oracle USA
Linux Engineering
“The statements and opinions expressed here are my own and do not
necessarily represent those of Oracle Corporation.”
</pre>
<br>
<br>
Tristan Ye wrote:
<blockquote
cite="mid:1255336694-18952-1-git-send-email-tristan.ye@oracle.com"
type="cite">
<pre wrap="">We need to add 'sudo -u root' prefix in front of mkfs.ocfs2,mount.ocfs2
etc to let it become workable for common user.
Signed-off-by: Tristan Ye <a class="moz-txt-link-rfc2396E" href="mailto:tristan.ye@oracle.com"><tristan.ye@oracle.com></a>
---
programs/mkfs-tests/mkfs-test.sh | 6 +++---
programs/tunefs-test/tunefs-test.sh | 14 +++++++-------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/programs/mkfs-tests/mkfs-test.sh b/programs/mkfs-tests/mkfs-test.sh
index e8949f2..ef37aec 100755
--- a/programs/mkfs-tests/mkfs-test.sh
+++ b/programs/mkfs-tests/mkfs-test.sh
@@ -235,9 +235,9 @@ do_bitmap_test() {
        do_consume_and_delete 1
}
-MKFS=`which mkfs.ocfs2`
-FSCK=`which fsck.ocfs2`
-DEBUGFS=`which debugfs.ocfs2`
+MKFS="`which sudo` -u root `which mkfs.ocfs2`"
+FSCK="`which sudo` -u root `which fsck.ocfs2`"
+DEBUGFS="`which sudo` -u root `which debugfs.ocfs2`"
GREP=`which grep`
DATE=`which date`
AWK=`which awk`
diff --git a/programs/tunefs-test/tunefs-test.sh b/programs/tunefs-test/tunefs-test.sh
index 4033b94..19acdb1 100755
--- a/programs/tunefs-test/tunefs-test.sh
+++ b/programs/tunefs-test/tunefs-test.sh
@@ -25,13 +25,13 @@
. `dirname ${0}`/config.sh
-MKFS_BIN=`which mkfs.ocfs2`
-FSCK_BIN=`which fsck.ocfs2`
-DEBUGFS_BIN=`which debugfs.ocfs2`
-TUNEFS_BIN=`which tunefs.ocfs2`
-MOUNTED_BIN=`which mounted.ocfs2`
-MOUNT_BIN=`which mount.ocfs2`
-UMOUNT_BIN=`which umount`
+MKFS_BIN="`which sudo` -u root `which mkfs.ocfs2`"
+FSCK_BIN="`which sudo` -u root `which fsck.ocfs2`"
+DEBUGFS_BIN="`which sudo` -u root `which debugfs.ocfs2`"
+TUNEFS_BIN="`which sudo` -u root `which tunefs.ocfs2`"
+MOUNTED_BIN="`which sudo` -u root `which mounted.ocfs2`"
+MOUNT_BIN="`which sudo` -u root `which mount.ocfs2`"
+UMOUNT_BIN="`which sudo` -u root `which umount`"
TEE_BIN=`which tee`
MKDIR_BIN=`which mkdir`
RM_BIN=`which rm`
</pre>
</blockquote>
</body>
</html>