Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

init/do_mounts: better syntax description

Specify hex device number unambiquously.

Signed-off-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

authored by

Pavel Machek and committed by
Jiri Kosina
0bf37ae4 55688377

+2 -1
+2 -1
init/do_mounts.c
··· 182 182 /* 183 183 * Convert a name into device number. We accept the following variants: 184 184 * 185 - * 1) device number in hexadecimal represents itself 185 + * 1) <hex_major><hex_minor> device number in hexadecimal represents itself 186 + * no leading 0x, for example b302. 186 187 * 2) /dev/nfs represents Root_NFS (0xff) 187 188 * 3) /dev/<disk_name> represents the device number of disk 188 189 * 4) /dev/<disk_name><decimal> represents the device number