[PATCH 0/2] USB: storage: add usbdisk alias for USB storage devices
Sascha Hauer
s.hauer at pengutronix.de
Tue Jun 30 05:39:54 PDT 2026
This is an alternative approach for:
https://lore.kernel.org/p/20260623142646.87173-1-chalianis1@gmail.com
Instead of adding a new Kconfig variable we add a /dev/usbdiskx alias
for each USB storage device. This allows us to easily use the first USB
storage device instead of stumbling upon other devices which are also
registered as /dev/diskx.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
Sascha Hauer (2):
fs: devfs: make cdev_find_free_index() return 0 instead of an error
usb: storage: add usbdisk alias for USB storage devices
drivers/ata/disk_ata_drive.c | 2 --
drivers/hw_random/core.c | 13 +++----------
drivers/usb/storage/usb.c | 17 ++++++++++++-----
fs/devfs-core.c | 10 +++++++++-
4 files changed, 24 insertions(+), 18 deletions(-)
---
base-commit: 18599acfcbf38e95edc605f89e257e32f67d0ac4
change-id: 20260630-usb-disk-alias-85022129192f
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list