Message ID | 20151208001658.GA93139@jaegeuk.local (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/common/rc b/common/rc index 4c2f42c..b25d173 100644 --- a/common/rc +++ b/common/rc @@ -739,6 +739,11 @@ _scratch_mkfs_sized() $MKFS_REISER4_PROG $MKFS_OPTIONS -y -b $blocksize $SCRATCH_DEV \ `expr $fssize / 1024` ;; + f2fs) + # mkfs.f2fs requires # of sectors as an input for the size + sector_size=`blockdev --getss $SCRATCH_DEV` + $MKFS_F2FS_PROG $MKFS_OPTIONS $SCRATCH_DEV `expr $fssize / $sector_size` + ;; *) _notrun "Filesystem $FSTYP not supported in _scratch_mkfs_sized" ;;