All of lore.kernel.org
 help / color / mirror / Atom feed
* NFS directio
@ 2006-03-30 15:15 Olaf Kirch
  2006-03-30 16:03 ` Trond Myklebust
  0 siblings, 1 reply; 15+ messages in thread
From: Olaf Kirch @ 2006-03-30 15:15 UTC (permalink / raw)
  To: nfs

In recent kernels, NFS direct IO limits the size of a request to
4096 pages, ie 16M on most platforms. This causes growisofs from the
dvd+rw-tools package (http://fy.chalmers.se/~appro/linux/DVD+RW/) to fail.
Its builtin "dd" style function uses 32M buffers by default.

It puzzled me a lot that it is returning -EFBIG, which means "file too
big". At least that should be EINVAL, I think. EFBIG should be reserved
for problems related to largefile support, IMO.

We can easily work around the problem by restricting the buffer size
growisofs uses on NFS, but that feels strange. I think the right way
would be to increase MAX_DIRECTIO_SIZE, and if someone submits a bigger
request, to loop and do that in MAX_DIRECTIO_SIZE chunks.

Comments?

Thanks,
Olaf
-- 
Olaf Kirch   |  --- o --- Nous sommes du soleil we love when we play
okir@suse.de |    / | \   sol.dhoop.naytheet.ah kin.ir.samse.qurax


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2006-04-11  9:16 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-30 15:15 NFS directio Olaf Kirch
2006-03-30 16:03 ` Trond Myklebust
2006-03-30 17:27   ` Chuck Lever
2006-03-31  7:49   ` Olaf Kirch
2006-03-31 14:35     ` Chuck Lever
2006-03-31 14:58       ` Olaf Kirch
2006-03-31 15:50         ` Chuck Lever
2006-04-09 12:38           ` Neil Brown
2006-04-09 22:09             ` Chuck Lever
2006-04-10  4:20               ` Neil Brown
2006-04-10 10:55                 ` Olaf Kirch
2006-04-10 17:36                 ` Chuck Lever
2006-04-11  0:12                   ` Neil Brown
2006-04-11  0:47                     ` Chuck Lever
2006-04-11  9:15                     ` Olaf Kirch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.