[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20061031084604.GB14055@kernel.dk>
Date: Tue, 31 Oct 2006 09:46:04 +0100
From: Jens Axboe <jens.axboe@...cle.com>
To: Jan Engelhardt <jengelh@...ux01.gwdg.de>
Cc: Dave Kleikamp <shaggy@...tin.ibm.com>,
Daniel Drake <ddrake@...ntes3d.com>, axboe@...e.de,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] jfs: Add splice support
On Tue, Oct 31 2006, Jan Engelhardt wrote:
>
> >> This allows the splice() and tee() syscalls to be used with JFS.
> >
> >Gosh, that was easy. Why couldn't I do that? :-)
>
> You could add it to all the other filesystems that lack it. (Cautionary
> question: Does that work at an instant like it did with jfs?)
>
> Seems like only ext[234] gfs2 reiserfs and xfs have splice_read
> currently.
If the file system uses the generic page cache functions for reading and
writing, it should be able to use the generic splice read/write
functions as well. If it doesn't, then more work is likely involved. In
short, check the .read/.write and .aio_read/.aio_write parts of the
file_operations[] structure. jfs uses the generic handlers, hence splice
support should just be the two-liner posted.
--
Jens Axboe
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists