On Tue, May 07 2002, Peter Osterlund wrote:
On Mon, 6 May 2002, Johnathan Hicks wrote:
I thought some people here might find this amusing. After I quick-formatted a CD-RW with cdrwtool today I then did the following:
mke2fs -b 2048 /dev/pktcdvd0
It appears to work OK and I'm compiling a kernel on it as I type this. pktcdvd can't handle this properly unless the '-b 2048' is given for a pretty obvious reason. df tells me that the capacity of a disc formatted like this is 530MB so there is a few MB lost compared to UDF. I'm pretty sure this is a follish thing to do so would anyone care to give me some technical reasons why? :)
Yes, I have tested this too. It works in 2.4 but not in 2.5. In 2.5 sr.c complains about unaligned transfers when I try to mount the filesystem. 2.4 has code (sr_scatter_pad) to handle unaligned transfers, but that code was removed in 2.5, and I havn't yet investigated how it is supposed to work without that code.
There's supposed to be a reblocking player in the middle, ala loop. This doesn't really work well for pktcdvd of course, so I'd suggest writing a helper for reading and writing sub-block size units. -- Jens Axboe