Bugzilla – Attachment 77743 Details for
Bug 149905
cannot burn DVD iso from NFS source
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
Proposed patch to growisofs
growisofs-directio-limit (text/plain), 1.07 KB, created by
Olaf Kirch
on 2006-04-11 10:41:27 UTC
(
hide
)
Description:
Proposed patch to growisofs
Filename:
MIME Type:
Creator:
Olaf Kirch
Created:
2006-04-11 10:41:27 UTC
Size:
1.07 KB
patch
obsolete
> growisofs.c | 12 +++++++++--- > 1 files changed, 9 insertions(+), 3 deletions(-) > >Index: dvd+rw-tools-6.1/growisofs.c >=================================================================== >--- dvd+rw-tools-6.1.orig/growisofs.c >+++ dvd+rw-tools-6.1/growisofs.c >@@ -506,6 +506,7 @@ static pwrite64_t pwrite64_method = pwri > */ > static char *the_buffer; > static unsigned int the_buffer_size=DEFAULT_BUF_SIZE_MB*1024*1024; >+static unsigned int directio_chunk = 4 * 1024 * 1024; > > /* > * Synchronization objects >@@ -1968,10 +1969,15 @@ int builtin_dd (int infd,int outfd,off64 > highest_ecc_block = off/DVD_BLOCK; > assert (highest_ecc_block==2); > /* Fill the_buffer up to the_buffer_size */ >- while ((n=read (infd,the_buffer+off,the_buffer_size-off)) > 0) >- { off += n; >- if (off == the_buffer_size) >+ while (off < the_buffer_size) { >+ unsigned int to_read = the_buffer_size - off; >+ >+ if (to_read > directio_chunk) >+ to_read = directio_chunk; >+ >+ if ((n = read(infd, the_buffer+off, to_read)) <= 0) > break; >+ off += n; > } > if (n<0) goto out; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 149905
:
67550
|
75786
|
77012
| 77743