[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] file system check



Ingo Schmidt <ich@der-ingo.de> writes:

> I have a question on fsck.ext2:
>
> How does it know if the filesystem is clean or not?
>
> I guess htere is some kind of "clean flag".

Right (a flag in the super block).

> Who sets this flag to "clean" and when does this flag get set?

On Linux the kernel clears the dirty flag on mount and sets it again on
unmount.

> What happens at a "sync"? Is the filesystem marked as "clean" after a
> sync or not?

Only an unmounted filesystem is considered clean.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."