lib/tst_mkfs: append -f option when creating btrfs
PATCH 1/1 lib/tst_mkfs: append -f option when creating btrfs
mkfs.btrfs needs -f option to force the mkfs process too.
--- lib/tst_mkfs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
lib/tst_mkfs.c +5 -5
@@ -31,12 +31,12 @@ void tst_mkfs(void (cleanup_fn)(void), const char *dev,int pos =3 ;/* -* The mkfs.xfs aborts if it finds a filesystem superblock -* on the device, which is the case here as we reuse one -* device for all tests. +* mkfs.xfs and mkfs.btrfs aborts if it finds a filesystem +* superblock on the device, which is the case here as we +* reuse one device for all tests. */ -if (!strcmp (fs_type,"xfs" )) { -tst_resm (TINFO ,"Appending '-f' force flag to mkfs.xfs" ); +if (!strcmp (fs_type,"xfs" ) || !strcmp (fs_type,"btrfs" )) { +tst_resm (TINFO ,"Appending '-f' flag to mkfs.%s" , fs_type); argv[pos++] ="-f" ; }
Signature · 13 lines
1.8.5.3 ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 6 lines · Eryu Guan
mkfs.btrfs needs -f option to force the mkfs process too.
Signed-off-by Eryu Guan <[email protected]>--- lib/tst_mkfs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
Good catch, applied, thank you.
Wanlong Gao
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list