/* Written 1992,1993 by Werner Almesberger  - Fixed fat_date_unix2dos for dates earlier than  and date_dos2unix for date==0 by Igor Zhbanov( */
void fat_fs_error(struct super_block *s, const char *fmt,...)
/* Written 1992,1993 by Werner Almesberger  - Fixed fat_date_unix2dos for dates earlier than  and date_dos2unix for date==0 by Igor Zhbanov( */
void fat_fs_error(struct super_block *s, const char *fmt,...)
{
	struct fat_mount_options *opts = &MSDOS_SB(s)->options;
	va_list args;
	printk(KERN_ERR "FAT: Filesystem error (dev %s)\n", s->s_id);
	printk(KERN_ERR "    ");
	va_start(args, fmt);
	vprintk(fmt, args);
	va_end(args);
	printk("\n");
	if (opts->errors == FAT_ERRORS_PANIC)
		panic("    FAT fs panic from previous error\n");
	else if (opts->errors == FAT_ERRORS_RO && !(s->s_flags & MS_RDONLY)) {
		s->s_flags |= MS_RDONLY;
		printk(KERN_ERR "    File system has been set read-only\n");
	}
}