will mkfs.btrfs do an initial pre-discard for SSDs like mke2fs does for Ext4?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

are there any plans that future versions of mkfs.btrfs will do an
initial pre-discard for SSDs? (AFAIK mkfs.btrfs does not do this
currently)

For Ext4, mke2fs does this with the -E discard option.
>From the mke2fs manpage:
  -E discard
    Attempt to discard blocks at mkfs time (discarding blocks initially is useful
    on solid state devices and sparse / thin-provisioned storage). When the device
    advertises that discard also zeroes data (any subsequent read after the discard
    and before write returns zero), then mark all not-yet-zeroed inode tables as
    zeroed. This significantly speeds up filesystem initialization. This is set
    as default.

Best regards,
Werner


--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux