* [PATCH] fat: fix error message for bogus number of directory entries
@ 2016-06-24 5:31 Zheng Lv
2016-06-24 9:03 ` OGAWA Hirofumi
0 siblings, 1 reply; 2+ messages in thread
From: Zheng Lv @ 2016-06-24 5:31 UTC (permalink / raw)
To: hirofumi; +Cc: linux-fsdevel, trivial
"bogus directory-entries per block" was reported for what was instead
bogus number of directory entries. The message also mismatched the
argument passed to printk(), which was sbi->dir_entries.
Fix this by replacing the message with "bogus number of directory
entries". printk() argument was kept unchanged.
Signed-off-by: Zheng Lv <lv.zheng.2015@gmail.com>
Cc: trivial@kernel.org
---
Note that this patch would possibly confuse users who receive the error message from an old kernel but grep in the patched source tree. However, I think this case is rare enough to be ignored.
fs/fat/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/fat/inode.c b/fs/fat/inode.c
index 3bcf579..d26a5ce 100644
--- a/fs/fat/inode.c
+++ b/fs/fat/inode.c
@@ -1726,7 +1726,7 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, int isvfat,
sbi->dir_entries = bpb.fat_dir_entries;
if (sbi->dir_entries & (sbi->dir_per_block - 1)) {
if (!silent)
- fat_msg(sb, KERN_ERR, "bogus directory-entries per block"
+ fat_msg(sb, KERN_ERR, "bogus number of directory entries"
" (%u)", sbi->dir_entries);
goto out_invalid;
}
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fat: fix error message for bogus number of directory entries
2016-06-24 5:31 [PATCH] fat: fix error message for bogus number of directory entries Zheng Lv
@ 2016-06-24 9:03 ` OGAWA Hirofumi
0 siblings, 0 replies; 2+ messages in thread
From: OGAWA Hirofumi @ 2016-06-24 9:03 UTC (permalink / raw)
To: Andrew Morton; +Cc: Zheng Lv, linux-fsdevel, trivial
Zheng Lv <lv.zheng.2015@gmail.com> writes:
> "bogus directory-entries per block" was reported for what was instead
> bogus number of directory entries. The message also mismatched the
> argument passed to printk(), which was sbi->dir_entries.
>
> Fix this by replacing the message with "bogus number of directory
> entries". printk() argument was kept unchanged.
>
> Signed-off-by: Zheng Lv <lv.zheng.2015@gmail.com>
> Cc: trivial@kernel.org
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
> ---
> Note that this patch would possibly confuse users who receive the error message from an old kernel but grep in the patched source tree. However, I think this case is rare enough to be ignored.
>
>
> fs/fat/inode.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/fat/inode.c b/fs/fat/inode.c
> index 3bcf579..d26a5ce 100644
> --- a/fs/fat/inode.c
> +++ b/fs/fat/inode.c
> @@ -1726,7 +1726,7 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, int isvfat,
> sbi->dir_entries = bpb.fat_dir_entries;
> if (sbi->dir_entries & (sbi->dir_per_block - 1)) {
> if (!silent)
> - fat_msg(sb, KERN_ERR, "bogus directory-entries per block"
> + fat_msg(sb, KERN_ERR, "bogus number of directory entries"
> " (%u)", sbi->dir_entries);
> goto out_invalid;
> }
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-24 9:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-24 5:31 [PATCH] fat: fix error message for bogus number of directory entries Zheng Lv
2016-06-24 9:03 ` OGAWA Hirofumi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.