]> git.baikalelectronics.ru Git - kernel.git/commit
affs: add mount option to avoid filename truncates
authorFabian Frederick <fabf@skynet.be>
Mon, 7 Apr 2014 22:39:01 +0000 (15:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 Apr 2014 23:36:08 +0000 (16:36 -0700)
commitd11fccf65592dba3c9d386e57ab000b551b0369b
treeced0c941b1568d00de80b5ced7650f49f6ddcd54
parent4dba9f52e7fe6bedef2829f0b0c90e9d273ea136
affs: add mount option to avoid filename truncates

Normal behavior for filenames exceeding specific filesystem limits is to
refuse operation.

AFFS standard name length being only 30 characters against 255 for usual
Linux filesystems, original implementation does filename truncate by
default with a define value AFFS_NO_TRUNCATE which can be enabled but
needs module compilation.

This patch adds 'nofilenametruncate' mount option so that user can
easily activate that feature and avoid a lot of problems (eg overwrite
files ...)

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/filesystems/affs.txt
fs/affs/affs.h
fs/affs/amigaffs.c
fs/affs/namei.c
fs/affs/super.c