Re: [Nbd] nbd & discard/trim
- To: folkert <folkert@...421...>
- Cc: nbd-general@lists.sourceforge.net
- Subject: Re: [Nbd] nbd & discard/trim
- From: Wouter Verhelst <w@...112...>
- Date: Thu, 9 Aug 2012 13:57:51 +0200
- Message-id: <20120809115751.GB22589@...3...>
- In-reply-to: <20120809105752.GD14886@...855...>
- References: <20120809105752.GD14886@...855...>
On Thu, Aug 09, 2012 at 12:57:53PM +0200, folkert wrote:
> Hi,
>
> What is the current way to enable discard/trim on an nbd block device?
> My nbd server sends the appropriate flags:
> int flags = 1 + 4 + 8 + 32; // FLAGS, FLUSH, FUA, TRIM
> nbd-client package is of version: 1:3.2-1
> connected as:
> nbd-client bs=1024 172.16.86.1 12341 /dev/nbd0
> but still mounting with e.g. -o noatime,discard fails.
I believe the patch isn't in the kernel yet. Paul?
--
The volume of a pizza of thickness a and radius z can be described by
the following formula:
pi zz a
Reply to: