Skip to contentSkip to conversation

HFS cleanup #1 - remove partition code

PATCH Oliver Neukum 3 participants 4 messages Aug 9, 2002 – Aug 10, 2002 HFS filesystem

lore
Share & tools
lore
#0 lore raw

Hi,

this removes the independent partition code from hfs.
This is the first patch taking an axe to hfs so it'll be in shape for 2.6. Does anybody object to it being sent to Linus ?

Regards
Oliver

fs/hfs/Makefile +1 -1
diff -Nru a/fs/hfs/Makefile b/fs/hfs/Makefile
@@ -7,6 +7,6 @@
 hfs-objs := balloc.o bdelete.o bfind.o bins_del.o binsert.o bitmap.o bitops.o \
 	    bnode.o brec.o btree.o catalog.o dir.o dir_cap.o dir_dbl.o \
 	    dir_nat.o extent.o file.o file_cap.o file_hdr.o inode.o mdb.o \
-            part_tbl.o string.o super.o sysdep.o trans.o version.o
+            string.o super.o sysdep.o trans.o version.o
 
 include $(TOPDIR)/Rules.make
fs/hfs/part_tbl.c deleted +0 -244

244 lines not on this page · raw message

fs/hfs/super.c +0 -17
diff -Nru a/fs/hfs/super.c b/fs/hfs/super.c
@@ -470,24 +470,7 @@
 	/* set the device driver to 512-byte blocks */
 	sb_set_blocksize(s, HFS_SECTOR_SIZE);
 
-#ifdef CONFIG_MAC_PARTITION
-	/* check to see if we're in a partition */
 	mdb = hfs_mdb_get(s, s->s_flags & MS_RDONLY, 0);
-
-	/* erk. try parsing the partition table ourselves */
-	if (!mdb) {
-		if (hfs_part_find(s, part, silent, &part_size, &part_start)) {
-	    		goto bail2;
-	  	}
-	  	mdb = hfs_mdb_get(s, s->s_flags & MS_RDONLY, part_start);
-	}
-#else
-	if (hfs_part_find(s, part, silent, &part_size, &part_start)) {
-		goto bail2;
-	}
-
-	mdb = hfs_mdb_get(s, s->s_flags & MS_RDONLY, part_start);
-#endif
 
 	if (!mdb) {
 		if (!silent) {
#1 lore raw
Quoted 3 lines · Oliver Neukum

this removes the independent partition code from hfs.
This is the first patch taking an axe to hfs so it'll be in shape for 2.6. Does anybody object to it being sent to Linus ?

I really hate to say it, but... yes. This is needed for CD-ROMs.

#3 lore raw
In reply to Oliver Neukum

I'd say that it's pretty important for compatibility with HFS-formatted devices such as CDROMs.

Quoted 9 lines · Oliver Neukum

Hi,

this removes the independent partition code from hfs.
This is the first patch taking an axe to hfs so it'll be in shape for 2.6. Does anybody object to it being sent to Linus ?

Regards
Oliver

#2 lore raw
In reply to Albert D. Cahalan

Am Samstag, 10. August 2002 01:47 schrieb Albert D. Cahalan:

Quoted 7 lines
Quoted 3 lines · Oliver Neukum

this removes the independent partition code from hfs.
This is the first patch taking an axe to hfs so it'll be in shape for 2.6. Does anybody object to it being sent to Linus ?

I really hate to say it, but... yes. This is needed for CD-ROMs.

Oh shit. So it's either this, or pushing that into the CD layer. Are there plans to do that? Sessions properly done need it anyway.

So for the time being I retract it.

Regards
Oliver