]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
_populate_fs should use OPTIND when getopts is used
authorAnand Jain <Anand.Jain@oracle.com>
Thu, 20 Oct 2011 15:41:22 +0000 (23:41 +0800)
committerChristoph Hellwig <hch@lst.de>
Wed, 2 Nov 2011 21:04:42 +0000 (21:04 +0000)
Signed-off-by: Anand Jain <Anand.Jain@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
common.rc

index e3c4e679b2c8e90089cb7e3014d810d0f3f56d02..cab0b646a62a8f78c03e9ccec21844c9dbe90f44 100644 (file)
--- a/common.rc
+++ b/common.rc
@@ -1547,6 +1547,7 @@ _populate_fs()
     root=root       # path of initial root of directory tree
     randomdata=false # -x data type urandom or zero
 
+    OPTIND=1
     while getopts "d:f:n:r:s:v:x" c
     do
         case $c in