mbox series

[0/1] Adjust dosfstools fsck exit codes

Message ID 20250627122158.18544-1-mark.jonas@de.bosch.com
Headers show
Series Adjust dosfstools fsck exit codes | expand

Message

Jonas Mark (BT-FS/ENG1-Mue) June 27, 2025, 12:21 p.m. UTC
From: Mark Jonas <mark.jonas@de.bosch.com>

As proposed in "[PATCH] udev-extraconf: Allow optionally skipping
systemd-fsck" [1] on this mailing list we adjusted the `fsck.vfat` exit
codes to conform to those specified in the `fsck` manpage.

The first patch modifies all the exit calls coming from `fsck.vfat` to
conform with what is specified by `fsck`. Because dosfstools shares code
between its tools, the exit codes of mkfs.vfat and fatlabel changed,
too. To our knowledge these tools do not have a specific meaning in
their exit codes besides success or failure.

The second patch updates the fsck.fat manpage to document the new exit
codes.

The patches have been submitted upstream on the project's GitHub [2].
After more than two weeks there has been no (maintainer) feedback yet.

[1] https://lists.openembedded.org/g/openembedded-core/topic/112895873

[2] https://github.com/dosfstools/dosfstools/issues/210

Ricardo Simoes (1):
  dosfstools: Use standard fsck exit codes

 ...ck.fat-Adhere-to-the-fsck-exit-codes.patch | 214 ++++++++++++++++++
 ...ges-Document-fsck.fat-new-exit-codes.patch |  46 ++++
 .../dosfstools/dosfstools_4.2.bb              |   7 +-
 3 files changed, 264 insertions(+), 3 deletions(-)
 create mode 100644 meta/recipes-devtools/dosfstools/dosfstools/0001-fsck.fat-Adhere-to-the-fsck-exit-codes.patch
 create mode 100644 meta/recipes-devtools/dosfstools/dosfstools/0002-manpages-Document-fsck.fat-new-exit-codes.patch

--
2.34.1