Re: [PATCH] jfs: Add splice support

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

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux