FAT: add 'errors' mount option
authorDenis Karpov <ext-denis.2.karpov@nokia.com>
Wed, 3 Jun 2009 17:34:22 +0000 (02:34 +0900)
committerOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Wed, 3 Jun 2009 17:34:51 +0000 (02:34 +0900)
commit85c7859190c4197a7c34066db14c25903c401187
tree9cf54e894f52eb1edfd35daeff66bfb5697b8360
parent9fa7eb283c5cdc2b0f4a8cfe6387ed82e5e9a3d3
FAT: add 'errors' mount option

On severe errors FAT remounts itself in read-only mode. Allow to
specify FAT fs desired behavior through 'errors' mount option:
panic, continue or remount read-only.

`mount -t [fat|vfat] -o errors=[panic,remount-ro,continue] \
<bdev> <mount point>`

This is analog to ext2 fs 'errors' mount option.

Signed-off-by: Denis Karpov <ext-denis.2.karpov@nokia.com>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Documentation/filesystems/vfat.txt
fs/fat/cache.c
fs/fat/dir.c
fs/fat/fat.h
fs/fat/fatent.c
fs/fat/file.c
fs/fat/inode.c
fs/fat/misc.c
fs/fat/namei_msdos.c
fs/fat/namei_vfat.c