All of lore.kernel.org
 help / color / mirror / Atom feed
* Mounting of HFS CD-ROM broke between 2.4.9 and 2.4.10
@ 2001-10-18  9:25 Romain Dolbeau
  0 siblings, 0 replies; only message in thread
From: Romain Dolbeau @ 2001-10-18  9:25 UTC (permalink / raw)
  To: linux-kernel

Hello,

HFS (Hierarchical File Sytem, from Apple) formatted CD-ROM used
to mount fine until 2.4.9, and file on them were accessible.
They won't mount anymore in 2.4.10 and 2.4.12. Error messages are:

#####
ll_rw_block: device 0b:00: only 2048-char blocks implemented (512)
hfs_fs: unable to read block 0x00000002 from dev 0b:00
hfs_fs: Unable to read superblock
ll_rw_block: device 0b:00: only 2048-char blocks implemented (512)
hfs_fs: unable to read block 0x00000000 from dev 0b:00
hfs_fs: Unable to read block 0.
#####

Between 2.4.9 and 2.4.10, changes were made to this function
including:

#####
--- linux-2.4.9/drivers/block/ll_rw_blk.c       Sat Aug  4 07:37:09 2001
+++ linux-2.4.10/drivers/block/ll_rw_blk.c      Fri Sep 21 06:02:01 2001
[SNIP some other changes]
@@ -990,12 +973,7 @@
        major = MAJOR(bhs[0]->b_dev);
 
        /* Determine correct block size for this device. */
-       correct_size = BLOCK_SIZE;
-       if (blksize_size[major]) {
-               i = blksize_size[major][MINOR(bhs[0]->b_dev)];
-               if (i)
-                       correct_size = i;
-       }
+       correct_size = get_hardsect_size(bhs[0]->b_dev);
 
        /* Verify requested block sizes. */
        for (i = 0; i < nr; i++) {
#####

A check then made on correct_size fails with the above error message.

-- 
DOLBEAU Romain               | Brothers of Metal will always be there     
ENS Cachan / Ker Lann        | Standing together with hands in the air    
Thesard IRISA / CAPS         |           -- Manowar,                      
dolbeaur@club-internet.fr    |                     'Brothers of Metal'

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-10-18  9:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-18  9:25 Mounting of HFS CD-ROM broke between 2.4.9 and 2.4.10 Romain Dolbeau

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.