patch-1.3.96 linux/fs/isofs/inode.c

Next file: linux/fs/locks.c
Previous file: linux/fs/filesystems.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.95/linux/fs/isofs/inode.c linux/fs/isofs/inode.c
@@ -25,6 +25,7 @@
 #include <asm/system.h>
 #include <asm/segment.h>
 
+#define MULTI_VOLUME
 #ifdef LEAK_CHECK
 static int check_malloc = 0;
 static int check_bread = 0;
@@ -306,8 +307,10 @@
 	if(high_sierra){
 	  rootp = (struct iso_directory_record *) h_pri->root_directory_record;
 	  if (isonum_723 (h_pri->volume_set_size) != 1) {
+#ifndef  MULTI_VOLUME 
 	    printk("Multi-volume disks not (yet) supported.\n");
 	    goto out;
+#endif
 	  };
 	  s->u.isofs_sb.s_nzones = isonum_733 (h_pri->volume_space_size);
 	  s->u.isofs_sb.s_log_zone_size = isonum_723 (h_pri->logical_block_size);
@@ -315,8 +318,10 @@
 	} else {
 	  rootp = (struct iso_directory_record *) pri->root_directory_record;
 	  if (isonum_723 (pri->volume_set_size) != 1) {
+#ifndef MULTI_VOLUME
 	    printk("Multi-volume disks not (yet) supported.\n");
 	    goto out;
+#endif
 	  };
 	  s->u.isofs_sb.s_nzones = isonum_733 (pri->volume_space_size);
 	  s->u.isofs_sb.s_log_zone_size = isonum_723 (pri->logical_block_size);
@@ -614,10 +619,13 @@
 	  inode->i_sb->u.isofs_sb.s_cruft = 'y';
 	}
 
+#ifndef MULTI_VOLUME
 	if (inode->i_sb->u.isofs_sb.s_cruft != 'y' && 
 	    (volume_seq_no != 0) && (volume_seq_no != 1)) {
 		printk("Multi volume CD somehow got mounted.\n");
-	} else {
+	} else
+#endif	
+	{
 	  if (S_ISREG(inode->i_mode))
 	    inode->i_op = &isofs_file_inode_operations;
 	  else if (S_ISDIR(inode->i_mode))

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this