* [PATCH 1/3] common: Filter out lost+found directory from _ls_l() output
@ 2013-12-17 14:02 Lukas Czerner
2013-12-17 14:02 ` [PATCH 2/3] xfstests 322: use _filter_scratch() Lukas Czerner
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Lukas Czerner @ 2013-12-17 14:02 UTC (permalink / raw)
To: xfs; +Cc: Lukas Czerner
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
---
common/rc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/common/rc b/common/rc
index 5f61d57..7a168e9 100644
--- a/common/rc
+++ b/common/rc
@@ -74,10 +74,11 @@ _md5_checksum()
# ls -l w/ selinux sometimes puts a dot at the end:
# -rwxrw-r--. id1 id2 file1
+# Also filter out lost+found directory on extN file system if present
_ls_l()
{
- ls -l $* | sed "s/\(^[-rwxdlbcpsStT]*\)\. /\1 /"
+ ls -l $* | sed "s/\(^[-rwxdlbcpsStT]*\)\. /\1 /" | grep -v 'lost+found'
}
_mount_opts()
--
1.8.3.1
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] xfstests 322: use _filter_scratch()
2013-12-17 14:02 [PATCH 1/3] common: Filter out lost+found directory from _ls_l() output Lukas Czerner
@ 2013-12-17 14:02 ` Lukas Czerner
2013-12-17 14:02 ` [PATCH 3/3] xfstests 321, 322: do not remove lost+found Lukas Czerner
2013-12-17 16:22 ` [PATCH 1/3] common: Filter out lost+found directory from _ls_l() output Carlos Maiolino
2 siblings, 0 replies; 4+ messages in thread
From: Lukas Czerner @ 2013-12-17 14:02 UTC (permalink / raw)
To: xfs; +Cc: Lukas Czerner
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
---
tests/generic/322 | 8 ++++----
tests/generic/322.out | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/tests/generic/322 b/tests/generic/322
index 1cea133..94f8f68 100644
--- a/tests/generic/322
+++ b/tests/generic/322
@@ -65,12 +65,12 @@ _rename_test()
mv $SCRATCH_MNT/foo $SCRATCH_MNT/bar
$XFS_IO_PROG -c "fsync" $SCRATCH_MNT/bar
_load_flakey_table $FLAKEY_DROP_WRITES
- md5sum $SCRATCH_MNT/bar
+ md5sum $SCRATCH_MNT/bar | _filter_scratch
_unmount_flakey
_load_flakey_table $FLAKEY_ALLOW_WRITES
_mount_flakey
- md5sum $SCRATCH_MNT/bar
+ md5sum $SCRATCH_MNT/bar | _filter_scratch
_unmount_flakey
_check_scratch_fs $FLAKEY_DEV
[ $? -ne 0 ] && _fatal "fsck failed"
@@ -87,12 +87,12 @@ _write_after_fsync_rename_test()
mv $SCRATCH_MNT/foo $SCRATCH_MNT/bar
$XFS_IO_PROG -c "fsync" $SCRATCH_MNT/bar
_load_flakey_table $FLAKEY_DROP_WRITES
- md5sum $SCRATCH_MNT/bar
+ md5sum $SCRATCH_MNT/bar | _filter_scratch
_unmount_flakey
_load_flakey_table $FLAKEY_ALLOW_WRITES
_mount_flakey
- md5sum $SCRATCH_MNT/bar
+ md5sum $SCRATCH_MNT/bar | _filter_scratch
_unmount_flakey
_check_scratch_fs $FLAKEY_DEV
[ $? -ne 0 ] && _fatal "fsck failed"
diff --git a/tests/generic/322.out b/tests/generic/322.out
index 0d9f274..a23f890 100644
--- a/tests/generic/322.out
+++ b/tests/generic/322.out
@@ -1,7 +1,7 @@
QA output created by 322
fsync rename test
-ca539970d4b1fa1f34213ba675007381 /mnt/scratch/bar
-ca539970d4b1fa1f34213ba675007381 /mnt/scratch/bar
+ca539970d4b1fa1f34213ba675007381 SCRATCH_MNT/bar
+ca539970d4b1fa1f34213ba675007381 SCRATCH_MNT/bar
fsync rename test
-d34ff04c17ef7068d78d0c4be49cfe57 /mnt/scratch/bar
-d34ff04c17ef7068d78d0c4be49cfe57 /mnt/scratch/bar
+d34ff04c17ef7068d78d0c4be49cfe57 SCRATCH_MNT/bar
+d34ff04c17ef7068d78d0c4be49cfe57 SCRATCH_MNT/bar
--
1.8.3.1
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] xfstests 321, 322: do not remove lost+found
2013-12-17 14:02 [PATCH 1/3] common: Filter out lost+found directory from _ls_l() output Lukas Czerner
2013-12-17 14:02 ` [PATCH 2/3] xfstests 322: use _filter_scratch() Lukas Czerner
@ 2013-12-17 14:02 ` Lukas Czerner
2013-12-17 16:22 ` [PATCH 1/3] common: Filter out lost+found directory from _ls_l() output Carlos Maiolino
2 siblings, 0 replies; 4+ messages in thread
From: Lukas Czerner @ 2013-12-17 14:02 UTC (permalink / raw)
To: xfs; +Cc: Lukas Czerner
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
---
tests/generic/321 | 2 +-
tests/generic/322 | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/generic/321 b/tests/generic/321
index 1d17147..345416c 100644
--- a/tests/generic/321
+++ b/tests/generic/321
@@ -51,7 +51,7 @@ rm -f $seqres.full
_clean_working_dir()
{
_mount_flakey
- rm -rf $SCRATCH_MNT/*
+ rm -rf $SCRATCH_MNT/foo $SCRATCH_MNT/bar
_unmount_flakey
}
diff --git a/tests/generic/322 b/tests/generic/322
index 94f8f68..c43fcb1 100644
--- a/tests/generic/322
+++ b/tests/generic/322
@@ -51,7 +51,7 @@ rm -f $seqres.full
_clean_working_dir()
{
_mount_flakey
- rm -rf $SCRATCH_MNT/*
+ rm -rf $SCRATCH_MNT/foo $SCRATCH_MNT/bar
_unmount_flakey
}
--
1.8.3.1
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3] common: Filter out lost+found directory from _ls_l() output
2013-12-17 14:02 [PATCH 1/3] common: Filter out lost+found directory from _ls_l() output Lukas Czerner
2013-12-17 14:02 ` [PATCH 2/3] xfstests 322: use _filter_scratch() Lukas Czerner
2013-12-17 14:02 ` [PATCH 3/3] xfstests 321, 322: do not remove lost+found Lukas Czerner
@ 2013-12-17 16:22 ` Carlos Maiolino
2 siblings, 0 replies; 4+ messages in thread
From: Carlos Maiolino @ 2013-12-17 16:22 UTC (permalink / raw)
To: xfs
Hi Lukas,
I guess this patchset lacks a cover letter you might have forgotten to add?
despite the first patch which is easier to understand the reason due the
comment you added to the own patch, the purpose of the remaining patches are
not clear.
On Tue, Dec 17, 2013 at 03:02:25PM +0100, Lukas Czerner wrote:
> Signed-off-by: Lukas Czerner <lczerner@redhat.com>
> ---
> common/rc | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/common/rc b/common/rc
> index 5f61d57..7a168e9 100644
> --- a/common/rc
> +++ b/common/rc
> @@ -74,10 +74,11 @@ _md5_checksum()
>
> # ls -l w/ selinux sometimes puts a dot at the end:
> # -rwxrw-r--. id1 id2 file1
> +# Also filter out lost+found directory on extN file system if present
>
> _ls_l()
> {
> - ls -l $* | sed "s/\(^[-rwxdlbcpsStT]*\)\. /\1 /"
> + ls -l $* | sed "s/\(^[-rwxdlbcpsStT]*\)\. /\1 /" | grep -v 'lost+found'
> }
>
> _mount_opts()
> --
> 1.8.3.1
>
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
--
Carlos
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-12-17 16:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-17 14:02 [PATCH 1/3] common: Filter out lost+found directory from _ls_l() output Lukas Czerner
2013-12-17 14:02 ` [PATCH 2/3] xfstests 322: use _filter_scratch() Lukas Czerner
2013-12-17 14:02 ` [PATCH 3/3] xfstests 321, 322: do not remove lost+found Lukas Czerner
2013-12-17 16:22 ` [PATCH 1/3] common: Filter out lost+found directory from _ls_l() output Carlos Maiolino
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox