tests: add PMBR sfdisk test
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
0aa57f1868
commit
3692c28d06
|
@ -76,7 +76,7 @@ enum {
|
|||
};
|
||||
|
||||
struct sfdisk {
|
||||
int act; /* action */
|
||||
int act; /* ACT_* */
|
||||
int partno; /* -N <partno>, default -1 */
|
||||
const char *label; /* --label <label> */
|
||||
const char *label_nested; /* --label-nested <label> */
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
Disk <removed>: 50 MiB, 52428800 bytes, 102400 sectors
|
||||
Units: sectors of 1 * 512 = 512 bytes
|
||||
Sector size (logical/physical): 512 bytes / 4096 bytes
|
||||
I/O size (minimum/optimal): 4096 bytes / 32768 bytes
|
||||
Disklabel type: dos
|
||||
Disk identifier: <removed>
|
||||
|
||||
Device Boot Start End Sectors Size Id Type
|
||||
<removed>1 1 102399 102399 50M ee GPT
|
|
@ -102,5 +102,11 @@ ts_fdisk_clean $TS_DEVICE
|
|||
ts_finalize_subtest
|
||||
|
||||
|
||||
ts_init_subtest "list-pmbr"
|
||||
$TS_CMD_SFDISK --list --label-nested dos ${TS_DEVICE} >> $TS_OUTPUT 2>&1
|
||||
ts_fdisk_clean $TS_DEVICE
|
||||
ts_finalize_subtest
|
||||
|
||||
|
||||
rmmod scsi_debug
|
||||
ts_finalize
|
||||
|
|
Loading…
Reference in New Issue