[LTP] mkfs.vfat: Device partition expected, not making filesystem on entire device '/dev/vdb' (use -I to override)

Cyril Hrubis chrubis@suse.cz
Wed Jan 15 13:40:44 CET 2020


Hi!
> there is a problem with mkfs.vfat, when LTP_DEV is full block device:
> 
> # ltp_dev=/dev/vdb fsync04
> ...
> fsync04.c:50: PASS: Test file synced to device
> tst_test.c:1278: INFO: Testing on xfs
> tst_mkfs.c:35 tst_mkfs_(): pev: fs_type: 'xfs'
> tst_mkfs.c:92: INFO: Formatting /dev/vdb with xfs opts='' extra opts=''
> tst_test.c:1215: INFO: Timeout per run is 0h 05m 00s
> fsync04.c:50: PASS: Test file synced to device
> tst_test.c:1278: INFO: Testing on btrfs
> tst_mkfs.c:35 tst_mkfs_(): pev: fs_type: 'btrfs'
> tst_mkfs.c:92: INFO: Formatting /dev/vdb with btrfs opts='' extra opts=''
> tst_test.c:1215: INFO: Timeout per run is 0h 05m 00s
> fsync04.c:50: PASS: Test file synced to device
> tst_test.c:1278: INFO: Testing on vfat
> tst_mkfs.c:35 tst_mkfs_(): pev: fs_type: 'vfat'
> tst_mkfs.c:92: INFO: Formatting /dev/vdb with vfat opts='' extra opts=''
> mkfs.vfat: Device partition expected, not making filesystem on entire device '/dev/vdb' (use -I to override)
> tst_mkfs.c:103: BROK: mkfs.vfat:1: tst_test.c failed with 830
> 
> Do we want to add permanently -I to vfat?
> Or is it too hacky to trying to workaround tool's problem in the code?

I would say that you are supposed to create partition on a real device
without creating a partition first, but you can always outvote me.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list