diff options
author | Kevin Dankwardt <k@kcomputing.com> | 2010-02-10 23:43:40 +0900 |
---|---|---|
committer | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2010-02-10 23:49:08 +0900 |
commit | eeb5b4ae81f4a750355fa0c15f4fea22fdf83be1 (patch) | |
tree | d71cdc178b8643a5ddced54dc540403d11af9fa1 /fs/fat/inode.c | |
parent | 8045e2985012bdb95d832dfbcceae1815880a6ed (diff) | |
download | op-kernel-dev-eeb5b4ae81f4a750355fa0c15f4fea22fdf83be1.zip op-kernel-dev-eeb5b4ae81f4a750355fa0c15f4fea22fdf83be1.tar.gz |
fat: Fix stat->f_namelen
I found that the length of a file name when created cannot exceed 255
characters, yet, pathconf(), via statfs(), returns the maximum as 260.
Signed-off-by: Kevin Dankwardt <k@kcomputing.com>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Diffstat (limited to 'fs/fat/inode.c')
-rw-r--r-- | fs/fat/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 14da530..d0a504c 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c @@ -558,7 +558,7 @@ static int fat_statfs(struct dentry *dentry, struct kstatfs *buf) buf->f_bavail = sbi->free_clusters; buf->f_fsid.val[0] = (u32)id; buf->f_fsid.val[1] = (u32)(id >> 32); - buf->f_namelen = sbi->options.isvfat ? 260 : 12; + buf->f_namelen = sbi->options.isvfat ? FAT_LFN_LEN : 12; return 0; } |