From: "Pali Rohár" <pali.rohar@gmail.com>
To: Karel Zak <kzak@redhat.com>
Cc: util-linux@vger.kernel.org, "Vojtěch Vladyka" <rain@vojtechvladyka.cz>
Subject: fsck command line API
Date: Wed, 27 Dec 2017 11:14:29 +0100 [thread overview]
Message-ID: <20171227101429.bisgfv5wumxcqiqp@pali> (raw)
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
next reply other threads:[~2017-12-27 10:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-27 10:14 Pali Rohár [this message]
2017-12-29 12:02 ` fsck command line API 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171227101429.bisgfv5wumxcqiqp@pali \
--to=pali.rohar@gmail.com \
--cc=kzak@redhat.com \
--cc=rain@vojtechvladyka.cz \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox