linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* two fsck.ext4's needed to clean filesystem
@ 2015-07-22 14:18 Pavel Machek
  2015-07-22 14:21 ` Pavel Machek
  0 siblings, 1 reply; 4+ messages in thread
From: Pavel Machek @ 2015-07-22 14:18 UTC (permalink / raw)
  To: tytso; +Cc: jack, linux-ext4

Hi!

pavel@amd:~/misc$ /sbin/fsck.ext4 -y -f delme
...
delme: ***** FILE SYSTEM WAS MODIFIED *****
delme: 2054/25064 files (0.1% non-contiguous), 98231/100000 blocks
pavel@amd:~/misc$ /sbin/fsck.ext4 -y -f delme
e2fsck 1.42.12 (29-Aug-2014)
Backing up journal inode block information.

Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

delme: ***** FILE SYSTEM WAS MODIFIED *****
delme: 2054/25064 files (0.5% non-contiguous), 98231/100000 blocks
pavel@amd:~/misc$ cp delme.fsck.original-damaged delme.report-1
pavel@amd:~/misc$ /sbin/fsck.ext4 -V
 e2fsck 1.42.12 (29-Aug-2014)
 Using EXT2FS Library version 1.42.12, 29-Aug-2014
pavel@amd:~/misc$
		  
Is that considered ok? Should fsck restart itself or report
'filesystem still has errors' in this case?

Thanks and best regards,
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: two fsck.ext4's needed to clean filesystem
  2015-07-22 14:18 two fsck.ext4's needed to clean filesystem Pavel Machek
@ 2015-07-22 14:21 ` Pavel Machek
  2015-07-22 16:33   ` Eric Sandeen
  0 siblings, 1 reply; 4+ messages in thread
From: Pavel Machek @ 2015-07-22 14:21 UTC (permalink / raw)
  To: tytso; +Cc: jack, linux-ext4

Hi!

> Is that considered ok? Should fsck restart itself or report
> 'filesystem still has errors' in this case?

It definitely should in this case:

Free inodes count wrong (22999, counted=23011).
Fix? yes


delme.fsck.damaged: ***** FILE SYSTEM WAS MODIFIED *****
delme.fsck.damaged: 2053/25064 files (0.1% non-contiguous),
97825/100000 blocks
Second check...
e2fsck 1.42.12 (29-Aug-2014)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences:  +18015
Fix? yes

Free blocks count wrong for group #2 (36, counted=35).
Fix? yes

Free blocks count wrong (2175, counted=2174).
Fix? yes


delme.fsck.damaged: ***** FILE SYSTEM WAS MODIFIED *****
delme.fsck.damaged: 2053/25064 files (0.2% non-contiguous),
97826/100000 blocks
Fsck lied about its success (result = 1)
pavel@amd:~/misc$ cp delme.fsck.original-damaged delme.report-2

(I can make the images public. Yes, it is artificial test.)

Best regards,
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: two fsck.ext4's needed to clean filesystem
  2015-07-22 14:21 ` Pavel Machek
@ 2015-07-22 16:33   ` Eric Sandeen
  2015-07-24 14:27     ` Pavel Machek
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Sandeen @ 2015-07-22 16:33 UTC (permalink / raw)
  To: Pavel Machek, tytso; +Cc: jack, linux-ext4

On 7/22/15 9:21 AM, Pavel Machek wrote:
> Hi!
> 
>> Is that considered ok? Should fsck restart itself or report
>> 'filesystem still has errors' in this case?

It should.

> It definitely should in this case:
> 
> Free inodes count wrong (22999, counted=23011).
> Fix? yes
> 
> 
> delme.fsck.damaged: ***** FILE SYSTEM WAS MODIFIED *****
> delme.fsck.damaged: 2053/25064 files (0.1% non-contiguous),
> 97825/100000 blocks
> Second check...
> e2fsck 1.42.12 (29-Aug-2014)
> Pass 1: Checking inodes, blocks, and sizes
> Pass 2: Checking directory structure
> Pass 3: Checking directory connectivity
> Pass 4: Checking reference counts
> Pass 5: Checking group summary information
> Block bitmap differences:  +18015
> Fix? yes
> 
> Free blocks count wrong for group #2 (36, counted=35).
> Fix? yes
> 
> Free blocks count wrong (2175, counted=2174).
> Fix? yes
> 
> 
> delme.fsck.damaged: ***** FILE SYSTEM WAS MODIFIED *****
> delme.fsck.damaged: 2053/25064 files (0.2% non-contiguous),
> 97826/100000 blocks
> Fsck lied about its success (result = 1)
> pavel@amd:~/misc$ cp delme.fsck.original-damaged delme.report-2
> 
> (I can make the images public. Yes, it is artificial test.)

Please do - you're right, it should fix it on the first pass.

Thanks,
-Eric


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

* Re: two fsck.ext4's needed to clean filesystem
  2015-07-22 16:33   ` Eric Sandeen
@ 2015-07-24 14:27     ` Pavel Machek
  0 siblings, 0 replies; 4+ messages in thread
From: Pavel Machek @ 2015-07-24 14:27 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: tytso, jack, linux-ext4

Hi!

> >> Is that considered ok? Should fsck restart itself or report
> >> 'filesystem still has errors' in this case?
> 
> It should.

Ok, good.

> > delme.fsck.damaged: ***** FILE SYSTEM WAS MODIFIED *****
> > delme.fsck.damaged: 2053/25064 files (0.2% non-contiguous),
> > 97826/100000 blocks
> > Fsck lied about its success (result = 1)
> > pavel@amd:~/misc$ cp delme.fsck.original-damaged delme.report-2
> > 
> > (I can make the images public. Yes, it is artificial test.)
> 
> Please do - you're right, it should fix it on the first pass.

I put them on

http://atrey.karlin.mff.cuni.cz/~pavel/outgoing/delme.report-1
http://atrey.karlin.mff.cuni.cz/~pavel/outgoing/delme.report-2

. Let me know if you can reproduce it.

Thanks and best regards,
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

end of thread, other threads:[~2015-07-24 14:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-22 14:18 two fsck.ext4's needed to clean filesystem Pavel Machek
2015-07-22 14:21 ` Pavel Machek
2015-07-22 16:33   ` Eric Sandeen
2015-07-24 14:27     ` Pavel Machek

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).