[Ocfs2-test-devel] [PATCH 1/1] Ocfs2-test: Fix a minor issue for mkfs-test.sh and tunefs-test.sh
Marcos E. Matsunaga
Marcos.Matsunaga at oracle.com
Mon Oct 12 06:59:06 PDT 2009
Signed-off-by: Marcos Matsunaga <Marcos.Matsunaga at oracle.com>
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.”
Tristan Ye wrote:
> 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 <tristan.ye at oracle.com>
> ---
> 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`
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-test-devel/attachments/20091012/9b1df375/attachment.html
More information about the Ocfs2-test-devel
mailing list