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

Re: [Nbd] NBD kernel module, client and server with support for TRIM



On Wed, Mar 14, 2012 at 04:15:47PM -0700, katon goukakyuuno wrote:
> Hi all,
> 
> I am working on Linux kernel 3.0 (vanilla) and have 2.9.23 version of the
> nbd-client and nbd-server installed. Looking at the kernel sources, I find that
>  NBD_CMD_TRIM is not supported in this version of the kernel; however, I did
> come across various threads where discussions were going on about adding
> support for the TRIM operation to NBD.

Right; as far as I know, they haven't made it to Linus yet. Paul?

> Could you please provide the link to the patches for the kernel,

On this mailinglist (and on LKML), in September last year: 

http://sourceforge.net/mailarchive/forum.php?thread_name=1951246803.1122458.1315474882425.JavaMail.root%40zmail07.collab.prod.int.phx2.redhat.com&forum_name=nbd-general

> nbd-client and nbd-server

They are in nbd 2.9.24 (support for TRIM command) and 2.9.25 (using
FALLOCATE_FL_PUNCH_HOLE if available). If you need it now, you want
commits 111058e5 and 036f5246

> so that I can use TRIM in association with NBD on my system? I believe
> that the qemu kernel has been patched already. Can the same patch be
> used with my kernel as well?
> 
> By the way, the latest version of nbd-client and nbd-server support TRIM,
> right?

Yes.

-- 
The volume of a pizza of thickness a and radius z can be described by
the following formula:

pi zz a



Reply to: