mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/4] extend cdev alias support
@ 2026-08-31  9:48 Sascha Hauer
  2026-08-31  9:48 ` [PATCH 1/4] fs: devfs: remove aliases from the list when freeing them Sascha Hauer
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Sascha Hauer @ 2026-08-31  9:48 UTC (permalink / raw)
  To: BAREBOX

We recently introduced creating a "usbdisk" alias for USB storage
devices. This so far was incomplete: The alias was only created for the
whole raw device, but not for the partitions. As it's usually the
partitions one is interested in the alias was rather useless. Also
block devices automatically get an automount point registered under
/mnt/, and here the aliases were not added.

This series fixes both issues. A nice side effect is that GPT partitions
which already have a /dev/diskx.<partname> alias now get an automount
point registered with the same name as well. Just like the aliases in
devfs the aliases under /mnt/ just appear as symbolic links.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
Sascha Hauer (4):
      fs: devfs: remove aliases from the list when freeing them
      fs: remove the default automount when a cdev is removed
      fs: devfs: propagate cdev aliases to the partitions
      fs: devfs: make the default automount reachable under cdev aliases

 fs/devfs-core.c  | 145 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 fs/fs.c          |  20 +++++++-
 include/driver.h |   6 +++
 3 files changed, 169 insertions(+), 2 deletions(-)
---
base-commit: 42e510a258d7c276c35f06c103e685c80d376eab
change-id: 20260831-usbdisk-aliases-c14b1584b7d0

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




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

end of thread, other threads:[~2026-08-31  9:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-31  9:48 [PATCH 0/4] extend cdev alias support Sascha Hauer
2026-08-31  9:48 ` [PATCH 1/4] fs: devfs: remove aliases from the list when freeing them Sascha Hauer
2026-08-31  9:48 ` [PATCH 2/4] fs: remove the default automount when a cdev is removed Sascha Hauer
2026-08-31  9:48 ` [PATCH 3/4] fs: devfs: propagate cdev aliases to the partitions Sascha Hauer
2026-08-31  9:48 ` [PATCH 4/4] fs: devfs: make the default automount reachable under cdev aliases Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox