Linux-kernel mailing list archive 1999-20,: Re: mount()

# Re: mount()

Trevor Johnson (trevor@jpj.net)
Sun, 16 May 1999 10:26:32 -0400 (EDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Alexander Viro: "Re: VFAT rename"
- Previous message: Tor Arntsen: "Re: Alpha Timekeeping - Hardware Questions"

> Anyhow, is there a reason why the kernel prints out filesystem error
> messages on the console? Actually, that's kind of a stupid question, so
> let me rephrase it a bit. Is there a reason why iso9660 filesystem error
> messages need to be printed out on the console? =)

--- linux-2.3.2/fs/isofs/inode.c.orig Tue May 11 23:01:41 1999
+++ linux-2.3.2/fs/isofs/inode.c Sun May 16 07:23:35 1999
@@ -1117,7 +1117,7 @@
.. but a DVD may be up to 1Gig (Ulrich Habel) */
if((inode->i_size < 0 || inode->i_size > 1073741824) &&
inode->i_sb->u.isofs_sb.s_cruft == 'n') {
- printk("Warning: defective cdrom. Enabling \"cruft\" mount option.\n");
+ printk(KERN_WARNING "Warning: defective CD-ROM. Enabling \"cruft\" mount option.\n");
inode->i_sb->u.isofs_sb.s_cruft = 'y';
}
@@ -1192,7 +1192,7 @@
*/
if (inode->i_sb->u.isofs_sb.s_cruft == 'n' &&
(volume_seq_no != 0) && (volume_seq_no != 1)) {
- printk("Warning: defective cdrom (volume sequence number). Enabling \"cruft\" mount option.\n");
+ printk(KERN_WARNING "Warning: defective CD-ROM (volume sequence number). Enabling \"cruft\" mount option.\n");
inode->i_sb->u.isofs_sb.s_cruft = 'y';
}
@@ -1201,7 +1201,7 @@
#ifndef IGNORE_WRONG_MULTI_VOLUME_SPECS
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");
+ printk(KERN_WARNING "Multi-volume CD somehow got mounted.\n");
} else
#endif IGNORE_WRONG_MULTI_VOLUME_SPECS
{
__
Trevor Johnson

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

- Next message: Alexander Viro: "Re: VFAT rename"
- Previous message: Tor Arntsen: "Re: Alpha Timekeeping - Hardware Questions"