linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* loop device changes the block size and causes misaligned accesses to the real device, which can't be processed
@ 2004-01-07 17:03 Ruben Garcia
  2004-01-07 18:12 ` loop device changes the block size and causes misaligned accessesto " Jari Ruusu
  2004-01-08  4:04 ` [PATCH] Re: loop device changes the block size and causes misaligned accesses to " Ben Slusky
  0 siblings, 2 replies; 6+ messages in thread
From: Ruben Garcia @ 2004-01-07 17:03 UTC (permalink / raw)
  To: linux-kernel

The loop device advertises a block size of 1024 even when configured 
over a cdrom.

When burning a ext2 on a cd, and mounting it directly, I get:

blocksize=2048;

when I losetup /dev/loop0 /dev/cdrom, and then try to mount, I get:

blocksize=1024; and then misaligned transfer; this results in not being 
able to read the superblock.

The loop device should be changed to export the same blocksize of the 
underlying device

or

to be able to handle the different blocksize and ask the real disk for 
the hard sectors; then split them and send them up.

This is needed for crypto, or backup won't mount. (Worked on 2.4.21+Old 
Cryptoapi)


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

end of thread, other threads:[~2004-01-12 14:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-07 17:03 loop device changes the block size and causes misaligned accesses to the real device, which can't be processed Ruben Garcia
2004-01-07 18:12 ` loop device changes the block size and causes misaligned accessesto " Jari Ruusu
2004-01-12  4:12   ` Bill Davidsen
2004-01-08  4:04 ` [PATCH] Re: loop device changes the block size and causes misaligned accesses to " Ben Slusky
2004-01-08 10:45   ` Ruben Garcia
2004-01-12 14:12     ` Ruben Garcia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).