linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/3] mke2fs: small doc and features
@ 2025-09-09 15:40 Ralph Siemsen
  2025-09-09 15:40 ` [PATCH RFC 1/3] mke2fs: document the hash_seed option Ralph Siemsen
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Ralph Siemsen @ 2025-09-09 15:40 UTC (permalink / raw)
  To: linux-ext4; +Cc: Ralph Siemsen

Three independent fixes for mke2fs:

1) document the hash_seed option
2) prohibit multiple '-E' arguments 
3) add extended option for setting root inode security context

The first fix is straightforward.

For the second one, some alternatives would be:
- only print a warning, not a fatal error (but that is easy to miss)
- allow multiple '-E' options, and join them automatically

For the third one, the main use case is when generating empty
filesystems for use when SELinux is enabled.

Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
---
Ralph Siemsen (3):
      mke2fs: document the hash_seed option
      mke2fs.c: fail on multiple '-E' options
      mke2fs: add root_selinux option for root inode label

 misc/mke2fs.8.in              | 14 +++++++++++
 misc/mke2fs.c                 | 53 ++++++++++++++++++++++++++++++++++++++++
 tests/m_root_selinux/expect.1 | 57 +++++++++++++++++++++++++++++++++++++++++++
 tests/m_root_selinux/script   |  4 +++
 4 files changed, 128 insertions(+)
---
base-commit: 4b02eb164221c079b428566499343af2766c2ec3
change-id: 20250909-mke2fs-small-fixes-6d4a0c3a8781

Best regards,
--  
Ralph Siemsen <ralph.siemsen@linaro.org>


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

end of thread, other threads:[~2025-09-19 15:44 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-09 15:40 [PATCH RFC 0/3] mke2fs: small doc and features Ralph Siemsen
2025-09-09 15:40 ` [PATCH RFC 1/3] mke2fs: document the hash_seed option Ralph Siemsen
2025-09-09 15:40 ` [PATCH RFC 2/3] mke2fs.c: fail on multiple '-E' options Ralph Siemsen
2025-09-10  0:32   ` Andreas Dilger
2025-09-10  0:49     ` Ralph Siemsen
2025-09-10 14:52       ` Theodore Ts'o
2025-09-10 15:00         ` Theodore Ts'o
2025-09-10 16:29         ` Ralph Siemsen
2025-09-10 20:45           ` Theodore Ts'o
2025-09-10 21:31             ` Ralph Siemsen
2025-09-19 15:44               ` Ralph Siemsen
2025-09-09 15:40 ` [PATCH RFC 3/3] mke2fs: add root_selinux option for root inode label Ralph Siemsen

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