| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 6/9] Detect FS type to test based on TEST_DEV |
| From: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
| Date: | Wed, 27 May 2009 13:53:30 -0500 |
| Cc: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
| In-reply-to: | <1243450413-12681-1-git-send-email-sandeen@xxxxxxxxxxx> |
| References: | <1243450413-12681-1-git-send-email-sandeen@xxxxxxxxxxx> |
This helps support generic / non-xfs fileystems. Rather than defaulting to xfs or expecting a fs type passed in, just look at what is on TEST_DEV and use that for FSTYP by default. We may wish to add a generic way to override this later. Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxxx> --- common | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/common b/common index 92ec9e2..b5ca5d0 100644 --- a/common +++ b/common @@ -30,7 +30,13 @@ have_test_arg=false randomize=false rm -f $tmp.list $tmp.tmp $tmp.sed -export FSTYP=xfs +# Autodetect fs type based on what's on $TEST_DEV +if [ "$HOSTOS" == "Linux" ] +then + export FSTYP=`blkid -s TYPE -o value $TEST_DEV` +else + export FSTYP=xfs +fi for r do -- 1.5.5.6 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 5/9] Set up testdir for generic filesystems, Eric Sandeen |
|---|---|
| Next by Date: | Re: [PATCH] xfs: validate quota log items during log recovery, Eric Sandeen |
| Previous by Thread: | Re: [PATCH 5/9] Set up testdir for generic filesystems, Christoph Hellwig |
| Next by Thread: | Re: [PATCH 6/9] Detect FS type to test based on TEST_DEV, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |