Skip to content

Commit f6a975c

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/hirofumi/fatfs-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/hirofumi/fatfs-2.6: fat: fat16 support maximum 4GB file/vol size as WinXP or 7. fat: fix utf8 iocharset warning message fat: fix build warning
2 parents d522a0d + 710d440 commit f6a975c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

fs/fat/dir.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ int fat_add_entries(struct inode *dir, void *slots, int nr_slots,
12311231
struct super_block *sb = dir->i_sb;
12321232
struct msdos_sb_info *sbi = MSDOS_SB(sb);
12331233
struct buffer_head *bh, *prev, *bhs[3]; /* 32*slots (672bytes) */
1234-
struct msdos_dir_entry *de;
1234+
struct msdos_dir_entry *uninitialized_var(de);
12351235
int err, free_slots, i, nr_bhs;
12361236
loff_t pos, i_pos;
12371237

fs/fat/inode.c

+3-4
Original file line numberDiff line numberDiff line change
@@ -1188,9 +1188,9 @@ static int parse_options(struct super_block *sb, char *options, int is_vfat,
11881188
out:
11891189
/* UTF-8 doesn't provide FAT semantics */
11901190
if (!strcmp(opts->iocharset, "utf8")) {
1191-
fat_msg(sb, KERN_ERR, "utf8 is not a recommended IO charset"
1191+
fat_msg(sb, KERN_WARNING, "utf8 is not a recommended IO charset"
11921192
" for FAT filesystems, filesystem will be "
1193-
"case sensitive!\n");
1193+
"case sensitive!");
11941194
}
11951195

11961196
/* If user doesn't specify allow_utime, it's initialized from dmask. */
@@ -1367,6 +1367,7 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, int isvfat,
13671367
sbi->free_clusters = -1; /* Don't know yet */
13681368
sbi->free_clus_valid = 0;
13691369
sbi->prev_free = FAT_START_ENT;
1370+
sb->s_maxbytes = 0xffffffff;
13701371

13711372
if (!sbi->fat_length && b->fat32_length) {
13721373
struct fat_boot_fsinfo *fsinfo;
@@ -1377,8 +1378,6 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, int isvfat,
13771378
sbi->fat_length = le32_to_cpu(b->fat32_length);
13781379
sbi->root_cluster = le32_to_cpu(b->root_cluster);
13791380

1380-
sb->s_maxbytes = 0xffffffff;
1381-
13821381
/* MC - if info_sector is 0, don't multiply by 0 */
13831382
sbi->fsinfo_sector = le16_to_cpu(b->info_sector);
13841383
if (sbi->fsinfo_sector == 0)

0 commit comments

Comments
 (0)