Re: 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]

 



On Sun, Jul 3, 2011 at 6:00 PM, Werner Fischer <devlists@xxxxxxxx> wrote:
> 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)

It should already have it. That is, if you look in the right place

commit e6bd18d8938986c997c45f0ea95b221d4edec095
Author: Christoph Hellwig <hch@xxxxxx>
Date:   Thu Apr 21 16:24:07 2011 -0400

    btrfs-progs: add discard support to mkfs

    Discard the whole device before starting to create the filesystem
structures.
    Modelled after similar support in mkfs.xfs.

    Signed-off-by: Christoph Hellwig <hch@xxxxxx>
    Signed-off-by: Chris Mason <chris.mason@xxxxxxxxxx>

IIRC it's already in tmp branch of Chris' btrfs-progs-unstable, but
not in master (yet).

-- 
Fajar
--
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