linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Running xfstests on logical volumes
@ 2014-05-15 10:05 Sankar P
  2014-05-15 10:56 ` Lukáš Czerner
  2014-05-15 11:27 ` Azat Khuzhin
  0 siblings, 2 replies; 4+ messages in thread
From: Sankar P @ 2014-05-15 10:05 UTC (permalink / raw)
  To: linux-fsdevel

Hi,

I am trying to run the generic group of tests, on an out-of-tree
filesystem http://en.wikipedia.org/wiki/Novell_Storage_Services

I run as:
TEST_DEV=NSSVOL TEST_DIR=/media/nss/NSSVOL FSTYP=nssvol ./check -g dir 001

The volume NSSVOL is a logical device and not an actual device. When I
run the xfstests, I get an error:

common/config: Error: $TEST_DEV (NSSVOL) is not a block device or a
NFS filesystem

How do I resolve this ? Is it possible to test such logical devices ?
Also, the filesystem does not have a fsck too, if it matters. I could
not get any information about this from README. I am running xfstests
current git head.

-- 
Sankar P
http://psankar.blogspot.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Running xfstests on logical volumes
  2014-05-15 10:05 Running xfstests on logical volumes Sankar P
@ 2014-05-15 10:56 ` Lukáš Czerner
  2014-05-15 12:53   ` Theodore Ts'o
  2014-05-15 11:27 ` Azat Khuzhin
  1 sibling, 1 reply; 4+ messages in thread
From: Lukáš Czerner @ 2014-05-15 10:56 UTC (permalink / raw)
  To: Sankar P; +Cc: linux-fsdevel

On Thu, 15 May 2014, Sankar P wrote:

> Date: Thu, 15 May 2014 15:35:37 +0530
> From: Sankar P <sankar.curiosity@gmail.com>
> To: linux-fsdevel@vger.kernel.org
> Subject: Running xfstests on logical volumes
> 
> Hi,
> 
> I am trying to run the generic group of tests, on an out-of-tree
> filesystem http://en.wikipedia.org/wiki/Novell_Storage_Services
> 
> I run as:
> TEST_DEV=NSSVOL TEST_DIR=/media/nss/NSSVOL FSTYP=nssvol ./check -g dir 001
> 
> The volume NSSVOL is a logical device and not an actual device. When I
> run the xfstests, I get an error:
> 
> common/config: Error: $TEST_DEV (NSSVOL) is not a block device or a
> NFS filesystem
> 
> How do I resolve this ? Is it possible to test such logical devices ?

I do not know of any other way other than modify xfstests sources,
specifically common/rc helpers, common/config checks and possibly
more and update mkfs and fsck routines. xfstests simply expects
block device or NFS, so you'll have to teach it to understand your
file system as well.

> Also, the filesystem does not have a fsck too, if it matters. I could
> not get any information about this from README. I am running xfstests
> current git head.

-Lukas

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Running xfstests on logical volumes
  2014-05-15 10:05 Running xfstests on logical volumes Sankar P
  2014-05-15 10:56 ` Lukáš Czerner
@ 2014-05-15 11:27 ` Azat Khuzhin
  1 sibling, 0 replies; 4+ messages in thread
From: Azat Khuzhin @ 2014-05-15 11:27 UTC (permalink / raw)
  To: Sankar P; +Cc: linux-fsdevel

On Thu, May 15, 2014 at 03:35:37PM +0530, Sankar P wrote:
> Hi,
> 
> I am trying to run the generic group of tests, on an out-of-tree
> filesystem http://en.wikipedia.org/wiki/Novell_Storage_Services
> 
> I run as:
> TEST_DEV=NSSVOL TEST_DIR=/media/nss/NSSVOL FSTYP=nssvol ./check -g dir 001
> 
> The volume NSSVOL is a logical device and not an actual device. When I
> run the xfstests, I get an error:
> 
> common/config: Error: $TEST_DEV (NSSVOL) is not a block device or a
> NFS filesystem
> 
> How do I resolve this ? Is it possible to test such logical devices ?
> Also, the filesystem does not have a fsck too, if it matters. I could
> not get any information about this from README. I am running xfstests
> current git head.

Hi Sankar,

As for mkfs, you could just symlinking /bin/true, somethink like this:
$ ln -s /bin/true /sbin/fsck.$FSTYP

> 
> -- 
> Sankar P
> http://psankar.blogspot.com
> --
> To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Respectfully
Azat Khuzhin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Running xfstests on logical volumes
  2014-05-15 10:56 ` Lukáš Czerner
@ 2014-05-15 12:53   ` Theodore Ts'o
  0 siblings, 0 replies; 4+ messages in thread
From: Theodore Ts'o @ 2014-05-15 12:53 UTC (permalink / raw)
  To: Lukáš Czerner; +Cc: Sankar P, linux-fsdevel

On Thu, May 15, 2014 at 12:56:11PM +0200, Lukáš Czerner wrote:
> > The volume NSSVOL is a logical device and not an actual device. When I
> > run the xfstests, I get an error:
> > 
> > common/config: Error: $TEST_DEV (NSSVOL) is not a block device or a
> > NFS filesystem
> > 
> > How do I resolve this ? Is it possible to test such logical devices ?
> 
> I do not know of any other way other than modify xfstests sources,
> specifically common/rc helpers, common/config checks and possibly
> more and update mkfs and fsck routines. xfstests simply expects
> block device or NFS, so you'll have to teach it to understand your
> file system as well.

This is hacky as all hell, but something Vaibhav came up with when
testing unionfs was to do the following:

# mkdir /root/unionfs_play_area
# cd /root/unionfs_play_area
# mkdir ro_layer rw_layer unionfs:mnt
# export TEST_DIR=/root/unionfs_play_area/unionfs:mnt
# export TEST_DEV=/root/unionfs_play_area/unionfs:mnt
# export MOUNT_OPTIONS="-o
dirs=/root/unionfs_play_area/rw_layer=rw:/root/unionfs_play_area/ro_layer=ro"
# export TEST_FS_MOUNT_OPTS="-o
dirs=/root/unionfs_play_area/rw_layer=rw:/root/unionfs_play_area/ro_layer=ro"

The trick is to use a device name that contains a ':' which makes
xfstest treat it as a NFS specification.  Then the only other change
which me made was pretty trivial:


--- check.orig  2014-05-13 10:50:13.000000000 -0700
+++ check       2014-05-12 18:01:12.000000000 -0700
@@ -62,7 +62,7 @@
 get_fstyp_arg()
 {
        if [ "$1" == "-udf" -o "$1" == "-xfs" -o "$1" == "-nfs" -o \
-                       "$1" == "-tmpfs" ]; then
+                       "$1" == "-unionfs" -o "$1" == "-tmpfs" ]; then
                echo $1 | cut -c 2-
        fi
 }
@@ -105,6 +105,7 @@
     -udf                test UDF
     -nfs                test NFS
     -tmpfs              test TMPFS
+    -unionfs            test UNIONFS
     -l                 line mode diff
     -udiff             show unified diff (default)
     -n                 show me, do not run tests

     			     	    	- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-15 12:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-15 10:05 Running xfstests on logical volumes Sankar P
2014-05-15 10:56 ` Lukáš Czerner
2014-05-15 12:53   ` Theodore Ts'o
2014-05-15 11:27 ` Azat Khuzhin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).