lkml.org 
[lkml]   [2001]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectMounting of HFS CD-ROM broke between 2.4.9 and 2.4.10
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'
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:18    [W:0.036 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site