Skip to content

Commit

Permalink
init/do_mounts: better syntax description
Browse files Browse the repository at this point in the history
Specify hex device number unambiquously.

Signed-off-by: Pavel Machek <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
  • Loading branch information
pavelmachek authored and Jiri Kosina committed Aug 28, 2014
1 parent 5568837 commit 0bf37ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion init/do_mounts.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ static dev_t devt_from_partuuid(const char *uuid_str)
/*
* Convert a name into device number. We accept the following variants:
*
* 1) device number in hexadecimal represents itself
* 1) <hex_major><hex_minor> device number in hexadecimal represents itself
* no leading 0x, for example b302.
* 2) /dev/nfs represents Root_NFS (0xff)
* 3) /dev/<disk_name> represents the device number of disk
* 4) /dev/<disk_name><decimal> represents the device number
Expand Down

0 comments on commit 0bf37ae

Please sign in to comment.