From mboxrd@z Thu Jan 1 00:00:00 1970 From: gao bo Subject: How to invoke the "discard" operation over btrfs Date: Wed, 15 Dec 2010 21:24:34 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 To: linux-btrfs@vger.kernel.org Return-path: List-ID: Hi all, Is there anybody know how to invoke the "discard" operation over btrfs filesystem? Does delete a file by "rm" will trigger the "discard" operation? If I want to trigger "discard" operation,how should i do? if there any pre-requires? such as the device must be ssd, btrfs should be mounted with "-o discard". Any suggestion is appreciated. Thanks a lot!