Slashdot Mirror


Linux Patch Clears the Air For Use of Microsoft's FAT Filesystem

Ars Technica is reporting that a new kernel patch may provide a workaround to allow use of Microsoft's FAT file system on Linux without paying licensing fees. "Andrew Tridgell, one of the lead developers behind the Samba project, published a patch last week that will alter the behavior of the Linux FAT implementation so that it will not generate both short and long filenames. In situations where the total filename fits within the 11-character limit, the filesystem will generate only a short name. When the filename exceeds that length, it will only generate a long name and will populate the short name value with 11 invalid characters so that it is ignored by the operating system."

23 of 272 comments (clear)

  1. Can someone explain to me why this is important? by BumbaCLot · · Score: 4, Interesting

    Is FAT used for anything other than USB drives?

  2. Patents and Trademarks by causality · · Score: 5, Informative

    When I read this my first impression, though admittedly not an informed one, was "you mean people pay to use FAT?" I wish patents were more like trademarks, where if you don't vigorously defend them and instead let them go for a while, you lose them and they become public domain. Wouldn't that be nice, to get rid of all these situations as well as all of the "submarine patents" in one fell swoop?

    --
    It is a miracle that curiosity survives formal education. - Einstein
    1. Re:Patents and Trademarks by HungryHobo · · Score: 5, Interesting

      You get my support if you add in something about a requirement that it should be possible to build a working example of whatever you're patenting using the patent documentation(you know, so that patents actually serve their stated purpose).

    2. Re:Patents and Trademarks by digitalunity · · Score: 4, Informative

      FAT is hardly a submarine patent. MS has sued MANY manufacturers over their use of FAT in electronic devices and most companies end up reaching a licensing agreement and the lawsuit is dropped.

      --
      You can't legislate goodness. Let each to his own destiny, by will of his freely made choices.
    3. Re:Patents and Trademarks by causality · · Score: 4, Insightful

      FAT is hardly a submarine patent. MS has sued MANY manufacturers over their use of FAT in electronic devices and most companies end up reaching a licensing agreement and the lawsuit is dropped.

      Thank you for correcting my ignorance on this matter.

      Incidentally, the more I hear of things like this, the better I can understand why so many Europeans think it's absurd that the USA has software patents at all.

      --
      It is a miracle that curiosity survives formal education. - Einstein
    4. Re:Patents and Trademarks by The+Empiricist · · Score: 4, Interesting

      You can't claim any damages that occurred between your becoming aware of infringement and filing suit.

      Sure you can. You can claim damages for damages that occurred between your becoming aware of infringement and filing suit. However, the other side can raise laches as a defense. If you delayed unreasonably in taking action, then the judge might bar your claim to earlier damages.

      What is reasonable and what is not? You can't look at the patent statute to find out, laches are a judicial remedy for inequitable conduct. Thus, you have to go through Federal Circuit cases to find cases that are most similar (and probably distinguishable given a particular set of facts).

      It would probably get very complicated in case where a third-party has allegedly infringed for some time, but the patent owner sued (or countersued) a new alleged infringer based on recent conduct. If the patent owner did not plan on suing the third-party, then why is unfair to wait until the recent conduct before suing the new alleged infringer?

    5. Re:Patents and Trademarks by tchuladdiass · · Score: 4, Informative

      Yes, patents cover any imports. Also according to the statutes wording it is also a violation to manufacture, import, or distribute a kit composed of non-patented items if it violates a patent when assembled. So since the vendors have to include the source code, even if the code is compiled in such a way to avoid the patent the source itself would still be in violation of the patent statute. See US Code TITLE 35 PART III CHAPTER 28 S 271 (c).

  3. Is Microsoft engaging in their 90s behavior? by Ex-Linux-Fanboy · · Score: 5, Interesting

    As a long-time user of Linux who is currently using Microsoft Windows XP, the whole vfat (FAT with Win95 long file names) patent and how Microsoft has handled this patent makes me feel that maybe Microsoft is engaging in the same kind of monopolistic behavior that they engaged in when they destroyed Netscape in the 1990s.

    I'm sure people know about Microsoft's patent violation lawsuit against TomTom; if you don't the Wikipedia is your friend. What a lot of people don't know is that Microsoft made some changes to Vista so that you can no longer easily use an unpatented filesystem like ext2 (Linux's 1990s file system which nicely enough is supported in Windows with a couple of different 3rd party drivers).

    For me, it seems very suspicious that Microsoft made some changes to Vista that make it very difficult to use filesystems not patented by Microsoft around the same time they used licenses for their filesystems as a revenue source.

    I posted a blog about this back in March and to quote that blog entry:

    it can be shown, with Vista, that Microsoft removed compatibility for non-patented filesystems, forcing people to license Microsoft's patents, not because the patents are novel, but because the patented filesystems must be used for interoperability purposes

    1. Re:Is Microsoft engaging in their 90s behavior? by myxiplx · · Score: 5, Informative

      Actually, if you follow the links, it sounds like deliberate behaviour by Microsoft. If true Microsoft are asking for trouble with this. They change the behaviour for their own file system types, and generate an error for any other:

      Quoting from the fsdriver.org site:

      "Currently it is not possible to start a program on Vista if UAC is enabled and the program's executable is stored on an Ex2/Ext3 volume. An "invalid parameter" message box appears, but the program does not start.

      UAC is the feature of Vista that prompts the user to elevate the user privileges to administrator level when necessary. UAC is enabled by default. It is not recommended to disable it.

      The problem is caused by Vista's internals: There is some code that compares whether the name of the file system type is one of the following: "NTFS", "FAT", "FAT32", "CDFS", "NPFS", "MSFS" or "UDF". If there is a match, it is one of Microsoft's file system types and a lot of code is skipped in the Multiple UNC Provider (MUP) implementation of Vista. If the file system type is a third-party type, for example "Ext2", some code runs in the MUP of Vista that always generates an ERROR_INVALID_PARAMETER error status code due to a bug of Vista."

      source: http://www.fs-driver.org/relnotes.html

    2. Re:Is Microsoft engaging in their 90s behavior? by MojoRilla · · Score: 4, Insightful

      The bottom line is that Microsoft is using its monopoly position as an operating system vendor to force third parties to license trivial but patented VFAT technology that is only useful for interoperability.

      If that isn't abuse of their monopoly, I don't know what is.

    3. Re:Is Microsoft engaging in their 90s behavior? by croddy · · Score: 5, Informative

      ext2fsd and fs-driver both work on vista. and they'll both mount my ext3 filesystems, as long as i formatted them with the right inode size.

      the issue you (eventually) link to basically says that all ext2/3 filesystems mounted on vista are the equivalent of noexec. i don't think it is accurate to describe that as a significant issue. i don't know many people who keep substantial quantities of windows executables on their linux drives. the permissions system on ext2/3 is totally wrong for windows anyway, so you'd never use it for, say, %ProgramFiles% or %SystemRoot%.

      do not disable UAC.

      the problem i have with vista's driver support is that on amd64 it requires them to be cryptographically signed by some sort of extortion outfit, or i have to press F8 F8 F8 F8 F8 F8 F8 F8 F8 F8 F8 up up enter every time i boot the system in order to get it to load the drivers i need.

  4. Re:Can someone explain to me why this is important by Daniel_Staal · · Score: 4, Insightful

    Is FAT used for anything other than USB drives?

    You say that like that's a small thing.

    --
    'Sensible' is a curse word.
  5. Comment removed by account_deleted · · Score: 5, Informative

    Comment removed based on user account deletion

  6. Re:Can someone explain to me why this is important by digitalunity · · Score: 4, Informative

    Media players. Hard drives, in computers where there are multiple OS's. Industrial equipment controllers. I bet you even some satellites use FAT.

    It's ubiquitous because it's simple and until the NTFS drivers were fixed(read:not trashing your data), FAT was one of the only convenient formats for sharing data between Windows and Linux.

    --
    You can't legislate goodness. Let each to his own destiny, by will of his freely made choices.
  7. Comment removed by account_deleted · · Score: 4, Informative

    Comment removed based on user account deletion

  8. Re:Who in their right mind would want to use FAT? by Tom9729 · · Score: 5, Insightful

    The reason that FAT is still around has more to do with compatibility than any kind of technical merit. Pretty much every version of Windows supports FAT, and most other operating systems can use it as well. I think most "smart" vendors have figured out that if they use FAT for their devices (music players, cameras, GPS units) then pretty much anyone will be able to use them. That's why it's important to have FAT support in Linux, no one is saying that you have to use it on your / partition though. :-)

  9. MSFT can't give out VFAT, but can give out C#/Mono by phoxix · · Score: 4, Interesting
    One has to wonder if these are Microsoft's actions around something as simple as VFAT, why the f*** would we trust them with C# ??

    What am I missing here ?

    Will Groklaw one day be reporting about MSFT v. SPI ?

  10. Re:Can someone explain to me why this is important by AVee · · Score: 4, Funny

    Don't know about you, but I like my USB drives to be small things.

  11. Re:Can someone explain to me why this is important by cowbutt · · Score: 4, Interesting

    Hopefully, soon, we can start using UDF instead of FAT. Cross-OS compatibility is pretty much there, though FAT's support is still the most broad.

  12. Have you ever tried UDF on a USB flash drive? by peppepz · · Score: 5, Informative

    I use FAT on my usb keys only because I want to be able to use them from Windows machines.
    But in Windows Vista+ you can also format USB flash drives to UDF (you’ll have to use the command line FORMAT tool, the GUI frontend won’t show UDF as an option).
    When formatted in UDF, the drive’s performance improves dramatically: on my usb key, untarring the linux kernel and then deleting it changed from taking a few hours to taking a few minutes.
    UDF can be read/written under Linux and, unlike NTFS, it natively supports all UNIX features (including extended attributes), so for example you could boot Linux straight from a Windows-accessible USB drive without creating ext3 images on it, and without using userspace file system drivers.
    So it could be a nice solution for Linux/Windows interoperability... but sadly Windows stops liking UDF file systems if Linux creates files on them (I don’t know what exactly makes Windows upset; when it happens, Windows’ CHKDSK says the file system is OK).

  13. Re:It's time to show MS the power of *nix by Rockoon · · Score: 4, Funny

    Let me guess.. you are in your teens/early 20's..

    You do realize that in the real world people play the prisoner's dilemma, right?

    --
    "His name was James Damore."
  14. Re:Can someone explain to me why this is important by commodoresloat · · Score: 4, Funny

    Don't know about you, but I like my USB drives to be small things.

    Then why would you want them to be FAT?

  15. Re:May I be the first to say... by MoxFulder · · Score: 4, Insightful

    Hmm, I'm not so sure this is a good idea.....

    How do simpler devices that write to FAT deal with it?

    cameras, pdas, etc

    All modern PDAs can typically deal with long filenames fully, so no problems there. They would read the long filenames properly from a FAT disk created with this Linux patch.

    Digital cameras typically use short filenames exclusively (e.g. IMPC1234.JPG). They mostly only write files and don't read files other than those that they've created themselves. This patch doesn't affect filename reading, only filename writing, so cameras would work okay too.

    MP3 players typically deal with long filenames as well, so no problems again, hopefully... as long as they obey the specs for reading FAT partitions.

    So this patch should not interfere much with interoperability with modern accessory/embedded devices. Of course, the patch does remove some functionality... namely the ability to create nicely matched short filenames when you're also creating a long filename. But I do believe it's a fairly clever way to avoid this bullshit patent while maintaining interoperability.

    It's important to understand that this patch DOES NOT permanently remove any functionality from the Linux kernel. It merely provides a kernel config option to disable full FAT operation. Depending on your jurisdiction/comfort level/Microsoft-hatred/etc. you can choose to enable/disable the patch.