* [PATCH] [PATCH] xfstests: use -F when making scratch ext4 fs
@ 2013-04-26 19:16 Josef Bacik
2013-04-26 19:18 ` Eric Sandeen
2013-05-03 12:48 ` Rich Johnston
0 siblings, 2 replies; 4+ messages in thread
From: Josef Bacik @ 2013-04-26 19:16 UTC (permalink / raw)
To: linux-ext4, xfs
mkfs.ext4 will ask you if you are sure if you try to mkfs an entire disk instead
of just a partition, so any xfstest that uses a scratch device and you specify a
full disk will appear to hang because it's waiting for you to say yes. This
fixes the problem by just forcing it to do its thing. Thanks,
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
---
common/rc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/common/rc b/common/rc
index ff18cc2..9d1c3fc 100644
--- a/common/rc
+++ b/common/rc
@@ -485,7 +485,7 @@ _scratch_mkfs_ext4()
{
local tmp_dir=/tmp/
- /sbin/mkfs -t $FSTYP -- $MKFS_OPTIONS $* $SCRATCH_DEV \
+ /sbin/mkfs -t $FSTYP -- -F $MKFS_OPTIONS $* $SCRATCH_DEV \
2>$tmp_dir.mkfserr 1>$tmp_dir.mkfsstd
local mkfs_status=$?
--
1.7.7.6
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] [PATCH] xfstests: use -F when making scratch ext4 fs
2013-04-26 19:16 [PATCH] [PATCH] xfstests: use -F when making scratch ext4 fs Josef Bacik
@ 2013-04-26 19:18 ` Eric Sandeen
2013-04-26 23:09 ` Andreas Dilger
2013-05-03 12:48 ` Rich Johnston
1 sibling, 1 reply; 4+ messages in thread
From: Eric Sandeen @ 2013-04-26 19:18 UTC (permalink / raw)
To: Josef Bacik; +Cc: linux-ext4, xfs
On 4/26/13 2:16 PM, Josef Bacik wrote:
> mkfs.ext4 will ask you if you are sure if you try to mkfs an entire disk instead
> of just a partition, so any xfstest that uses a scratch device and you specify a
> full disk will appear to hang because it's waiting for you to say yes. This
> fixes the problem by just forcing it to do its thing. Thanks,
>
> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
The whole-disk test is pretty derpy anyway. Too bad -F overrides
much more than just that, but this is probably a decent
thing to do.
Thanks,
-Eric
> ---
> common/rc | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/common/rc b/common/rc
> index ff18cc2..9d1c3fc 100644
> --- a/common/rc
> +++ b/common/rc
> @@ -485,7 +485,7 @@ _scratch_mkfs_ext4()
> {
> local tmp_dir=/tmp/
>
> - /sbin/mkfs -t $FSTYP -- $MKFS_OPTIONS $* $SCRATCH_DEV \
> + /sbin/mkfs -t $FSTYP -- -F $MKFS_OPTIONS $* $SCRATCH_DEV \
> 2>$tmp_dir.mkfserr 1>$tmp_dir.mkfsstd
> local mkfs_status=$?
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] [PATCH] xfstests: use -F when making scratch ext4 fs
2013-04-26 19:18 ` Eric Sandeen
@ 2013-04-26 23:09 ` Andreas Dilger
0 siblings, 0 replies; 4+ messages in thread
From: Andreas Dilger @ 2013-04-26 23:09 UTC (permalink / raw)
To: Eric Sandeen; +Cc: Josef Bacik, linux-ext4, xfs
On 2013-04-26, at 1:18 PM, Eric Sandeen wrote:
> On 4/26/13 2:16 PM, Josef Bacik wrote:
>> mkfs.ext4 will ask you if you are sure if you try to mkfs an entire disk instead of just a partition, so any xfstest that uses a scratch device and you specify a full disk will appear to hang because it's waiting for you to say yes. This fixes the problem by just forcing it to do its thing. Thanks,
>>
>> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
>
> Reviewed-by: Eric Sandeen <sandeen@redhat.com>
>
> The whole-disk test is pretty derpy anyway. Too bad -F overrides
> much more than just that, but this is probably a decent
> thing to do.
Yeah, we've had to work around the whole-device check for years,
because the 512-byte sector offset for the DOS partition table
kills performance on RAID systems.
Given that the kernel should hold the whole block device busy these
days for O_EXCL opens if there are partitions on the device, it
should be safe to remove this check from mke2fs, though the above
workaround would still be needed for a while.
Cheers, Andreas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] [PATCH] xfstests: use -F when making scratch ext4 fs
2013-04-26 19:16 [PATCH] [PATCH] xfstests: use -F when making scratch ext4 fs Josef Bacik
2013-04-26 19:18 ` Eric Sandeen
@ 2013-05-03 12:48 ` Rich Johnston
1 sibling, 0 replies; 4+ messages in thread
From: Rich Johnston @ 2013-05-03 12:48 UTC (permalink / raw)
To: Josef Bacik; +Cc: linux-ext4, xfs
Hi Josef,
Thanks for this patch, it has been committed,
Regards,
--Rich
commit c150d937f506912da8c48419d6939731d5063967
Author: Josef Bacik <jbacik@fusionio.com>
Date: Fri Apr 26 19:16:53 2013 +0000
xfstests: use -F when making scratch ext4 fs
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-05-03 12:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-26 19:16 [PATCH] [PATCH] xfstests: use -F when making scratch ext4 fs Josef Bacik
2013-04-26 19:18 ` Eric Sandeen
2013-04-26 23:09 ` Andreas Dilger
2013-05-03 12:48 ` Rich Johnston
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).