* [PATCH] resize2fs: relax requirements for -P output a bit
@ 2010-07-12 18:27 Eric Sandeen
2010-07-17 10:37 ` Ted Ts'o
0 siblings, 1 reply; 2+ messages in thread
From: Eric Sandeen @ 2010-07-12 18:27 UTC (permalink / raw)
To: ext4 development
Requiring an immediate pre-fsck before printing a minimum
resize size seems a bit draconian; if the fs isn't clean or marked
with error, then certainly, but for an informational minimum
size, I don't think we need to require a fsck since last mount.
I had simply copied the checks from the actual resize path,
previously.
Installers use this option (-P) to gather minimum resize info,
and requiring an actual fsck before use just seems to go too far.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---
diff --git a/resize/main.c b/resize/main.c
index 7c4f4dd..7d8b287 100644
--- a/resize/main.c
+++ b/resize/main.c
@@ -345,8 +345,7 @@ int main (int argc, char ** argv)
min_size = calculate_minimum_resize_size(fs);
if (print_min_size) {
- if (!force && ((fs->super->s_lastcheck < fs->super->s_mtime) ||
- (fs->super->s_state & EXT2_ERROR_FS) ||
+ if (!force && ((fs->super->s_state & EXT2_ERROR_FS) ||
((fs->super->s_state & EXT2_VALID_FS) == 0))) {
fprintf(stderr,
_("Please run 'e2fsck -f %s' first.\n\n"),
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] resize2fs: relax requirements for -P output a bit
2010-07-12 18:27 [PATCH] resize2fs: relax requirements for -P output a bit Eric Sandeen
@ 2010-07-17 10:37 ` Ted Ts'o
0 siblings, 0 replies; 2+ messages in thread
From: Ted Ts'o @ 2010-07-17 10:37 UTC (permalink / raw)
To: Eric Sandeen; +Cc: ext4 development
On Mon, Jul 12, 2010 at 01:27:44PM -0500, Eric Sandeen wrote:
> Requiring an immediate pre-fsck before printing a minimum
> resize size seems a bit draconian; if the fs isn't clean or marked
> with error, then certainly, but for an informational minimum
> size, I don't think we need to require a fsck since last mount.
>
> I had simply copied the checks from the actual resize path,
> previously.
>
> Installers use this option (-P) to gather minimum resize info,
> and requiring an actual fsck before use just seems to go too far.
>
> Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Makes sense. I've added it to the e2fsprogs maint branch.
- Ted
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-07-18 7:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-12 18:27 [PATCH] resize2fs: relax requirements for -P output a bit Eric Sandeen
2010-07-17 10:37 ` Ted Ts'o
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).