[PATCH 7/8] commands: mount: detect the device to be mounted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Before mounting a device try to detect it.

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 commands/mount.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/commands/mount.c b/commands/mount.c
index 939e9bc..aa769d4 100644
--- a/commands/mount.c
+++ b/commands/mount.c
@@ -79,6 +79,8 @@ static int do_mount(int argc, char *argv[])
 		if (!strncmp(devstr, "/dev/", 5))
 			devstr += 5;
 
+		device_detect_by_name(devstr);
+
 		cdev = cdev_by_name(devstr);
 		if (!cdev)
 			return -ENOENT;
-- 
2.1.4


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux