[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-cpio] cpio copy-pass mode ignores block size arguments?
From: |
Lars Damerow |
Subject: |
[Bug-cpio] cpio copy-pass mode ignores block size arguments? |
Date: |
Tue, 10 Oct 2006 16:03:10 -0700 |
User-agent: |
Mutt/1.5.11 |
Hello,
I'm trying to use a block size larger (much larger) than 512 in copy-pass mode,
and cpio --help says this should be possible:
Operation modifiers valid in any mode:
--block-size=BLOCK-SIZE Set the I/O block size to BLOCK-SIZE * 512 bytes
-B Set the I/O block size to 5120 bytes
After trying to use the option and seeing (with strace) that the read and write
sizes weren't changing accordingly, I looked at the code and found indications
that these options are ignored in copy-pass mode:
in main.c, lines 764-765:
in_buf_size = DISK_IO_BLOCK_SIZE;
out_buf_size = DISK_IO_BLOCK_SIZE;
in util.c, line 221:
num_bytes = (num_bytes < DISK_IO_BLOCK_SIZE) ? num_bytes : DISK_IO_BLOCK_SIZE;
Since DISK_IO_BLOCK_SIZE is a macro defined as 512, I don't see how I could
ever change the block size at runtime. Am I misunderstanding cpio's usage, or
is there a bug in cpio or its usage message?
thanks,
lars
--
lars r. damerow :: button pusher :: pixar animation studios
<address@hidden>
Somewhere they're meeting on a pinhead, calling you an angel,
calling you the nicest things...
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-cpio] cpio copy-pass mode ignores block size arguments?,
Lars Damerow <=