Sony Beefs up FAT for Consumer Devices 56
An anonymous reader points to a report at LinuxDevices which says that "Sony has created an enhanced version of the vFAT filesystem that it says works better in Linux-based consumer electronic devices with removable USB mass storage devices. Unlike vFAT, the xvFAT filesystem will not induce a kernel panic if a USB storage device is removed during a write operation, Sony says," and writes "For now, xvFAT is a patch to the Linux 2.4.20 source tree maintained by CELF, an industry group of consumer electronics giants working to improve Linux for CE devices. Sony intends to submit the filesystem for inclusion in the mainstream 2.6 Linux tree as well."
Wow, Sony just gained major cool points for that.. (Score:1)
Re:Wow, Sony just gained major cool points for tha (Score:2)
Re:Wow, Sony just gained major cool points for tha (Score:2, Informative)
It would have been even cooler if they would have just used an already implemented open source file system and then wrote a driver for the Windows guys
Except the installable file system layer in Windows 2000 and XP has a reputation for being poorly documented. The file system headers also cost money [microsoft.com], though an order of magnitude less than it cost in the Win2k era. Sony could pay this, but this expense is why you don't see an IFS port of Ext3, Reiser4, or any of the other popular Free file systems.
Re:Wow, Sony just gained major cool points for tha (Score:3, Interesting)
Re:Wow, Sony just gained major cool points for tha (Score:2)
Re:Wow, Sony just gained major cool points for tha (Score:2)
FAT has big granulation (even as FAT32), it doesn't scale well, long file names support is an ugly kludge, it gives very little chance for recovery if the filesystem gets corrupted, etc, etc.
Using any of existing file systems would give them a lot sturdier base than tweaking a CPM-era thing.
Re:Wow, Sony just gained major cool points for tha (Score:2)
Still won't buy Sony products. (Score:3, Insightful)
So apparently it's OK to "vigorously defend their IP", while blatantly violating everybody else's. I wonder if the same big bucks and lawyers that force little people to bow to their corporate steamroller had anything to do with voiding Microsoft's patent of the FAT filesystem?
Don't misunderstand me; pulling out that particular stupid patent after all these years was a dirty stunt, and certainly deserved to get shot down, but that doesn't make Sony any cleaner. Two rabid pit bulls aren't any better than one.
whose IP are they violating? (Score:2)
Whose IP is Sony "violating"? FAT is not patented or protected in any other way.
I don't like Sony, but please don't try to create non-existent intellectual property out of thin air. The more people like you pay lip service to that nonsense, the more people will believe that it actually exists.
Re:Still won't buy Sony products. (Score:3, Funny)
Re:Still won't buy Sony products. (Score:2)
Re:Still won't buy Sony products. (Score:2)
- optimize seamless communities
- generate vertical e-services
- leverage synergistic convergence
and best of all
- engage e-business content
Who to believe (Score:3, Interesting)
You can believe Sony doesn't want to pay M$ for using FAT. Therefore finding a need to innovate alittle.
You can believe Sony will probably not go very far with yet "another" standard it created.
The choice is yours...
Re:Who to believe (Score:2)
actually ms tried to pull out some fat patents quite recently(for some fat changes that are not so old, well, they are OLD in computer world sense but not in the patent world).
what i'm intrested more is.. is this compatible with vfat? can i just stick the device to a windows or mac machine and it will still work?
How many... (Score:3, Interesting)
Whats the average throughput compared to a baseline of linearly read data?
Could it be used on CD's and the like instead of iso9660fs and have the main OSes capable of reading them?
Whats the CPU% used for reading 1 MB sequential data per second?
Whats the license (if dual licensed or such) and are there any SOny patents that they might try to stifle this later?
Why cant you prevent Panics from removing vFat utilizing devices? Shouldnt have Linux came up with a way to gracefully determine 'dirtiness' and then dump the kmod gracefully?
I know some questions sound paranoid, but this is Sony we're dealing with. UMD, mem-stick, and god knows how many other things they've encumbered with crap and DRM have proved them one way. This proves them slightly the other....
Very weird company. Hurt with one hand, heal with the other.
Re:How many... (Score:5, Interesting)
Why cant you prevent Panics from removing vFat utilizing devices? Shouldnt have Linux came up with a way to gracefully determine 'dirtiness' and then dump the kmod gracefully?
Foolhardy:
What does the filesystem have to do with crashing, other than the quaility of the driver? i.e. what do the on-disk file structures have to do with having a kernel panic?
Good questions. You've just stumbled into a significant flaw in *nix generally.
Linux, begotten of Unix, does not subscribe to the notion of transient filesystems. Behavior is undefined when filesystems vanish suddenly. It seems obvious enough; the kernel should block IO activity, flush buffers, unmount and return errors to users that are attempting IO to the now missing filesystem. Whatever "damage" occurs to the data (as opposed to filesystem metadata) is, rightly, the users problem. Unfortunately, this is not what happens.
What does happen falls under the euphemism "implementation defined." A good example is evident with NFS; *nix admins have been independently discovering this for years. If an NFS mount vanishes, *nix processes often hang indefinitely with no means of recovery. Various "soft mount" hacks appeared to accommodate the real world where network problems exist. Again, the actual behavior is not consistent; "soft mounts" are not always honored and obscure things like NFS versions or various "modes" of IO factor into why or why not.
I believe that in the early days the need to optimize IO led to designs that made no allowance for transient filesystems. This design propagated itself into POSIX, where behavior was left undefined. Even today you find crazy things like kernel panics when a FAT filesystem does something other than remain perpetually mounted. There is no "correct" thing to do and developers, hesitant to start inventing policy where none exists, go on being oblivious to the problem.
The fact is that a large percentage of "important" filesystems are transient. Remote storage, removable storage, etc. host valuable data, while permanently attached storage provides only basic machinery.
Sony, stuck trying to make transient vFAT filesystem hosting devices play nice with Linux, has stepped in and attempted to address the problem. *nix will be dragged kicking and screaming into the modern era of transient filesystems. Unfortunately, Sony's pragmatic, special case solution does nothing to address the larger problem, and whatever solutions emerge for all the other possible cases probably will be/are inconsistent in both implementation and behavior.
Blame the *nix folks who, 30 years ago, failed to anticipate hot pluggable keychains with hundreds of megabytes of storage.
Re:How many... (Score:5, Insightful)
Everything you've said here is correct, and I agree with you, but you haven't mentioned the fact that in general, dealing with transient filesystems is an enormously hard problem on any real OS. There is no quick fix for this.
The problem is that you have to make sure that the filesystem on disk is consistent when the media is removed --- but by the time you know that the media is being removed, it's too late to do anything!
Unix deals with this problem by simply refusing to deal with it: it requires you to dismount all filesystems before disconnecting the media. Which is fine if you're dealing with hard disks, but less fine on USB devices and floppies. (There's a good reason why most serious Unix hardware have software floppy drive eject mechanisms.)
(Unix has the particularly unpleasant issue of the unified VM and I/O system; what do you do if you want to page in a block from a file system that's gone away? Seg fault? Block until it comes back again? Wave your arms in the air and run around in small circles? Different implementations do all three...)
Windows and DOS attempt to deal with the problem by using write-through cacheing on anything it thinks is transient. This kills performance. (Try switching off write-through cacheing on your floppy disk sometime.) But even Windows wants you to dismount USB devices before removing them.
Even CP/M had a variation of this problem --- there were specific system calls to detect disk changes and discard its caches. You were supposed to call this every time your program stopped for user input. Not all programs did, which meant that if you changed disks at the wrong time, you could end up with a corrupted disk...
Re:How many... (Score:1)
the problem with floppy disks and usb keys is that they allow you to "yank" them. i.e. there is a physical button on the floppy drive that will force the disk out of the drive, and the USB connec
Re:How many... (Score:1)
Re: (Score:2)
Re:How many... (Score:2)
I can't comment on USB devices, but I've unplugged my iPod in the middle of write operations without a panic occurring. And yes, a dialog appears with a warning telling you not to do such things as it could cause data corruption.
(tig)
Re:How many... (Score:2)
Of course if you pull the disk, the disk may be trashed. The complaint is that there is no real reason this should trash the rest of the system, as well as the disk.
IMHO any reads/writes to a pulled disk should start returning errors at the moment the problem is detected (which may not be until it attempts to flush a block to the disk). The automount program could also get errors. I don't see why this is so hard to do. Most programs will gracefully h
Re:How many... (Score:3, Informative)
Re:How many... (Score:2)
There are two parts to the problem.
1.) The robustness of the OS; does the OS account for the possibility of a device vanishing at some arbitrary moment?
2.) The integrity of the filesystem; Is the possibility of metadata corruption permitted to exist?
The answer to this first question is obviously no or Son
Re:How many... (Score:2)
I'm stunned.
Unix was born on tape drives, not disk drives, and tapes are just as transient as USB thumb drives.
(pause, remembering back to my days as a mainframe programmer)
Ok, I take that back. The old IBM 9-track drives wouldn't drop the "window" until you dismounted the tape. That was to prevent you from accidentally removing a mounted tape. Hopefully the DEC
Re:How many... (Score:2)
Re:How many... (Score:2)
When Unix was created, there really weren't transient file systems. You had *removable* disks, but changing a disk pack wasn't as simple as yanking a dongle, you had to take the drive offline and spin it down and wait for the heads to retract before you could unmount it. Tapes and the like were handled differently (you did remember that 'tar' stands for Tape ARchiver, didn't you?), th
why... (Score:1)
Re:why... (Score:1)
well-tested, and simple enough to not waste much
space on small devices.
covering it. As is mentioned in the article,
Microsoft's recent attempt to patent it failed.
Why would consumer devices be restricted, but not
Linux?
Re:why... (Score:2, Informative)
And if you wonder why the
Re:why... (Score:4, Informative)
The number of filesystems Windows supports is pathetic, because it boils down to FAT32, NTFS, ISO9660, and SMB/CIFS. Your options are really quite limited.
The FAT patent was invalidated.
Crash??? (Score:4, Interesting)
The FS can't just fail the pending write operations? It has to kill the kernel?
What does the filesystem have to do with crashing, other than the quaility of the driver? i.e. what do the on-disk file structures have to do with having a kernel panic?
I mean, that's what xvFAT is, a different set of disk structures, isn't it? (not just a different driver)
There's really no way to make the current vFAT driver recover safely with the current FAT disk structures?
Re:Crash??? (Score:5, Informative)
Having the kernel crash (as opposed to a panic) due to a bug in a filesystem driver is another story. I've once [archive.org] discovered that a maliciously malformed filesystem can send everything into the la-la land. This is where Hurd's separation of kernel structures would be useful.
Re:Crash??? (Score:2)
Just make a file with the same name as it's "special file", then 'ls' the directory.
Bing!
Just trolling, ignore me. (Score:2, Funny)
Re:Just trolling, ignore me. (Score:1)
If you try to cp they su you.
Re:Just trolling, ignore me. (Score:2)
I call out once again to the slashdot coders - we need to add a "-1 Bad Pun" moderation. And a "+1 Bad Pun".
Sony Beef Fat? (Score:1, Funny)
Last two stories on /. (Score:1)
Good or bad? Nosy, Toshiba and IBM == cell processor, Nosy have sorted up a decent usb drive file system (not a memory-stick file system?).
I hate the closed nature of Nosy's PSP, at least in 1.1 and above
Still, big corporations taking an unhealthy interest in open source has proven mildly annoying in the past. IBM did a good job. SCO and Apple have pissed people off. Will Nosy play nice?
*Nosy is
Hahaha (Score:2)
They made a patch to implement their unique variant of vFAT to an old version of the old kernel and claim it's better.
Great job, Sony.
Re:Hahaha (Score:2)
Tom
I have to admit, I'm skeptical (Score:5, Informative)
I'm gonna give it a shot.
Right now I'm going to start copying a large file to my thumb drive, and once it's got 30-40mb done, I'm going to pull out.
Wait for it!
Good news, everyone! All I got was an error message from GNOME -- "I/O Error while copying file foo.avi. Would you like to continue? Skip/Cancel/Retry"
I'm gonna stick the drive back in and tell it to continue -- stay tuned!
Holy crap, it picked up all on its own.
Wait...
Yep, it just passed an fsck.Sony, what are you smoking???
Re:I have to admit, I'm skeptical (Score:2)
Yep, it just passed an fsck.
Sony, what are you smoking???
After reading about your investigative test results, Sony has decided to just stick with vFAT technology.
However, it plans to market it as "pHAT", since it is *so* much cooler.
Re:I have to admit, I'm skeptical (Score:1)
Vaporware (Score:2)
Re:Vaporware (Score:3, Informative)
Granted if you have a 1GB memory stick the 20M or so that Reiser takes is less of a pain and the gains you get from the stability are more worth it...
Tom
BEEFS up FAT, eh? (Score:2)
What were they thinking? (Score:1)