All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ruben Garcia <ruben@ugr.es>
To: linux-kernel@vger.kernel.org
Subject: loop device changes the block size and causes misaligned accesses to the real device, which can't be processed
Date: Wed, 07 Jan 2004 18:03:48 +0100	[thread overview]
Message-ID: <3FFC3BF4.6080105@ugr.es> (raw)

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)


             reply	other threads:[~2004-01-07 17:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-07 17:03 Ruben Garcia [this message]
2004-01-07 18:12 ` loop device changes the block size and causes misaligned accessesto the real device, which can't be processed 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FFC3BF4.6080105@ugr.es \
    --to=ruben@ugr.es \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.