···4545The block device to use. Most of the time, it is a partition of block device.4646It's required for pstore/blk. It is also used for MTD device.47474848-It accepts the following variants for block device:4848+When pstore/blk is built as a module, "blkdev" accepts the following variants:49495050-1. <hex_major><hex_minor> device number in hexadecimal represents itself; no5151- leading 0x, for example b302.5252-#. /dev/<disk_name> represents the device number of disk5050+1. /dev/<disk_name> represents the device number of disk5351#. /dev/<disk_name><decimal> represents the device number of partition - device5452 number of disk plus the partition number5553#. /dev/<disk_name>p<decimal> - same as the above; this form is used when disk5654 name of partitioned disk ends with a digit.5555+5656+When pstore/blk is built into the kernel, "blkdev" accepts the following variants:5757+5858+#. <hex_major><hex_minor> device number in hexadecimal representation,5959+ with no leading 0x, for example b302.5760#. PARTUUID=00112233-4455-6677-8899-AABBCCDDEEFF represents the unique id of5861 a partition if the partition table provides it. The UUID may be either an5962 EFI/GPT UUID, or refer to an MSDOS partition using the format SSSSSSSS-PP,
+1-23
fs/pstore/blk.c
···58585959/*6060 * blkdev - the block device to use for pstore storage6161- *6262- * Usually, this will be a partition of a block device.6363- *6464- * blkdev accepts the following variants, when built as a module:6565- * 1) /dev/<disk_name> represents the device number of disk6666- * 2) /dev/<disk_name><decimal> represents the device number6767- * of partition - device number of disk plus the partition number6868- * 3) /dev/<disk_name>p<decimal> - same as the above, that form is6969- * used when disk name of partitioned disk ends on a digit.7070- *7171- * blkdev accepts the following variants when built into the kernel:7272- * 1) <hex_major><hex_minor> device number in hexadecimal representation,7373- * with no leading 0x, for example b302.7474- * 2) PARTUUID=00112233-4455-6677-8899-AABBCCDDEEFF representing the7575- * unique id of a partition if the partition table provides it.7676- * The UUID may be either an EFI/GPT UUID, or refer to an MSDOS7777- * partition using the format SSSSSSSS-PP, where SSSSSSSS is a zero-7878- * filled hex representation of the 32-bit "NT disk signature", and PP7979- * is a zero-filled hex representation of the 1-based partition number.8080- * 3) PARTUUID=<UUID>/PARTNROFF=<int> to select a partition in relation to8181- * a partition with a known unique id.8282- * 4) <major>:<minor> major and minor number of the device separated by8383- * a colon.6161+ * See Documentation/admin-guide/pstore-blk.rst for details.8462 */8563static char blkdev[80] = CONFIG_PSTORE_BLK_BLKDEV;8664module_param_string(blkdev, blkdev, 80, 0400);