util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fsck command line API
@ 2017-12-27 10:14 Pali Rohár
  2017-12-29 12:02 ` Karel Zak
  0 siblings, 1 reply; 6+ messages in thread
From: Pali Rohár @ 2017-12-27 10:14 UTC (permalink / raw)
  To: Karel Zak; +Cc: util-linux, Vojtěch Vladyka

Hello!

Vojtěch Vladyka is working on a new fsck tool udffsck for UDF filesystem
[1] and I would like to know if there is a some standardized command line
API for fsck tools, so s new udffsck would be compatible.

In util-linux repository there is some generic wrapper fsck which starts
correct filesystem fsck tool... And probably systemd has own wrapper
which do similar thing.

Are there already defined some set of command line arguments which are
expected for fsck tools? Or exit status values from those tools?

Also, lot of filesystems store information if last usage/mount was
correctly synchronized and unmounted. E.g. FAT has dirty bit, ext4 has
journal clean state, UDF has integrity field... and in most cases when
fsck is started at boot time it make sense to skip fsck data check
routine if filesystem state is clean (last time properly unmounted). Is
there some command line API to tell fsck tool if it should do full disk
check (including data) or do it conditionally if filesystem is in dirty
state?

[1] - https://github.com/pali/udftools/pull/7

-- 
Pali Rohár
pali.rohar@gmail.com

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

end of thread, other threads:[~2017-12-30 19:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-27 10:14 fsck command line API Pali Rohár
2017-12-29 12:02 ` Karel Zak
2017-12-29 18:37   ` Theodore Ts'o
2017-12-30 12:03     ` Pali Rohár
2017-12-30 13:20       ` Theodore Ts'o
2017-12-30 19:48         ` Pali Rohár

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