mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: BAREBOX <barebox@lists.infradead.org>
Subject: [PATCH 0/4] extend cdev alias support
Date: Mon, 31 Aug 2026 11:48:24 +0200	[thread overview]
Message-ID: <20260831-usbdisk-aliases-v1-0-0a2e40a35f3d@pengutronix.de> (raw)

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>




             reply	other threads:[~2026-08-31  9:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-31  9:48 Sascha Hauer [this message]
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

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=20260831-usbdisk-aliases-v1-0-0a2e40a35f3d@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.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