1. 19 Sep, 2009 1 commit
    • OGAWA Hirofumi's avatar
      fat: Check s_dirt in fat_sync_fs() · ed248b29
      OGAWA Hirofumi authored
      If we didn't check sb->s_dirt, it will update the FSINFO
      unconditionally. It will reduce the filetime of flash base device.
      
      So, this checks sb->s_dirt. sb->s_dirt is racy, however FSINFO is just
      hint. So even if there is race, and we hit it, it would not become big
      problem.
      
      And this also is as workaround of suspend problem.
      Signed-off-by: default avatarOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
      ed248b29
  2. 01 Aug, 2009 3 commits
    • Paul Wise's avatar
      vfat: change the default from shortname=lower to shortname=mixed · 95523475
      Paul Wise authored
      Because, with "shortname=lower", copying one FAT filesystem tree to
      another FAT filesystem tree using Linux results in semantically
      different filesystems. (E.g.: Filenames which were once "all
      uppercase" are now "all lowercase").
      
      So, this changes the default of "shortname=lower" to "shortname=mixed".
      Signed-off-by: default avatarPaul Wise <pabs3@bonedaddy.net>
      [change fat_show_options()]
      Signed-off-by: default avatarOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
      95523475
    • OGAWA Hirofumi's avatar
      fat/nls: Fix handling of utf8 invalid char · 67638e40
      OGAWA Hirofumi authored
      With utf8 option, vfat allowed the duplicated filenames.
      
      Normal nls returns -EINVAL for invalid char. But utf8s_to_utf16s()
      skipped the invalid char historically.
      
      So, this changes the utf8s_to_utf16s() directly to return -EINVAL for
      invalid char, because vfat is only user of it.
      
      mkdir /mnt/fatfs
      FILENAME=`echo -ne "invalidutf8char_\\0341_endofchar"`
      echo "Using filename: $FILENAME"
      dd if=/dev/zero of=fatfs bs=512 count=128
      mkdosfs -F 32 fatfs
      mount -o loop,utf8 fatfs /mnt/fatfs
      touch "/mnt/fatfs/$FILENAME"
      umount /mnt/fatfs
      mount -o loop,utf8 fatfs /mnt/fatfs
      touch "/mnt/fatfs/$FILENAME"
      ls -l /mnt/fatfs
      umount /mnt/fatfs
      
      ----  And the output is:
      
      Using filename: invalidutf8char_\0341_endofchar
      128+0 records in
      128+0 records out
      65536 bytes (66 kB) copied, 0.000388118 s, 169 MB/s
      mkdosfs 2.11 (12 Mar 2005)
      total 0
      -rwxr-xr-x 1 root root 0 Jun 28 19:46 invalidutf8char__endofchar
      -rwxr-xr-x 1 root root 0 Jun 28 19:46 invalidutf8char__endofchar
      Tested-by: default avatarMarton Balint <cus@fazekas.hu>
      Signed-off-by: default avatarOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
      67638e40
    • Linus Torvalds's avatar
      Linux 2.6.31-rc5 · ed680c4a
      Linus Torvalds authored
      ed680c4a
  3. 31 Jul, 2009 19 commits
  4. 30 Jul, 2009 17 commits