From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 30 Jan 2012 09:30:48 -0500 From: Christoph Hellwig Message-ID: <20120130143048.GA11766@infradead.org> References: <20120127025701.GB16767@agk-dp.fab.redhat.com> <20120130094336.GA4264@ubuntu> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20120130094336.GA4264@ubuntu> Subject: Re: [linux-lvm] [dm-devel] ??????: New LVM2 release 2.02.89: Thinly-provisioned logical?volumes Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: LVM general discussion and development , "lvm-devel@redhat.com" , "dm-devel@redhat.com" On Mon, Jan 30, 2012 at 09:43:37AM +0000, Joe Thornber wrote: > On Mon, Jan 30, 2012 at 06:29:54AM +0000, Kirby Zhou wrote: > > Can the thinly-provisioned logical volume automatically return its owned space to the pool? > > I mean, if I create a huge file on the logical volume, then delete it, will the logical volume actual space size be reduced automatically? > > If not, how can it be shrinked? > > > Discard support is currently in testing. Should go upstream soon. Note that you'll also need filesystem support for that, too. Currently no filesystem enables online discard by default, and at least directly on SSDs the impact is rather bad on all Linux filesystems.