Slashdot Mirror


On the State of Linux File Systems

kev009 writes to recommend his editorial overview of the past, present and future of Linux file systems: ext2, ext3, ReiserFS, XFS, JFS, Reiser4, ext4, Btrfs, and Tux3. "In hindsight it seems somewhat tragic that JFS or even XFS didn't gain the traction that ext3 did to pull us through the 'classic' era, but ext3 has proven very reliable and has received consistent care and feeding to keep it performing decently. ... With ext4 coming out in kernel 2.6.28, we should have a nice holdover until Btrfs or Tux3 begin to stabilize. The Btrfs developers have been working on a development sprint and it is likely that the code will be merged into Linus's kernel within the next cycle or two."

319 comments

  1. The article is incorrect with respect to ext4... by tytso · · Score: 5, Informative

    The article states that ext4 was a Bull project; and that is not correct.

    The Bull developers are one of the companies involved with the ext4 development, but certainly by no means were they the primary contributers. A number of the key ext4 advancements, especially the extents work, was pioneered by the Clusterfs folks, who used it in production for their Lustre filesystem (Lustre is a cluster filesystem that used ext3 with enhancements which they supported commercially as an open source product); a number of their enhancements went on to become adopted as part of ext4. I was the e2fsprogs maintainer, and especially in the last year, as the most experienced upstream kernel developer have been responsible for patch quality assurance and pushing the patches upstream. Eric Sandeen from Red Hat did a lot of work making sure everything was put together well for a distribution to use (there are lots of miscellaneous pieces for full filesystem support by a distribution, such as grub support, etc.). Mingming Cao form IBM did a lot of coordination work, and was responsible for putting together some of the OLS ext4 papers. Kawai-san from Hitachi supplied a number of critical patches to make sure we handled disk errors robuestly; some folks from Fujitsu have been working on the online defragmentation support. Aneesh Kumar from IBM wrote the 128->256 inode migration code, as well as doing a lot of the fixups on the delayed allocation code in the kernel. Val Henson from Red Hat has been working on the 64-bit support for e2fsprogs in the kernel. So there were a lot of people, from a lot of different companies, all helping out. And that is one of the huge strengths of ext4; that we have a large developer base, from many different companies. I believe that this wide base of developer is support is one of the reasons why ext3 was more succesful, than say, JFS or XFS, which had a much smaller base of developers, that were primarily from a single employer.

  2. what fs out there... by Anonymous Coward · · Score: 0

    ...can I configure to use large extents (like in the megabytes range)?

    1. Re:what fs out there... by tytso · · Score: 5, Informative

      Ext4 supports up to 128 megabytes per extent, assuming you are using a 4k blocksize. On architectures where you can use a 16k page size, ext4 would be able to support 2^15 * 16k == 512 megs per extent. Given that you can store 341 extent descriptors in a 4k block, and 1,365 extent descriptors in a 16k block, this is plenty...

    2. Re:what fs out there... by Bandman · · Score: 2, Interesting

      You seem very knowledgeable regarding filesystems in general. I'm interested in learning more about filesystems and how they work. To give you an idea of where I am, I believe I know what blocksize is, but I don't know what an extent is, and how it relates to performance (or why the grandparent would like extents several megabytes large).

      What resources would you suggest to people who are looking to learn more?

    3. Re:what fs out there... by Knuckles · · Score: 5, Funny

      You seem very knowledgeable regarding filesystems in general.

      Dude, it should have been a hint when tytso wrote,

      I was the e2fsprogs maintainer, and especially in the last year, as the most experienced upstream kernel developer have been responsible for patch quality assurance and pushing the patches upstream.

      --
      "When I first heard Daydream Nation it quite frankly scared the living shit out of me." -- Matthew Stearns
    4. Re:what fs out there... by Kent+Recal · · Score: 4, Funny

      Ah, anyone can edit wikipedia. I say he's just showing off to get the chicks!

    5. Re:what fs out there... by TheRaven64 · · Score: 1

      Practical Filesystem Design. It's written by one of the BeFS developers and uses BeFS as a case study (a journalled, extent-based, inode file system with nice support for indexed metadata). Since it's out of print, you can download the PDF from the author's website.

      --
      I am TheRaven on Soylent News
    6. Re:what fs out there... by Anonymous Coward · · Score: 0

      Ah, anyone can edit wikipedia. I say he's just showing off to get the chicks!

      It worked for Jimbo Wales!

    7. Re:what fs out there... by rdnetto · · Score: 1

      Yes, because all the girls want a guy who can write file systems for Linux...

      --
      Most human behaviour can be explained in terms of identity.
    8. Re:what fs out there... by Tokerat · · Score: 1

      Yes, because all the girls want a guy who can write file systems for Linux...

      Be careful! If your sarcasm is detected, we may NEVER see any advance in open-source file systems!

      --
      CAn'T CompreHend SARcaSm?
    9. Re:what fs out there... by Anonymous Coward · · Score: 0

      Wrong! Chicks dig UNIX!

    10. Re:what fs out there... by Anonymous Coward · · Score: 0

      Until someone got murdered, at least.

    11. Re:what fs out there... by Bandman · · Score: 1

      Awesome link. Thanks very much!

  3. Lightweight by postbigbang · · Score: 4, Insightful

    A cute FA in some ways, but bereft of content. Wish there was something to see here, like comparisons regarding integrity, access costs, evolution from JFS and Andrews journaled FS, etc. No real meat (with apologies to the vegetarians out there). Just a lightweight historical analysis with some glib suggestions of current adaptations.

    --
    ---- Teach Peace. It's Cheaper Than War.
    1. Re:Lightweight by Anonymous Coward · · Score: 5, Funny

      Appologies accepted.

      Anonymous Cow

    2. Re:Lightweight by MartinSchou · · Score: 1

      As a para-vegitarian I have to tell you that you don't need to apologize.

    3. Re:Lightweight by Anonymous Coward · · Score: 1, Funny

      Paper for an open-access database-related journal:
      "Anonymous COW, a new Copy-on-Write technique
      for beef-oblivious filesystems"

  4. MOD PARENT INFORMATIVE by Anonymous Coward · · Score: 0, Offtopic

    Very insightful. Just goes to show the power of open source.

  5. Re:The article is incorrect with respect to ext4.. by tytso · · Score: 5, Informative

    Oh, by the way... forgot to mention. If you are looking for benchmarks, there are some very good ones done by Steven Pratt, who does this sort of thing for a living at IBM. They were intended to be in support of the btrfs filesystem, which is why the URL is http://btrfs.boxacle.net/. The benchmarks were done in a scrupulously fair way; the exact hardware and software configurations used are given, and multiple workloads are described, and the filesystems are measured multiple times against multiple workloads. One interesting thing from these benchmarks is that sometimes one filesystem will do better at one workload and at one setting, but then be disastrously worse at another workload and/or configuration. This is why if you want to do a fair comparison of filesystems, it is very difficult in the extreme to really do things right. You have to do multiple benchmarks, multiple workloads, multiple hardware configurations, because if you only pick one filesystem benchmark result, you can almost always make your filesystem come out the winner. As a result, many benchmarking attempts are very misleading, because they are often done by a filesystem developer who consciously or unconsciously, wants their filesystem to come out on top, and there are many ways of manipulating the choice of benchmark or benchmark configuration in order to make sure this happens.

    As it happens, Steven's day job as a performance and tuning expert is to do this sort of benchmarking, but he is not a filesystem developer himself. And it should also be noted that although some of the BTRFS numbers shown in his benchmarks are not very good, btrfs is a filesystem under development, which hasn't been tuned yet. There's a reason why I try to stress the fact that it takes a long time and a lot of hard work to make a reliable, high performance filesystem. Support from a good performance/benchmarking team really helps.

  6. ZFS!! by Anonymous Coward · · Score: 3, Interesting

    What Sun needs to do is release ZFS under a proper license so we can finally have 1 unified filesystem. Yes, we can use it under FUSE, but this brings unnecessary overhead and problems. It will be nice when we can transport disks around, similar to fat(32), and not have to worry about whether another OS will be able to read it or not. On top of that, CRC block checksumming, high performance, smb/nfs/iscsi support integrated, Volume AND partition manager.

    Come on Sun! Are you listening??

    1. Re:ZFS!! by TheRaven64 · · Score: 5, Funny

      Sun has released it under a proper license and we can finally have 1 unified filesystem. The 'we' in this case being Solaris, Mac OS X, and FreeBSD users, of course.

      --
      I am TheRaven on Soylent News
    2. Re:ZFS!! by Anonymous Coward · · Score: 2, Insightful

      Shouldn't ext2 already be that unified file system? Oh, that's right -- GPL prevents anybody else from using. Just like GPL prevents ZFS code from being used in Linux. Looks like the problem is the GPL.

    3. Re:ZFS!! by harry666t · · Score: 4, Insightful

      You can have an alternative implementation of ext2 that wouldn't have to use GPL'd code from Linux. I saw ext2/3 drivers for Windows and I'm pretty sure that at least some of the non-GPL OSs out there (Mac? BSDs? Solaris?) can read/write ext2.

      However, you can't reimplement ZFS under any other license (CDDL is licensing some of the patents that cover the ZFS only to the users of the original implementation or its derivatives). I'd say it's *BOTH* GPL's and CDDL's fault (what's more, Sun chose CDDL exactly because it's GPL-incompatible).

    4. Re:ZFS!! by diegocgteleline.es · · Score: 5, Insightful

      ZFS has redefined the way future filesystems are going to be designed. But there is no way that it's going to be the "last" filesystem.

      As shocking as it may seem to those who have drunk the marketing kool aid, we'll see more filesystems. Filesystem research is as alive as it always was. They'll try to copy the good ideas of ZFS and they will try to avoid the disadvantages (which every software has). So you are never going to have "1 unified filesystem". It's never going to happen. And it's a good thing.

    5. Re:ZFS!! by Anonymous Coward · · Score: 0, Interesting

      Malicious licensing at its best; help anyone with a corporate interest, hurt anyone with a Free Software interest. Sun pulled off the perfect fuck you to the existing Free Software community when it released ZFS and DTrace.

      They didn't even do that to Java's licensing, which while not being technically as advanced and unique as the above mentioned software, is probably worth a whole hell of a lot more.

    6. Re:ZFS!! by dokebi · · Score: 4, Interesting

      UFS (of BSDs) is under the most liberal license possible, yet it's definitely not the most widely used. FAT32 is patented by MS, and it is the most widely used. So, do you still think the problem is GPL?

      --
      In Soviet Russia, articles before post read *you*!
    7. Re:ZFS!! by jopsen · · Score: 1, Insightful

      It will be nice when we can transport disks around, similar to fat(32), and not have to worry about whether another OS will be able to read it or not.

      I'm no filesystem expert... But I think different filesystems for different purposes is a good idea... Do you want to use ZFS on a flash disk or external harddrive... (the ladder might make a little sense).

      Generally I don't get all the fuss about ZFS... Okay, it's cool that we'll need more energy to reach it's limits than needed to boil this oceans...

      smb/nfs/iscsi support integrated, Volume AND partition manager.

      Yes, that's cool... But why does it need to be *in* the filesystem???
      I'm not expert but AFAIK we've got LVM for volume management, and we can run any filesystem ontop of LVM... I think the idea of having volume management separate from filesystem sounds like a good idea, as it would enable you to used different filesystems for different purposes...
      But hey maybe I'm missing something, why not improve or create a replacement for LVM instead of including volume management in the filesystem?

    8. Re:ZFS!! by atrus · · Score: 4, Interesting
      Because having a block based filesystem that has no notion of what the underlying storage is "dumb". ZFS fixes those problems.

      Want to create a new filesystem in ZFS? Sure, no problem. You don't even need to specify a size, it will use whatever space the storage pool has available, no pre-allocation needed. How about removing one? Ok, its removed. Yes, it only took a second to do that. A traditional LVM + FS system can't do that - you need to resize, move, and tweak filesystems when doing any of the above operations - time consuming and limited.

      And if you're asking why you'd want to create and remove filesystems on the fly, there is one word for that: snapshots. Its quite feasible to generate snapshots many times per day for a ZFS backed fileserver (or even database server). Someone created a file at 9am and then accidentally nuked it before lunch? Don't worry, its still present in the 10am and 11am snapshots. All online, instantly available.

    9. Re:ZFS!! by Anonymous Coward · · Score: 0

      The licensing is only an excuse to put the blame on Sun. Linus would never allow it in the kernel because it breaks the filesystem layering. This was the same reason ReiserFS was never allowed into the kernel, despite being superior to the alternatives at the time.

      What I never understood was why Linux didn't adopt BSD's UFS2 (soft updates). I switched my development machine from Linux to FreeBSD and saw massive performance gains when compiling (it went from being disk bound to CPU bound). This was despite efforts to migrate from ext3 to a tuned XFS and putting everyone on 10k raptor drives / 4 core Xeons. In the end they spent an enourmous amount of effort trying to tune Linux - and failing - and are now putting a similar amount trying to rewrite the build system. And while they spend all this effort, time, and money trying to get a decent environment I'm just doing great on UFS2...

    10. Re:ZFS!! by ArbitraryConstant · · Score: 4, Interesting

      > But hey maybe I'm missing something, why not improve or create a replacement for LVM instead of including volume management in the filesystem?

      Maybe. But it would be a lot harder.

      Think about LVM snapshots for example. LVM allocates a chunk of the disk for your filesystem, and then a chunk of disk for your snapshot. When something changes in the parent filesystem, the original contents of that block are first copied to the snapshot. But if you've got two snapshots, it has to be copied to two places, and each snapshot needs its own space to store the original data. Because ZFS/BTRFS/etc are unified, they can keep the original data for any number of snapshots by the simple expedient of leaving it alone and writing the new data someplace new.

      LVMs can grow/shrink filesystems, but filesystems deal with this somewhat grudgingly. LVM lacks a way to handle dynamic allocation of blocks to filesystems in such a way that they can give them back dynamically when they're not using them. ZFS/BTRFS/etc can do this completely on the fly. LVMs rely on an underlying RAID layer to handle data integrity, but most RAID doesn't do this very well. BTRFS is getting a feature that allows it to handle seeky metadata differently than data (eg, use an SSD as a fast index into slow but large disks).

      It is conceivable that an advanced volume manager could be created that does all these things and all the rest (eg checksumming) just as well... but I think the key point is that this isn't something you can do without a *much* richer API for filesystems talking to block devices. They'd need to be able to free up blocks they don't need anymore, and have a way to handle fragmentation when both the filesystem and the volume manager would try to allocate blocks efficiently. They'd need substantially improved RAID implementations, or they'd need to bring the checksumming into the volume manager. I'm not saying it can't be done, but doing it as well as ZFS/BTRFS/etc when you're trying to preserve layering would be very tough. At a minimum you'd need new or substantially updated filesystems and a new volume manager of comparable complexity to ZFS/BTRFS/etc. I understand the preference for a layered approach, but I just don't think it's competitive here.

      --
      I rarely criticize things I don't care about.
    11. Re:ZFS!! by isorox · · Score: 1, Redundant

      They'll try to copy the good ideas of ZFS and they will try to avoid the disadvantages (which every software has). So you are never going to have "1 unified filesystem". It's never going to happen. And it's a good thing.

      One thing I'd really like is using free space on a raidz(2) as a spare disk.

      Imagine the following
      10 1TB disks in a raid5/raidz, giving 9TB of space. You are currently using 7TB, this peaks to 8.5TB at the weekend while backups are staged (or whatever).

      During the week you have unused space. The file system detects this, and in the background transparently makes a second parity drive out of the spare space, effectively changing to raid6/z2 on the fly.

      If you suddenly need to write another 1.5TB, the fake parity is discarded. When your free space drops back below 8TB, the second parity drive is recreated.

      If you lose one of your disks with a raid5/z, you in a danger zone until you replace it, and it rebuilds. This way, you are only in a danger zone if you lose the disk at the weekend when you need the extra space -- you can afford to lose another one (your effective free space keeps reducing).

      When you put a new drive in, assuming you have the free space originally, there's no rebuild time (your parity already exists).

      Another feature would be automatically copying of frequently accessed files -- if a certain bunch of files on a website becomes popular, they would be transparently copied across the spindles to increase access time.

      Finally extend the idea of ZFS to a multi-machine cluster, zfs meets lustre.

    12. Re:ZFS!! by Jesus_666 · · Score: 1

      Actually, if you want a filesystem usable by everyone it will definitely have to come from Microsoft. MS is not going to adopt someone else's FS unless they really have to, so the only serious contenders are FAT32, NTFS and exFAT (things like UDF are highly unlikely as Microsoft probably won't support it for anything but DVD images).

      FAT32 is the current portability king. However, it's also old and extremely limited and people stopped liking it half a decade ago.

      NTFS works... kinda. For example, you can mount a Vista NTFS disk unter XP but you're going to lose some metadata. XP NTFS is supported on every computer equipped with FUSE and ntfs-3g and on every computer running a new-ish Windows. Everywhere else it's useless and ntfs-3g is hardly a default package in most distros so no dice.

      exFAT is essentially FAT64. It supports large files and has some improvements but in general it's very much FAT32's successor, being lightweight and relatively uncomplicated. While this sounds ideal for a widely supported filesystem there are no free exFAT implementations yet and people aren't sure whether Microsoft is going to allow the existence of one. So this one's not a winner, either.


      Everything else will remain *nix-only so, yes, FAT32 is still the only option if you want complete portability (UDF if you can live with jumping through hoops). And it's going to stay that way for the forseeable future.

      --
      USE HOT GRITS WITH STATUE OF NATALIE PORTMAN (NAKED AND PETRIFIED)
    13. Re:ZFS!! by Directrix1 · · Score: 1

      The fact that I can't use Sun's software how I want is a problem with GPL how?

      --
      Occam's razor is the blind faith in the natural selection of least resistance and in universal oversimplification. -- EF
    14. Re:ZFS!! by Unknown+Relic · · Score: 1

      Another feature would be automatically copying of frequently accessed files -- if a certain bunch of files on a website becomes popular, they would be transparently copied across the spindles to increase access time.

      Doesn't Sun's new ZFS-based "open storage" hardware do this already to some extent? It automatically moves the most accessed files onto the solid state drives to speed things up.

    15. Re:ZFS!! by Kent+Recal · · Score: 5, Interesting

      I hear you and I'm sure the filesystem developers have the same ideas in their heads.
      The problem is that there are some really hard problems involved with these things.

      In the end everybody wants basically the same thing: A volume that we can write files to.
      This volume should live on a pool of physical disks to which we can add and remove disks at will and during runtime.

      The unused space should always be used for redundancy, so when our volume is 50% full then we'd expect that 50% of the disks (no matter which) can safely fail at any time without data loss.

      Furthermore we don't really want to care about any of these things. We just want to push physical disks into our server, or pull them, and the pool should grow/shrink automagically.
      And ofcourse we want to always be able to split a pool into more volumes, as long as there's free space in the pool we're splitting from. Ideally without losing redundancy in the process.

      We want all these things and on top we want maximum IOPS and maximum linear read/write performance in any situation. Oh, and we won't really be happy until a pool can span multiple physical machines (that will auto re-sync after a network split and work-as-expected over really slow and unrealiable networks), too.

      ZFS is a huge step forward in many of these regards and there's a whole industry built solely around these problems.
      Only time will tell which of these goals (and the ones that I omitted here) can really be achieved and how many of them can be addressed in a single filesystem.

    16. Re:ZFS!! by SanityInAnarchy · · Score: 2, Informative

      You just have to draw the layers differently.

      I've repeatedly proposed something, only to find that ZFS already implements it: Define one layer which is solely responsible for storing your bare primitives, like a sequence of data. It is the FS-level equivalent of malloc/free.

      Then, implement everything else on top of that layer. Databases could sit directly on the layer -- no reason they need to pretend to create files. Filesystems would sit on that layer, implementing structures like directories and POSIX file permissions.

      Of course, while I'm at it, I have this other idea -- unify disk caches. It should be possible for me to allocate my entire available free space as a shared cache, between my package manager, browser, everything -- then, provide a common mechanism for reclaiming that space when something wants disk space.

      --
      Don't thank God, thank a doctor!
    17. Re:ZFS!! by SanityInAnarchy · · Score: 2

      Actually, if you want a filesystem usable by everyone it will definitely have to come from Microsoft.

      It doesn't much matter whether they cooperate. Even if they insist that the Windows boot device continue to be NTFS, there's a standard way to write filesystem drivers for Windows (ext2 is already supported), and it's easy to put just about everything except Windows itself on another partition, if we have to. (Which we probably won't -- we could even slipstream it in.)

      So, we can force the issue.

      And suppose I have a portable hard drive, which I want to make sure is readable everywhere -- all I have to do is make a separate FAT32 partition with all the relevant software on it for Windows and OS X to read the other partition.

      ntfs-3g is hardly a default package in most distros so no dice.

      On Macs, it's supported via MacFUSE, which users still need to install. On Ubuntu, it absolutely is a default package, already there even on the livecd.

      --
      Don't thank God, thank a doctor!
    18. Re:ZFS!! by beelsebob · · Score: 3, Insightful

      Because Sun are licensing the software for you under a free and open source software license. The only thing stopping you from using it is that it's a license that doesn't agree with the ideology of the "all FOSS must be viral" GPL guys, and thus can't be used with GPLed software. There's plenty of non-GPLed projects that are happily getting on and using ZFS, but GPL guys can't. I'd say that makes it pretty obvious what the problem is.

    19. Re:ZFS!! by szaka · · Score: 2, Informative
      ntfs-3g is hardly a default package in most distros

      Actually it's available for over 190 distributions and it's the default one the most popular ones, e.g. Ubuntu, openSUSE, Fedora, Mandriva, Slackware, etc. Btw, thanks to FUSE, NTFS-3G also works on FreeBSD, NetBSD, OpenSolaris, OS X and some others (more in the way).

    20. Re:ZFS!! by Anonymous Coward · · Score: 0

      So, tell me. Just where did the OSS movement develop this childish demand that it be given everything? It's really impudent; probably why a lot of companies ignore various aspects of the GPL.

    21. Re:ZFS!! by Jesus_666 · · Score: 1

      And suppose I have a portable hard drive, which I want to make sure is readable everywhere -- all I have to do is make a separate FAT32 partition with all the relevant software on it for Windows and OS X to read the other partition.

      Tried it, didn't work. In order to do anything meaningful with a non-FAT/NTFS drive under Windows you need to install an IFS. Few people are going to let you install some random driver on their notebook just to access your USB drive. That's also the reason why MacDrive and ext2-IFS are no solutions: While they give you portability under laboratory conditions (between all of your computers), they are useless for exchanging data with others. A FAT killer needs to run out of the box everywhere, period.

      That's aso why I don't believe that FUSE will solve the problem. It's in Ubuntu but what about Debian or CentOS or Sabayon (this being three distros I encountered lately on random computers)? And, of course, under OS X it's always a separate install (two even, IIRC), putting it solidly in "why should I install some random driver" territory.

      The reason we put up with FAT32 is not high compatibility, it's absolute compatibility. You can stick a FAT32-formatted USB drive into any random comouter you encounter and it will definitely mount with no kind of setup neccessary. Any filesystem that does not meet those criteria is simply no competitor.

      --
      USE HOT GRITS WITH STATUE OF NATALIE PORTMAN (NAKED AND PETRIFIED)
    22. Re:ZFS!! by rubycodez · · Score: 1

      yes, problem is Sun's stupid licensing once again preventing them from gaining wide adoption or turning a profit with software (see also Java). Sun is losing money, too little too late in the direction of open source. bye bye Sun.

    23. Re:ZFS!! by Sentry21 · · Score: 1

      What most Linux users seem not to realize is that Sun has done their part. They've released their code under an OSI-approved license. ZFS (and dtrace) are open-source. Linux could implement them - except the GPL prevents it.

      Linux (thanks to the GPL) is the one saying 'I'm not going to play unless we can use my ball', which is fine because the rest of us are having a good time regardless.

      I'd love to see someone port ZFS to Linux and distribute it as a set of patches for people to download and apply to their own kernel (doubly so for dtrace) but in the meantime, my laptop is running a more advanced OS than my servers, which is sad.

      Maybe it's time to put functionality before ideology?

    24. Re:ZFS!! by TheRaven64 · · Score: 1

      So, it's fine for Linux to use a license which is incompatible with *BSD, but it's not okay for Sun to use a license which is compatible with these but not Linux?

      --
      I am TheRaven on Soylent News
    25. Re:ZFS!! by moosesocks · · Score: 1

      As shocking as it may seem to those who have drunk the marketing kool aid

      For the love of God, can we please stop using that metaphor? When you think of all that it implies, it's literally sickening...

      Filesystem advocacy discussions rarely (if ever) bring up mention of the Holocaust or 9/11. How is it any more appropriate to draw comparisons to the largest mass-suicide in modern history?

      --
      -- If you try to fail and succeed, which have you done? - Uli's moose
    26. Re:ZFS!! by MikeBabcock · · Score: 1

      I love ridiculous logic statements that ignore the philosophy of the arguers.

      If you believe the GPL is a necessary angle on software licensing to preserve freedom, then yes. If you do not and instead believe that BSD-style freedom is enough for anyone, then of course it is not. There is no answer without considering the point of view of the reader.

      --
      - Michael T. Babcock (Yes, I blog)
    27. Re:ZFS!! by MikeBabcock · · Score: 1

      There's no reason (IMHO) not to expose the LVM API to the filesystem layer of course, allowing the filesystem to make these determinations intelligently as ZFS dos.

      --
      - Michael T. Babcock (Yes, I blog)
    28. Re:ZFS!! by jellomizer · · Score: 1

      Or you can change your license so it works with Suns License. Yea you can change too it is probably just as easy or difficult for you to do it as it is for Sun to do it.

      --
      If something is so important that you feel the need to post it on the internet... It probably isn't that important.
    29. Re:ZFS!! by evilviper · · Score: 1

      It will be nice when we can transport disks around, similar to fat(32), and not have to worry about whether another OS will be able to read it or not.

      UFS support is included by every major OS, except Windows (though at least one driver is available: ffsdrv.sf.net)

      What's more, good implementations of UFS (eg. FreeBSD) currently outperform any FS out there on common workloads.

      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    30. Re:ZFS!! by Anonymous Coward · · Score: 0

      Don't forget that Sun engineers SPECIFICALLY chose the CDDL license so that the ZFS code could not be used on Linux. It's like a reverse "not invented here" syndrome. Jealousy and hatred of the success of Linux (and the GPL) does funny things to people.

      It's all moot anyway, since the benefits of ZFS are largely hype, and btrfs will leapfrog it within a year or two for those workloads that do require its unique features.

    31. Re:ZFS!! by Da+Masta · · Score: 2, Insightful

      Get a grip.

      The people of Jonestown CHOSE their fate. They weren't systematically hunted down for their race nor were they killed for being in the wrong city in the wrong building at the wrong time. Everyone in that cult CHOSE to give up their worldly belongings, uproot their lives to Guyana, AND drink the cyanide laced juice (not actually kool-aid) for "revolutionary" causes.

      As long as propaganda and rhetoric have their effects, we should ABSOLUTELY continue to use that metaphor as a reminder against blind faith and zealotry. If anything, lets be a bit more accurate and call it "drinking the flavor-aid".

    32. Re:ZFS!! by afidel · · Score: 1

      Of course, while I'm at it, I have this other idea -- unify disk caches. It should be possible for me to allocate my entire available free space as a shared cache, between my package manager, browser, everything -- then, provide a common mechanism for reclaiming that space when something wants disk space.

      Bad idea, a huge cache is actually less efficient than just grabbing the data from the source in many instances. Imagine you have 10M items in your disk cache, trying to find a 1x1 pix graphic in the index of 10M items is going to take MUCH longer than just downloading that file in the HTTP 1.1 stream.

      --
      There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
    33. Re:ZFS!! by FlyingBishop · · Score: 2, Insightful

      It has nothing to do with requiring software to be viral. In those terms, the CDDL is just as viral as the GPL. You can never link CDDL stuff with GPL stuff, just as surely as if it were proprietary.

      *BSD has no such troubles. It is a truly free and open source license.

      The CDDL, like the GPL, requires that all derived works be licensed under itself, and subject to the same restrictions and freedoms. The freedoms and restrictions the CDDL provides were chosen not for any careful ideological reason, but really just to piss off GPL adherents, and weaken FOSS, pushing for a more OSS approach, where the free is generally as in beer, but rarely as in speech.

    34. Re:ZFS!! by SanityInAnarchy · · Score: 1

      Few people are going to let you install some random driver on their notebook just to access your USB drive.

      Oddly, most people I know are going to let me install anything I want. They'll be curious what it is, but they won't actually stop me -- they assume I know what I'm doing.

      What's more, most people aren't going to have autorun disabled -- therefore, as soon as I plug in, there's a chance I'm running something anyway.

      It's in Ubuntu but what about Debian or CentOS or Sabayon (this being three distros I encountered lately on random computers)?

      If someone's running Sabayon, either they have a very good rationale for not having ntfs-3g installed, or they'll thank you for showing them how to get it working.

      And a Linux user should have even less of a problem, since these packages are most likely available via a trusted repository -- so they don't have to trust anything from my disk.

      The reason we put up with FAT32 is not high compatibility, it's absolute compatibility. You can stick a FAT32-formatted USB drive into any random comouter you encounter and it will definitely mount with no kind of setup neccessary.

      So long as it's at least Windows 2000. 98 won't do it.

      You're right, of course, but it still seems incredibly stupid that we're using a DOS filesystem because nobody had the presence of mind to distribute something useful with the first USB mass storage drivers.

      --
      Don't thank God, thank a doctor!
    35. Re:ZFS!! by jhol13 · · Score: 1

      Sun chose CDDL exactly because it's GPL-incompatible

      It may be one reason, but if you check the differences you'll notice it cannot be the only reason. It cannot be the main reason either.

    36. Re:ZFS!! by Burdell · · Score: 1

      That's not exactly a new concept; AdvFS has done that for 10+ years on DEC^WDigital OSF/1^WUnix^W^WCompaq^WHP Tru64 Unix (and VMS had it before that I believe).

      However, snapshots are not free, and not just thrown around like that. They especially don't help for databases, as a file contains a table, tablespace, or even database (depending on the DB used), and you can't just roll back to an older copy. If you care about that type of thing for databases, you set up the database to have rotating update logs, where you can pull out a bad transaction and roll it back (you don't try to solve that problem at the FS layer where it doesn't make sense).

    37. Re:ZFS!! by SanityInAnarchy · · Score: 1

      Bad idea, a huge cache is actually less efficient than just grabbing the data from the source in many instances.

      In enough others, it's much more efficient. And I'm not just talking about the Web.

      Imagine you have 10M items in your disk cache,

      I'm on a rather small filesystem -- 365,934 files. This is a laptop -- I tend not to keep more on it than I have to.

      It also takes 9 ms to list a directory. That's a listing, not a single file lookup. It's also small enough to be unreliable -- repeating the experiment gives different results.

      Now, I haven't tried this lately, but are you telling me that a filesystem with 10 million records would respond slower? Even if you're right, that lookup was still fast enough that it hardly matters -- but I don't think you are. I think an index could be designed to be fast enough.

      trying to find a 1x1 pix graphic

      There is no good reason to have a 1x1 pixel graphic. Certainly not in a webpage.

      in the index of 10M items is going to take MUCH longer than just downloading that file in the HTTP 1.1 stream.

      That's a pathological case. I'm also going to guess that it's not enough longer to care about -- especially considering the overall gain in the vast majority of cases, where it's not a 1x1 pixel image.

      For example: I know people with capped Internet. Not Comcast-capped, 250-megs-per-day capped. I am sure they would love if YouTube videos were cached for them -- every megabyte helps. It's not like they were doing anything with the other 50 or 100 gigs.

      --
      Don't thank God, thank a doctor!
    38. Re:ZFS!! by atrus · · Score: 1

      NetApp also has it for their storage products. Not a new concept I agree. I've seen is used very successfuly for user home directories. This was a bunch of Linux workstations which used NFS for their home directories. There was a background script which would generate snapshots every 5/15/60/120 minutes (plus some at day/week markers, and remove the previous old snapshot) for a thousand users (and FSes). All transparent to the user, and minimal overhead.

      It can be useful for allowing a delayed read of a 'clean' table state for a database. It requires some interaction of the DB + the FS layer. Put the database in 'journal only' mode, wait for whatever indicator it provides that the tables are now clean, snapshot, and turn on the table writes again.

      This is one way I use of backing up a very large PostgreSQL database. Significantly faster than even attempting to use the builtin dump/restore functionality.

      Of course ZFS and other constant time snapshot filesystems suffer from increased disk fragmentation as they're all based on COW. There is some smart math behind them to avoid it as much as possible, however it can still be a problem. Maybe the future of SSDs will make the impact even more minor than it is.

    39. Re:ZFS!! by Anonymous Coward · · Score: 0

      Yep, linux is going to leapfrog everything. Keep talkin' Louie, keep talkin'.

    40. Re:ZFS!! by Anonymous Coward · · Score: 0

      The fact that I can't use Sun's software how I want is a problem with GPL how?

      You seem to have a problem with English word order.

    41. Re:ZFS!! by Anonymous Coward · · Score: 0

      And this is the drawback to Open Source in general. You can do the same things by hacking everything together - and it works - but it's simply much easier to have somebody else do all of the heavy lifting and unifying for you. That's what proprietary companies do well. The drawback to proprietary companies is that they have to look out for their profit margins so they cannot commit everything they have to their product; open source developers generally can. There is room and need in the world for both.

    42. Re:ZFS!! by ChameleonDave · · Score: 1

      As shocking as it may seem to those who have drunk the marketing kool aid

      For the love of God, can we please stop using that metaphor? When you think of all that it implies, it's literally sickening...

      More to the point, it just doesn't make sense. People (well, Americans) use it to mean "have joined the cult", but the cultists didn't drink that stuff as part of an initiation ceremony, and it had no brainwashing drugs in it. It was something they finally took to kill themselves.

      When accusing someone of fanaticism, saying "you've drunk the Kool-Aid" makes as much sense as "you've shot yourself".

      Moreover, it was actually Flavor Aid.

      It rather reminds me of those people who talk about "steep learning curves".

    43. Re:ZFS!! by ChameleonDave · · Score: 1

      available != default

    44. Re:ZFS!! by RiotingPacifist · · Score: 1

      Shh! Its been months since the GPL2vGPL3 riots calmed down, i need my licensing flame war fix dammit!!!!

      --
      IranAir Flight 655 never forget!
    45. Re:ZFS!! by RiotingPacifist · · Score: 1

      Another feature would be automatically copying of frequently accessed files -- if a certain bunch of files on a website becomes popular, they would be transparently copied across the spindles to increase access time.

      Why even put this in the filesystem, this is nothing script cant do in a fs agnostic way. Personally id rather features where moved out of the filesystems not into them, (like BSDs FS agnostic journaling), sure setting up all the separate tools to get the same effect is abit of a pain but that's what distros are for.

      --
      IranAir Flight 655 never forget!
    46. Re:ZFS!! by ArbitraryConstant · · Score: 1

      Huh?

      The next gen filesystems discussed here (ZFS and BTRFS) are both open source (the latter is also released under the GPL for compatibility with Linux), and both are backed by big companies (Sun and Oracle, respectively). Linux would not be where it was today if it weren't for big companies committing big bucks to developing open source software.

      --
      I rarely criticize things I don't care about.
    47. Re:ZFS!! by Daniel+Phillips · · Score: 1

      I understand the preference for a layered approach, but I just don't think it's competitive here.

      But you did not say why, other than "designing a rich API is hard". It is also hard to get the last corruption bug out of a program that is more complex than necessary, as a combined LVM+filesystem surely must be. So given two hard tasks, only one of which yields a component that can be shared, I favor the hard API design task.

      --
      Have you got your LWN subscription yet?
    48. Re:ZFS!! by jimicus · · Score: 1

      There's no reason (IMHO) not to expose the LVM API to the filesystem layer of course, allowing the filesystem to make these determinations intelligently as ZFS dos.

      Except that now a change to the LVM API requires both the maintainers of the LVM tools and the maintainers of the filesystem tools to update their code. Sooner or later, you can't change your API much at all because any change would break too much existing work.

    49. Re:ZFS!! by ArbitraryConstant · · Score: 1

      > I've repeatedly proposed something, only to find that ZFS already implements
      > it: Define one layer which is solely responsible for storing your bare
      > primitives, like a sequence of data. It is the FS-level equivalent of
      > malloc/free.

      That sounds like the extent allocation mechanism in BTRFS as well.

      > Then, implement everything else on top of that layer. Databases could sit
      > directly on the layer -- no reason they need to pretend to create files.
      > Filesystems would sit on that layer, implementing structures like directories
      > and POSIX file permissions.

      I am unconvinced of the utility of this idea: Partly because I don't think the performance impact of going through the POSIX API is that bad when you're going to have to hit the extent allocation either way, partly because I think it's dumb to create another persistent storage abstraction with another set of permissions when we've already got two in widespread use (POSIX, SQL).

      If you want the FS-level equivalent of malloc/free, make a directory and start putting files in it. I'm not sure what advantages your idea provides over that method that would be worth the complexity of another API.

      --
      I rarely criticize things I don't care about.
    50. Re:ZFS!! by Anonymous Coward · · Score: 0

      For example: I know people with capped Internet. Not Comcast-capped, 250-megs-per-day capped. I am sure they would love if YouTube videos were cached for them -- every megabyte helps. It's not like they were doing anything with the other 50 or 100 gigs.

      set them up with a squid proxy.....?

    51. Re:ZFS!! by koh · · Score: 1

      The children didn't get to choose. That may be what the GP finds sickening. As do I.

      --
      Karma cannot be described by words alone.
    52. Re:ZFS!! by ArbitraryConstant · · Score: 1

      > But you did not say why, other than "designing a rich API is hard". It is also
      > hard to get the last corruption bug out of a program that is more complex than
      > necessary, as a combined LVM+filesystem surely must be. So given two hard
      > tasks, only one of which yields a component that can be shared, I favor the
      > hard API design task.

      It's not just designing the rich API, it would also require porting everything to it and dealing with all the corruption bugs that would no doubt result from such an effort -- *nothing* is in a state where it could use the proposed volume manager efficiently. If you really want to reuse BTRFS as a volume manager for other filesystems, make yourself a filesystem image file on top of BTRFS.

      --
      I rarely criticize things I don't care about.
    53. Re:ZFS!! by CaymanIslandCarpedie · · Score: 1

      Speaking of MS, I think it would be a very shrewd move for MS to move to ZFS. ZFS, is obviously light-years ahead of any of thier current file systems and if they moved to ZFS it would be a big step towards a new "default" file system amoung computers. Actually all computers except Linux (which is why I think it would be shrewd). If they see Linux as a threat, what better way to jab Linux with a sharp stick than to not only make a massive improvement to your file systems, but also the move would be a big step towards a "defualt" file system that every major OS can support except apparently Linux.

      I'm obviously a bit crazy to even think there is a chance of this :-) However, with the complete lack of details about the new Windows 2008 Storage Server I was previously wondering if something like this was taking place. There wouldn't be a better place to begin use of ZFS than the storage server products.

      --
      "reality has a well-known liberal bias" - Steven Colbert
    54. Re:ZFS!! by Daniel+Phillips · · Score: 1

      It's not just designing the rich API, it would also require porting everything to it and dealing with all the corruption bugs that would no doubt result from such an effort -- *nothing* is in a state where it could use the proposed volume manager efficiently.

      You mean, use the new functionality of the volume manager efficiently. Because it will of course support the standard block device API, so anything that supports a block device will be able to use it. But only a filesystem aware of the new API would be able to do things like define variable RAID geometry, as ZFS does, or set a region of the block device a "free space" or "all zeroers". We extend in-kernel APIs like that all the time.

      If you really want to reuse BTRFS as a volume manager for other filesystems, make yourself a filesystem image file on top of BTRFS.

      You'd joking, I hope :-)

      --
      Have you got your LWN subscription yet?
    55. Re:ZFS!! by BrentH · · Score: 1

      Why NOT put anything fs related in the fs? Why should I worry or care about it, when a modern filesystem could do all the work for me. It's not as if I can't switch it off if I don't want it. Why would you want to move precarious management such as this away from the filesystem into whatever OS you happen to be running? What if you're OS gets borked, it would be pretty useful to be able to just swap the phyiscal drives around and have all the settings/scripts/etc baked into the filesystem so that you never need to worry again about setting stuff up again (at all).

    56. Re:ZFS!! by BrentH · · Score: 1

      It's default in Ubuntu, and all the official derivatives, so that's about as default as it needs to be. Fedora has it in it's repos (so that an easy install) and for OSX installing is a breeze too (and performance on any platform is remarkebly good, I use NTFS as a universal fs and I've never ever had any problems with either corruption, data loss or performance between my XP/OSX and Ubuntu systems).

    57. Re:ZFS!! by Jesus_666 · · Score: 1

      You're right, of course, but it still seems incredibly stupid that we're using a DOS filesystem because nobody had the presence of mind to distribute something useful with the first USB mass storage drivers.

      Yup. Goes to show how lack of standardization and the NIH syndrome can hold back things.

      --
      USE HOT GRITS WITH STATUE OF NATALIE PORTMAN (NAKED AND PETRIFIED)
    58. Re:ZFS!! by Bert64 · · Score: 1

      There are already common filesystems, to an extent...
      Virtually all of the OSS platforms support ext2/3, ufs, etc...
      The problem is that proprietary platforms tend to ignore any filesystem other than their own. Even OSX 10.5 doesn't seem to support UFS out of the box anymore.
      FAT32 is about the only common FS, and it's garbage... And MS have intentionally crippled FAT32 support to force people to use NTFS.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    59. Re:ZFS!! by Bert64 · · Score: 1

      UFS would make a good portable filesystem, in that every OS except windows supports it out of the box...

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    60. Re:ZFS!! by Anonymous Coward · · Score: 0

      Sun uses a GPLed ZFS in Grub for read-only. Sun uses ZFS on Fuse in Lustre (Linux) for read-write. Then there is an open source reference work also thoroughly documented. Seems there is quite some reference to get started.

      And, ZFS on Fuse 0.5 works stable for me (FWIW).

    61. Re:ZFS!! by Dogtanian · · Score: 1

      Linux could implement them - except the GPL prevents it. [..] Linux (thanks to the GPL) is the one saying 'I'm not going to play unless we can use my ball'

      You imply that Linux is to blame for insisting on the GPL. While on a nitpicking technical level this may be correct, it's misleading and inasmuch as we can anthropomorphise an OS, you're putting words in its mouth.

      Linux is fundamentally licensed around the GPL. Even if Linus and all the major contributors were to suddenly change their minds, they'd have to persuade all those who contributed- either directly or indirectly- to agree to a new ZFS-compatible license. Even if they were all cooperative, this would be a major undertaking, but it's going to be exponentially more of a PITA if even a small fraction disagreed and they had to work around that.

      Basically, whether or not you think it's a good thing, Linux is stuck with the GPL, and it's misleading to portray this as ideological stroppiness.

      I'd love to see someone port ZFS to Linux and distribute it as a set of patches for people to download and apply to their own kernel [..] Maybe it's time to put functionality before ideology?

      See above. Of course, it's probably doable on a technical level, but it would still break the licensing (unless there was a clever workaround which I assume that there isn't).

      There are doubtless plenty of patches out there that break the GPL (IIRC some of the kernel code contains macros to warn the user about tainting in this manner). No-one's going to sue you for installing them on your home copy of Linux. However, this doesn't change the fact that these break the GPL and couldn't be included with any notable distros for that reason alone.

      Linux's use of the GPL may have started as ideology- though it's open to question whether it would have taken off in the same way if it *hadn't* used the GPL, and regardless, it's easier with hindsight to criticise a choice Linus made over 15 years ago. Fact is that *now* the GPL licensing is a legal issue, and not simply childish ideology as you imply.

      --
      "Slashdot - News and Chat Sites Deviant". (Click "homepage" link above for details).
    62. Re:ZFS!! by skulgnome · · Score: 1

      What, all 4 of you?

      Come out of it man. You're just wanking over ZFS because it's a big black monolith from a supposedly successful, inscrutable (i.e. unhelpful) company. You have no idea how it works, and it doesn't have a track record of stability and reliability that was in any way comparable to JFS, XFS, Reiser3 or even ext2.

      Besides, this stuff about "unified file systems" is just a huge crock. There's no need to have an One True Filesystem: going with the one that is good for the task at hand (such as ext2 for database tablespaces, XFS for "lots of large files" and reiserfs for your newsspool or squid cache) is proven to work already. Problem solved, and not in a filesystem jealously guarded by a single company.

    63. Re:ZFS!! by Anonymous Coward · · Score: 0

      Hate to say it, but while all those fancy things are useful, they're still waaaay overkill for me. All I want is a file system with decent all-round performance and rock-solid reliability. That's it. The problem with ZFS, in spite of how powerful it is, is that it's complex and difficult to grasp and possibly even more difficult to administer. I also hear it has some hefty hardware requirements.

      It has no place on a desktop system IMO and still prefer JFS for such things.

    64. Re:ZFS!! by TheRaven64 · · Score: 1

      You're just wanking over ZFS because it's a big black monolith from a supposedly successful, inscrutable (i.e. unhelpful) company. You have no idea how it works

      I think you are projecting a bit here. If you'd like to understand ZFS better, I suggest you read the article I wrote on the subject. It's slightly out of date now - a few things have changed in recent releases of ZFS - but the overall architecture is the same. Then come back and we can have a reasonable discussion.

      --
      I am TheRaven on Soylent News
    65. Re:ZFS!! by Anonymous Coward · · Score: 0

      Another feature would be automatically copying of frequently accessed files -- if a certain bunch of files on a website becomes popular, they would be transparently copied across the spindles to increase access time.

      This is got to be the STUPIDEST thing I have ever heard. Perhaps you haven't heard of this thing called RAM?? Well, in case you haven't, it's cheap enough to easily put 16-64GB in a webserver, and if you run a decent OS on it, such as Linux, aside from the 200mb or so used for the OS, the rest gets used to cache files on the disk. This way your 20ms access times for the files on the disk suddenly become 0.01ms or less.

      Lets assume you have a 20ms access filesystem (20ms is fairly average for a high-end raid array), and you copy the files 4 times, and everything is magically perfect and you get 1/5th the access time, or 4ms... This is still thousands of times slower than RAM, with the downside of also using 5 times the space, and requiring horribly slow disks to copy data multiple times. Again, a completely stupid idea.

    66. Re:ZFS!! by Da+Masta · · Score: 0, Flamebait

      Get a fact.

      the Jonestown fucktards "chose" to drink the poison surrounded by guards with machine guns who conveniently helped the ones who "just couldn't make up their mind" "choose" by holding them down and pouring it down their throats. It's good you know you have this view of choice, as I plan to have your little daughter "choose" to give up her virginity and life, not necessarily in that order, at the tip of my knife.

      fucking retarded loser.

      You little passive aggressive bitch.

      If it's me you have a problem with why take it out on my daughter?

      Cause you know I'll turn you around, cut your little 2 inch dick off and show you how to lose your virginity to a real man (exactly in that order).

    67. Re:ZFS!! by Da+Masta · · Score: 1

      Listen, I feel for the children, I really, truly, sincerely do -- and not just them, any child suffering unjustly, anywhere. I'm SORRY children died at Jonestown.

      But the fact of the matter is their parents sealed their fate for them. You cannot do anything for a child born to dumb parents.

      All the more reason to keep up the fight against cults. For the love of God, think of the children!

    68. Re:ZFS!! by Anonymous Coward · · Score: 0

      yes, problem is Sun's stupid licensing once again preventing them from gaining wide adoption or turning a profit with software (see also Java). Sun is losing money, too little too late in the direction of open source. bye bye Sun.

      Aww.. did the big bad Sun piss off your poor widdle GPL sensibilities?

      Got news for you asshole, you take your Ruby skills and I'll take my J2EE and .Net skills and we'll see who earns a better living, you inferior piece of shit.

    69. Re:ZFS!! by SanityInAnarchy · · Score: 1

      A squid proxy would be great, except:

        - It only covers HTTP.
        - It requires considerable configuration.
        - It requires either a separate server, or some configured amount of disk space

      My approach has the advantage of:

        - Works for anything needing disk caching.
        - Shouldn't require too much tweaking.
        - Uses spare disk space on your own machine.

      I've also frequently found proxies to break things, so much so that when I've used them, I've had a Firefox extension installed to give me a one-button toggle for whether I was using a proxy or not.

      As for a real, practical solution for these people, the same problems apply -- if they have a spare computer around, it may help, and I'll suggest it, but I suspect it wouldn't be worth the trouble. It also won't work transparently -- their router is provided by their ISP.

      --
      Don't thank God, thank a doctor!
    70. Re:ZFS!! by paimin · · Score: 1

      Just to add to the fire, MacFuse and ext2/3 can't mount read/write, at least not on 10.4 or 10.5. Ntfs-3g seems to work okay. And there's no autorun in OS X.

      Cross-platform filesysteming is not in good shape.

      --
      Facebook is the new AOL
    71. Re:ZFS!! by Anonymous Coward · · Score: 0

      So, it's fine for the state to execute criminals, but it's not okay for me to execute them? So, it's fine for your girlfriend to give you a blowjob, but it's not okay for your best friend to give you a blowjob? So, it's fine for you to ask pointless questions, but it's not okay for me to do the same thing?

      Next time you have something to say, just say it. Asking a sarcastic question is not a useful form of communication.

    72. Re:ZFS!! by RiotingPacifist · · Score: 1

      Why NOT put anything fs related in the fs?

      why make one behemoth of buggy code, when you can make a chain of several small clean layers to do the same thing?

      Why should I worry or care about it, when a modern filesystem could do all the work for me.

      The file system ISN'T doing any of these things for you, ZFS doesn't have some amazing new layout on the disk, its just packed a whole load of features into the disk access code.
      A lot of the "fs related" features arn't actually related to the layout of the files on the disk, so i should be able to choose the layout while retaining the features, stuff like weather i do/don't want tail packing, hosing files or storing them insecurely on a crash, etc, should not affect weather i want journaling, snapshots, the system to utilize several drives.
      Something fairly similar to ZFS has been around as LVM for years and doesn't dictate layout on disk.

      Why would you want to move precarious management such as this away from the filesystem into whatever OS you happen to be running?

      WTF? erm the filesystem access is part of the OS you happen to be running, so unless you implement fs drivers in hardware i dont see your point.

      What if you're OS gets borked, it would be pretty useful to be able to just swap the phyiscal drives around and have all the settings/scripts/etc baked into the filesystem so that you never need to worry again about setting stuff up again (at all).

      AGAIN WTF!!!! i cant even figure out what your trying to say, but if your OS breaks under either system you just need to run any os that can access you drive.

      AFAICT the start of your post is a justification for expanding your fs until it can read your email and you finish with stuff that is completely clueless, however i don't pretend to be an expert on filesystems so apologies if i have been unduly harsh

      --
      IranAir Flight 655 never forget!
    73. Re:ZFS!! by rubycodez · · Score: 1

      hah, was manager of j2ee group until four years ago, I make more money now.

      I use plenty of other licenses like BSD, just saying Sun made yet another bad choice, been on a non-roll since they started just riding the name in the late 90s, trying to come back these past few years but too little too late outside of hardware.

    74. Re:ZFS!! by Anonymous Coward · · Score: 0

      In the end everybody wants basically the same thing:

      Strange, i don't want any of this. Sounds cool tho.

    75. Re:ZFS!! by Omnifarious · · Score: 1

      Yes, the problem is people who feel that I should let people steal my work and publish it for profit as their own proprietary work. I can do without those kinds of people in the world of software, and I wish they would just go away.

    76. Re:ZFS!! by Rich0 · · Score: 1

      Actually, if you look at the btrfs planned feature list I don't see much lacking that ZFS has to offer (besides being available today on select operating systems). I'm not going to switch to solaris just for ZFS (although ZFS via fuse might be an option). I don't think anybody wants to reinvent the wheel or anything, but the current ZFS licensing restrictions and patent encumberance does limit its usefulness to a GPL software project.

      One thing that ZFS is currently lacking (and which isn't mentioned for btrfs) is raid reshaping. Sure, you can add a new RAID-Z to a zpool or remove a raid-z from a zpool. However, you can't add one drive to a raidZ, or remove one drive from a raidz. Linux software raid supports both offline and (at more risk) online reshaping of an array. This is very useful for home setups, where a user might want to have the advantages of RAID without having to add drives in at least pairs (and adding them only in pairs wastes 50% of your space).

      A practical illustration. I have 3x250GB drives in a RAID-5 (500GB usable space). I want to add 250GB more space. With linux I can just buy one more 250GB drive and add it to the existing array, making a 4x250GB RAID-5 with 750GB of usable space. With ZFS I'd have two options. I could buy 2x250GB drives and create a RAID and add it to the zpool (gaining 250GB of space at the cost of an extra dive). The other option is to find someplace to dump my 500GB of data and then recreate the entire raid from scratch (which is only an option if you have access to 500GB of unused storage).

      Nothing about the design of ZFS really prevents this - it is just a feature that hasn't been implemented. It would be nice to see the btrfs folks implement this (or the ZFS folks assuming some day I can use it).

    77. Re:ZFS!! by Rich0 · · Score: 1

      Oh well, go figure. On the btrfs wiki it looks like you can already reshape a btrfs. So, in that respect it is ahead of ZFS. Granted, I wouldn't trust it for production use yet.

    78. Re:ZFS!! by EpsCylonB · · Score: 1

      hmmm, why not have a small fat32 partition on the drive with the drivers necessary to install the relevant filesystem drivers for various OS's, you could have it autorun where the OS supports it.
       

    79. Re:ZFS!! by Anonymous Coward · · Score: 0

      Shouldn't require too much tweaking.

      LOL ya it only needs every application to support it....!

    80. Re:ZFS!! by Jesus_666 · · Score: 1

      I already said it: Most sane people are not going to install some random driver I give them and then reboot their system just so they can mount whatever filesystem I'm using. Keeping Windows fast and stable is enough work without adding random IFSes and all *nix users I know reboot about once a month tops so losing their open applications to install a kernel module is a major inconvenience to them.

      Would you install some random kernel-level software and reboot just because someone wants to plug their USB drive into your computer? I certainly wouldn't. And it doesn't matter that the guy who wrote the driver proclaims on his website that "during my private testing I have found it to be 100% reliable"; random third-party drivers are not something one usually associates with a stable system.

      It has to be official native support. Everything else will keep access to your data restricted to a subset of all machines.

      --
      USE HOT GRITS WITH STATUE OF NATALIE PORTMAN (NAKED AND PETRIFIED)
    81. Re:ZFS!! by Directrix1 · · Score: 1

      Well, that and you don't have the freedom to fork it. Essentially, leaving you to whatever their whims may be. F/OSS works because its far more of a survival of the fittest type situation. With F/OSS if the software no longer works for you, you are free to fork it.

      --
      Occam's razor is the blind faith in the natural selection of least resistance and in universal oversimplification. -- EF
    82. Re:ZFS!! by phoenix_rizzen · · Score: 1

      Generally I don't get all the fuss about ZFS... Okay, it's cool that we'll need more energy to reach it's limits than needed to boil this oceans...

      smb/nfs/iscsi support integrated, Volume AND partition manager.

      Yes, that's cool... But why does it need to be *in* the filesystem???

      Snapshots and pooled storage.

      LVM snapshots are okay for doing online backups, as you only have to stop access for a second or two (freeze filesystem, create snapshot, unfreeze filesystem, do backup using snapshot, destroy snapshot). But there's a whole lot of administrative overhead involved (you have to leave unallocated space in the VG for the snapshots, you have to figure out how much data will change during the backup in order to size the snapshot).

      And replacing drives in a VG is a headache, especially if you are near capacity in the VG (where do you move the data to, in order to replace the drive?).

      Then there's all the extra administrative pain of trying to plan out any kind of software RAID setup, and layering LVM on top, especially when it comes time to replace a failed drive.

      I used to think LVM was the neatest thing ever ... until I had to replace a drive. Suddenly, it wasn't all that great.

      I'm not expert but AFAIK we've got LVM for volume management, and we can run any filesystem ontop of LVM... I think the idea of having volume management separate from filesystem sounds like a good idea, as it would enable you to used different filesystems for different purposes...

      With ZFS, the volume management isn't "in" the filesystem. There's several layers to the ZFS system, just not the same layering that currently exists in the hardware/md/lvm/fs stack. The filesystem is just the top layer.

      For example, you can create zvols and use UFS instead of ZFS. You can even create zvols to use for swap space. You can probably put other FS on top of zvols, although I've never tried. You still get all the volume management features and pooled storage capabilities, everything you can with the zpool(8) command is still available.

    83. Re:ZFS!! by bill_mcgonigle · · Score: 1

      If you believe the GPL is a necessary angle on software licensing to preserve freedom, then yes.

      That's exactly right, the two licenses have different goals. BSD does a better job at protecting the programmer/user, the GPL does a better job at protecting the community.

      'Right tool for the job' and all that. Even as I muddle through re-learning solaris basics...

      --
      My God, it's Full of Source!
      OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
    84. Re:ZFS!! by bill_mcgonigle · · Score: 1

      CDDL is licensing some of the patents that cover the ZFS only to the users of the original implementation or its derivatives

      Holy cow, there's somebody else on Slashdot who gets this. I'd nearly given up! :)

      --
      My God, it's Full of Source!
      OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
    85. Re:ZFS!! by beelsebob · · Score: 1

      I can understand your cynicism, but in a lot of cases I think you're missing out on a lot of good things because of your refusal to trust people with your code. I work for a company which staunchly refuses to ever use GPL code, because it would require us to open our products. On the other hand, we regularly use BSD code, and we have in fact contributed a large number of major patches to said BSD projects. They would have got no patches from us had they been GPLed.

    86. Re:ZFS!! by MikeBabcock · · Score: 1

      That hasn't been an issue in Linux before (see serial code refactoring, SCSI rewrite, etc.)

      IMHO it would be worthwhile to have some of the filesystem and LVM maintainers discuss exposing each others parts (pun wafts overhead) and see what value could be obtained.

      Personally, more of the filesystem logic that's in things like Reiser4 and Ext4 should've been developed within LVM2, but I'm not the expert by any means.

      --
      - Michael T. Babcock (Yes, I blog)
    87. Re:ZFS!! by Directrix1 · · Score: 1

      You also don't get to use the GPL'd code because of that policy. The people who made the GPL'd code are not the only ones losing because of a bad company policy.

      --
      Occam's razor is the blind faith in the natural selection of least resistance and in universal oversimplification. -- EF
    88. Re:ZFS!! by isorox · · Score: 1

      This is got to be the STUPIDEST thing I have ever heard. Perhaps you haven't heard of this thing called RAM?? Well, in case you haven't, it's cheap enough to easily put 16-64GB in a webserver, and if you run a decent OS on it, such as Linux

      200GB of ram might be fine, but 2TB is a little on the pricey side.

      And every kernel caches files, not just linux.

    89. Re:ZFS!! by badkarmadayaccount · · Score: 1

      Better yet, throw in a per directory setting on filesystem behaviour, so it is effectively as if you have mounted a special partition for each dir, with it's own optimizations, only without the mother of all fstabs hanging around.

      --
      I know tobacco is bad for you, so I smoke weed with crack.
    90. Re:ZFS!! by SanityInAnarchy · · Score: 1

      LOL ya it only needs every application to support it....!

      Which has what to do with "tweaking", as in "editing config files when installing"?

      And no, it doesn't need every application to support it. The more applications which do so, the better, but it works just fine if only one application supports them, and all others continue to use the filesystem.

      --
      Don't thank God, thank a doctor!
    91. Re:ZFS!! by badkarmadayaccount · · Score: 1

      Uhhh, you can still compile ZFS as linux kernel module, only you can not distribute it compiled in. What I'm wondering is why the GRUB guys haven't added basic read support, and somebody sticking the ZFS driver in the initrd. Just my $0.02.

      --
      I know tobacco is bad for you, so I smoke weed with crack.
    92. Re:ZFS!! by badkarmadayaccount · · Score: 1

      So? uncripple it. The IFS framework is still there, and then just nLight it in. Not so hard. Besides, even now (probably), having the NT directory tree split up on multiple FAT volumes is still faster than NTFS, when your HD is mostly full (i.e. most of the time).

      --
      I know tobacco is bad for you, so I smoke weed with crack.
    93. Re:ZFS!! by Da+Masta · · Score: 1

      HAH! I'm not worried you little pussy. My daughter can take you out herself.

    94. Re:ZFS!! by Sentry21 · · Score: 1

      See above. Of course, it's probably doable on a technical level, but it would still break the licensing (unless there was a clever workaround which I assume that there isn't).

      There are doubtless plenty of patches out there that break the GPL (IIRC some of the kernel code contains macros to warn the user about tainting in this manner). No-one's going to sue you for installing them on your home copy of Linux. However, this doesn't change the fact that these break the GPL and couldn't be included with any notable distros for that reason alone.

      The key here is that the GPL prohibits distribution, not use - any individual user could download the kernel, download the patches, and combine them themselves. Package managers could also accomplish this (see Debian's workarounds for qmail, which downloaded, modified, and compiled the source on your machine, rather than distributing modified source as required in Debian).

      Linux's use of the GPL may have started as ideology- though it's open to question whether it would have taken off in the same way if it *hadn't* used the GPL, and regardless, it's easier with hindsight to criticise a choice Linus made over 15 years ago. Fact is that *now* the GPL licensing is a legal issue, and not simply childish ideology as you imply.

      Linus in all of his interviews and appearances has never brought ideology into it. His primary concern seems to be practicality. He licensed under the GPL because it made the most sense - it let people share, but not steal.

      The childish idology that I was referring to is the people who insist that licensing problems are on Sun's end - as the parent poster did - because they chose to write their own open-source license. Note that their license is still open-source, and they could have chosen from dozens of other open-source licenses which would have similarly been incompatible with the GPL.

      The Linux kernel cannot change its license (except upwards, to the GPLv3). and that's fine. No one says it has to. The issue I take is with people (like Stallman) who seem to insist that the only way to be Free is to be his kind of Free, under the rules that he's laid down for Freedom and how Freedom should work. Some people seem to buy into this, believing that being incompatible with the GPL means to be non-Free - an assertion which just doesn't stand up to scrutiny. This is the childish ideology to which I refer.

  7. WTF - where is FAT?!?! by Anonymous Coward · · Score: 0

    I didn't know there was something other than FAT - when did this happen??? Can I get modules for 0.001 beta kernel? ;-)

  8. I use ReiserFS..... by ZosX · · Score: 0, Redundant

    Its a real killer.

  9. Problems: IO priority, large #s of files. by bboxman · · Score: 4, Interesting

    Just my 2 bits. As a user of Linux in a software/algorithm context, my personal beefs with ext3 / the current kernel line are:

    1) IO priority isn't linked to to process priority, or at least, not in a decent manner. it is all too easy to lock up the system with one process that is IO heavy (or a multiple of these) -- hurting even high priority processes. As the IO call is handled by a system level (handling buffering, etc.) -- it garners a relatively high priority (possibly falling under the RT scheduler) and as a result IO heavy processes can choke other processes.

    2) ext3+nfs simply sucks with very large amount of files. I used to routinely have directories with 500,000 files (very easy to reach such amounts with a cartesian multiplication of options). The result is simply downright appalling performance.

    1. Re:Problems: IO priority, large #s of files. by tytso · · Score: 4, Interesting

      NFS semantics require that the data be stably written on disk before it can be client's RPC request can be acknowledged. This can cause some very nasty performance problems. One of the things that can help is to use a second hard drive to store an external journal. Since the journal is only written during normal operation (you need it when you recover after an system crash), and the writes are contiguous on disk, this eliminates nearly all of the seek delays associated with the journal. If you use data journalling, so that data blocks are written to the journal, the fact that no writes are required means that the data can be written onto stable storage very quickly, and thus will accelerate your NFS clients. If you want things to go _really_ fast, use a battery-backed NVRAM for your external journal device.

    2. Re:Problems: IO priority, large #s of files. by diegocgteleline.es · · Score: 2, Interesting

      The CFQ IO scheduler has been able to link IO priority with process priority for ages. But there's a performance issue in the ext3 journaling code that has been affecting many people for some time....

    3. Re:Problems: IO priority, large #s of files. by whoever57 · · Score: 1

      NFS semantics require that the data be stably written on disk before it can be client's RPC request can be acknowledged.

      Isn't that what the "async" option (to exportfs) is for? To allow the server to respond to the client before the write is complete?

      --
      The real "Libtards" are the Libertarians!
    4. Re:Problems: IO priority, large #s of files. by Anonymous Coward · · Score: 2, Interesting

      Sure. If you're a fan of catastrophic data loss, turn on async.

      The best NFS (v3) client mount options for a linux server with linux clients vary heavily with what you're actually doing and what you have, but the following is a good start:

      sync,hard,intr,nfsvers=3,rsize=32768,wsize=32768,
      acregmin=0,acregmax=0, acdirmin=0,acdirmax=10

      sync: don't use async! Ever!
      hard: better than soft!
      intr: allow interruptions despite hard! handy for failure situations!
      nfsvers=3: force nfsv3. You DO NOT want to use nfsv2!
      rsize,wsize: increase block size to something decent.
      acregmin/max: Don't cache regular files. Just don't
      acdirmin/max: Cache directories for a _small_ time. Necessary for adequate performance, really, but the smaller while keeping things bearable the better.

      Yes, this will make server load pretty high. Get a beefy server. They're cheap nowadays.

    5. Re:Problems: IO priority, large #s of files. by pedantic+bore · · Score: 2, Interesting

      NFS semantics require that the data be stably written on disk before it can be client's RPC request can be acknowledged.

      This hasn't been true since NFSv2. We're at NFSv4 now...

      --
      Am I part of the core demographic for Swedish Fish?
    6. Re:Problems: IO priority, large #s of files. by jimicus · · Score: 1

      NFS semantics require that the data be stably written on disk before it can be client's RPC request can be acknowledged. This can cause some very nasty performance problems. One of the things that can help is to use a second hard drive to store an external journal. Since the journal is only written during normal operation (you need it when you recover after an system crash), and the writes are contiguous on disk, this eliminates nearly all of the seek delays associated with the journal. If you use data journalling, so that data blocks are written to the journal, the fact that no writes are required means that the data can be written onto stable storage very quickly, and thus will accelerate your NFS clients. If you want things to go _really_ fast, use a battery-backed NVRAM for your external journal device.

      Interesting. I wonder if something similar would help with filesystems which are used as the backend to a database - no ACID-compliant database will return until such time as the data is stable on disk.

  10. But what about Windows? by kasperd · · Score: 1

    It is rarely an issue to me, but once in a while it is convenient to be able to plug an USB disk on a machine with Windows or Mac OS X. What portable file systems are there that will cover those cases? Last I did some looks around a few years back I ended up concluding that the best option for a file system supported on both Linux and Windows was ext2 (with third party drivers for Windows). The only other file system supported on both was FAT, which have several drawbacks.

    Moving forward, what file system will be the most portable? Are we going to be stuck with ext2 and FAT for file systems that we need to access across multiple operating systems, or is there going to be some journaled file system with support for large disks and basic unix semantics?

    --

    Do you care about the security of your wireless mouse?
    1. Re:But what about Windows? by Chabil+Ha' · · Score: 1

      Or how 'bout this, why isn't the underlying FS abstracted away from the OS? It seems that if you wanted to get out of the gooey compatibility mess, some sort of common interface would exist independent of OS calls to the hardware.

      --
      We're all hypocrites. We all have hidden parts, it's the contrast between them that make us more a hypocrite than others
    2. Re:But what about Windows? by Anonymous Coward · · Score: 0

      or is there going to be some journaled file system with support for large disks and basic unix semantics?

      Sounds like NTFS...

    3. Re:But what about Windows? by jonbryce · · Score: 1

      HFS+ seems to be the best option. You can get MacDrive for Windows (not free) which provides reasonably decent performance.

      Alternatively, there's NTFS. Only problem is that the NTFS3G drivers for Mac have extremely lousy performance. If you use the "stable" drivers, the time to fill a 250GB USB drive is measured in weeks.

    4. Re:But what about Windows? by pseudonomous · · Score: 1

      It would be nice maybe if freeBSD's UFS2 could be adopted, thanks to the BSD licensing anyone could implement it in their kernel so, in principle, it's a perfect fit. There's two sticking points though:

      1) Getting people to adopt it and

      2) Getting people to adhere to a standard implementation so that that it IS actually a portable filesystem. (look at what happened w/ UFS1)

    5. Re:But what about Windows? by Knuckles · · Score: 1

      ntfs comes to mind. It seems well-enough supported in linux distros for data disks you move around.

      --
      "When I first heard Daydream Nation it quite frankly scared the living shit out of me." -- Matthew Stearns
    6. Re:But what about Windows? by szaka · · Score: 1

      The reason for the slow NTFS-3G performance on OSX is the use of the incorrect block device. It could be easily fixed but there is no interest for it.

    7. Re:But what about Windows? by Ant+P. · · Score: 2, Informative

      Unless you're dealing with backward firmware/BIOS code that only understands FAT, you should be using UDF. Vista supports it, OS X supports it, Linux supports it, and everything back to win98 has readonly support - but you can get third-party drivers just like for ext2.

    8. Re:But what about Windows? by kasperd · · Score: 1

      you should be using UDF. Vista supports it, OS X supports it, Linux supports it

      Maybe a few years down the line that will be an option. Currently the windows systems I would be most interested in exchanging data with are running windows xp. You won't find me pushing for adoptation of new microsoft systems. Maybe I should have made it clear in my previous comment that I was mostly talking about windows xp, and that I only had minor interest in windows 98 and windows vista. But if Linux and Mac OS X both support it out of the box, that would actually be sufficient argument for me to at least try it.

      --

      Do you care about the security of your wireless mouse?
    9. Re:But what about Windows? by Kent+Recal · · Score: 1

      FAT is still the only option last time I checked.
      It's the only one that is supported out-of-the-box on every machine (and appliance) that you'll come across.

    10. Re:But what about Windows? by kasperd · · Score: 1

      FAT is still the only option last time I checked.

      Last time I checked FAT had terrible performance if you have a lot of files in a directory, performance was even worse if you tried to do random access to large files, and files larger than 4GB were not supported at all, neither were basic unix semantics like file permissions. It also doesn't have journaling. Given all those lacks of features it is amazing how much code it is. There are much simpler file systems that have most of those features and perform better than FAT. I'd rather restrict the number of operating systems my disks can be used with than live with such a bad file system. After all my primary operating system seems to support more than half the file systems that exists today.

      --

      Do you care about the security of your wireless mouse?
    11. Re:But what about Windows? by BrentH · · Score: 2, Informative

      You and the parent need to get the ublio version of ntfs-3g for OSX: http://macntfs-3g.blogspot.com/ Performance is excellent.

    12. Re:But what about Windows? by Bert64 · · Score: 1

      A proprietary filesystem you have to reverse engineer and which is subject to undocumented changes isn't really the best choice...

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    13. Re:But what about Windows? by Bert64 · · Score: 1

      The performance is very poor, and all it takes is for a new version of windows to use a slightly different format and you're screwed until the changes can be reverse engineered again.
      The only reason NTFS is even considered is because MS won't bother implementing any filesystems other than their own.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    14. Re:But what about Windows? by Knuckles · · Score: 1

      Yeah well I did not advocate ntfs for a general-purpose fs. We were talking about disks to move stuff around if the disks are too large to use fat. I appreciate your points, but I fail to see what they have to do with this scenario.

      --
      "When I first heard Daydream Nation it quite frankly scared the living shit out of me." -- Matthew Stearns
    15. Re:But what about Windows? by Kent+Recal · · Score: 1

      We were talking about USB-sticks, right?

      All these things mean nothing when you're over at a someone elses computer and just want to copy a friggin' file from or to the stick.
      FAT will work every time. Any other filesystem will simply not work on some of the computers that you come across without installing extra drivers.

    16. Re:But what about Windows? by kasperd · · Score: 1

      We were talking about USB-sticks, right?

      I'm talking about USB disks.

      All these things mean nothing when you're over at a someone elses computer and just want to copy a friggin' file from or to the stick.

      Some of them don't matter, some of them do matter. However when I am using the disks on my own system, all of those things do matter. And you can't suddenly change the file system at that point.

      FAT will work every time.

      Unless the files are larger than 4GB. And if you don't copy the files from the USB disk, but instead use them directly from the disk, then the performance will be what you can get from FAT.

      Any other filesystem will simply not work on some of the computers that you come across without installing extra drivers.

      For that reason I keep a small FAT partition on the beginning of each USB disk, where I can put the drivers. But maybe I should just start bringing a small Linux machine along with my USB disks, then I know it will work, and from a security perspective it is also better. Will of course only give me 100Mbit/s, which is about half the speed of a USB disk, but I suppose I can live with that.

      --

      Do you care about the security of your wireless mouse?
    17. Re:But what about Windows? by Hucko · · Score: 1

      Agreed... but still Microsoft won't play fairly... Oh. heh.

      --
      Semi-automatic amateur armchair Australian philosopher; conjecture ready at any moment...
  11. Q: Why is starting in the Subject: line annoying? by DNS-and-BIND · · Score: 0, Offtopic

    A: Because it breaks the natural flow of a message.

    --
    Shutting down free speech with violence isn't fighting fascism. It IS fascism!
  12. still doing fs on top of RAID :-( by r00t · · Score: 5, Interesting

    We're checksumming free disk space. That's dumb.
    It makes RAID rebuilds needlessly slow.

    We're unable to adjust redundancy according to
    the value that we place on our data. Everything
    from the root directory to the access time stamps
    gets the same level of redundancy.

    The on-disk structure of RAID (the lack of it!)
    prevents reasonable recovery. We can handle a
    disk that disappears, but not one that gets
    some blocks corrupted. We can't even detect it
    in normal use; that requires reading all disks.
    We have extremely limited transactional ability.
    All we get for transactions is a write barrier.
    There is no way to map from RAID troubles (not
    that we'd detect them) to higher-level structures.

    With an integrated system, we could do so much
    better. Sadly, it's blocked by an odd sort of
    kernel politics. Radical change is hard. Giving
    of the simplicity of a layered approach is hard,
    even when obviously inferior. There is this idea
    that every new kernel component has to fit into
    the existing mold, even if the mold is defective.

    1. Re:still doing fs on top of RAID :-( by tytso · · Score: 2, Insightful

      Linux developers are aware of this issue; this is one of the things which is addressed by btrfs.

    2. Re:still doing fs on top of RAID :-( by Blackknight · · Score: 4, Insightful

      What is this we? ZFS is the fix for all of the issues you mentioned, it does checksums on every block it writes and the RAID 5 write hole is history. You can also set how many copies per file you want to keep.

    3. Re:still doing fs on top of RAID :-( by Piranhaa · · Score: 4, Interesting

      That's the goal of ZFS. Each block is checked with a 256-bit CRC checksum on every access. It incorporates a volume and partition manager in '1 tool', and knows where data is written to. On rebuilds it only repairs data that is actually there, which saves significant time. You should also setup weekly or bi-weekly scrubs (once a month for enterprise grade drives), which reads EVERY block written to and verifies it. This ensures that each block is still good, none is suffering from flipped bits, and that your disk isn't slowly failing on you.

    4. Re:still doing fs on top of RAID :-( by davolfman · · Score: 1

      Sure you can handle a few corrupt blocks on disk. RAID is built on the assumption that any hard disk has checksumming built right in. Without that RAID 5 would be impossible.

    5. Re:still doing fs on top of RAID :-( by Wesley+Felter · · Score: 2

      RAID is built on the assumption that any hard disk has checksumming built right in.

      Too bad that assumption is wrong. Despite the ECC in disks, corruption still sneaks in.

      http://www.usenix.org/event/fast08/tech/full_papers/bairavasundaram/bairavasundaram_html/index.html

      To fix this you can use either ZFS-style integrated filesystem and RAID or 3Par/Xiotech/XIV-style chunk RAID with checksums and unmap bad parts of the disk.

    6. Re:still doing fs on top of RAID :-( by Anonymous Coward · · Score: 0

      Sun's SAM/QFS is an HFS that allows adjusting redundancy and backing storage based on criteria you establish. It was open sourced under Sun's license.

      http://opensolaris.org/os/project/samqfs/ has information about the project

    7. Re:still doing fs on top of RAID :-( by dbIII · · Score: 1

      We're unable to adjust redundancy according to the value that we place on our data.

      /usr /home /opt or home grown names like /data01 /data02 .... mount as required on whatever is appropriate.

      If you have more stuff than can fit on one volume you just mount the stuff you want treated in a paticular way on a paticular volume. As for access time, there is the atime option for that as with many other bits. By default things may not be well organised but it doesn't have to stay that way. As for the cry of "kernel politics", WTF? Could you give an example of why that is a problem.

    8. Re:still doing fs on top of RAID :-( by Daniel+Phillips · · Score: 1

      Your post is bang on. Kernel politics have gotten firmly in the way of making significant advances in integration between RAID/LVM and filesystems, creating a perfect setting for the hype from Sun about how we absolutely have to suck the whole LVM into the filesystem a la ZFS, which a lot of otherwise intelligent people have bought into. When you actually strip away the rhetorical fluff, what you find is that there are certain advantages to storing RAID metadata on the filesystem, among them to avoid wasting time syncing up data that isn't even in use. Thus nugget of truth was exaggerated to the hyperbole that the entire LVM has to be implemented inside the filesystem. This is nonsense as we shall demonstrate in due course.

      Meanwhile, Sun deserves a chance to capitalize on the hype, don't you think? They've had little but bad luck lately. And it should be a good lesson for we penguins, that if politics obstructs progress enough, somebody is going to catch up and pass even the mighty Linux machine. Yes, it's true Virginia. Sun has gotten out ahead with ZFS and we are playing catchup. We have only ourselves to blame, complacency and all that.

      And it doesn't really matter. Personally I don't care if Sun takes a healthy bite out of Linux share. It's all open source, and progress marches on. Sun merely lit the proverbial fire under Penguin bottoms and usually that has good results.

      --
      Have you got your LWN subscription yet?
    9. Re:still doing fs on top of RAID :-( by isorox · · Score: 1

      You should also setup weekly or bi-weekly scrubs (once a month for enterprise grade drives)

      ZFS scrubs are run as a background process, behind everything else. Why not just continuously scrub, and have a "time since last file scrubbed" report?

    10. Re:still doing fs on top of RAID :-( by Piranhaa · · Score: 1

      Because if it's running 24/7, you'll be degrading the lives of your drives considerably, slowing performance when you use the drives, and wasting buckloads power. If your data is THAT important to you, you should be making solid backups of it anyways...

  13. That may be true... by Chabil+Ha' · · Score: 1

    but for grabbing attention, it seems to have worked. It happens all the time--ever watch the evening news?

    --
    We're all hypocrites. We all have hidden parts, it's the contrast between them that make us more a hypocrite than others
  14. Hammer filesystem, up and coming..... by 3seas · · Score: 1

    worth a mention for large media space.

    http://www.dragonflybsd.org/hammer/index.shtml

    1. Re:Hammer filesystem, up and coming..... by Anonymous Coward · · Score: 0

      Too bad you can't "touch" in it.

  15. But... by El_Muerte_TDS · · Score: 2, Funny

    is it ready for the desktop?

  16. Re:Choose ONE! by bytesex · · Score: 1

    Filesystems are the new 'definitive, authoritive, all-encompassing audio userland' on Linux.

    --
    Religion is what happens when nature strikes and groupthink goes wrong.
  17. I propose a new file system.. by Minigun_Fiend · · Score: 5, Funny

    ..called TLDRFS It simply ignores any files larger than 64KB.

    1. Re:I propose a new file system.. by Atriqus · · Score: 2, Funny

      No, the cutoff should be 640K since 64K might not be enough for everybody.

      --
      Hey, look! It's Bono's brother.
  18. Alllrig.... Oh. by Gazzonyx · · Score: 5, Funny

    Never have I been so happy and so angry in such a short period of time. I salute you, yet still shake my fist angrily in your general direction.

    --

    If I mod you up, it doesn't necessarily mean I agree with what you've said, sorry.

  19. Re:Choose ONE! by Anonymous Coward · · Score: 2, Interesting

    because "one size does not fit all." Some file systems handle better in say a database enviroment handling large number of small files while other handle better in something else. If you want a standard fs for general use, that's what ext2 is for as well as ext3(which is backwards compatable with ext2). Can you use another fs other then what most distro decided upon, sure, that's what freedom is about. New implementations are created because they are created with different goals in mind.

    Windows is not without it's own choices mind you either, fat(fat16), fat32, ntfs, WinFS(cancelled). As time pass, even microsoft attempts to create a new and improved fs (key-word: attempt). Sure they tend to force the latest fs on you but that's microsoft way VS linux way of choice.

  20. What a File system needs to provide: by Anonymous Coward · · Score: 0

    This seems such a popularity contest. I usually don't know why I'd want one FS over another.

    I propose we make a list of OS features that are desirable, and gravitate towards the one that can provide em all.

    1) Transparency. Should be easy to move data from disk/vol to disk/vol at/near rated speed of interface.

    2) On line snapshot via COW for online maint etc.

    3) Journaling to ensure compatibility with power-offs. (control over where logs go too!).

    4) Compatible with LVM structures.

    5) Compatible with RAID structures.

    6) variable block sizes.

    7) Fast search via name or metadata.

    8) Good with lots of little files

    9) Good with GIANT files too

    10) Mandatory Access Controls

    11) Read only as needed.

    12) Noatime as needed.

    13) On line defrag/reorg.

    Basically, I need to perform maint on File System, as well as needing to provide for operational adjustments for Speed or Security or End-User-Shutdowns.

    14) Rsync from a block level would be nice too!

    Just a few things. Am sure there are many more.

    Perhaps the various F/S out there might be listed by a plusses/minuses rating level for a set of features.

    I had used XFS a few years back and was amazed at how fault tolerant it is. (slow with lots of little files, but.... rocked otherwise.

    JWest

  21. XFS was (and is) pretty nice by Britz · · Score: 2, Interesting

    Maybe not for a desktop machine, but for servers I like to use XFS. That started way back then when XFS was the first (and then only AFAIR) fs that supported running on softraid. It was not that long ago and CPU cycles were already so cheap on x86 that softaid was already a pretty nice solution for small servers.

    For small servers I have not changed that setup (XFS on softraid level one on two cheap drives) ever since.

    I guess for the big machines it might be very different. I am pretty happy with XFS as it is.

    1. Re:XFS was (and is) pretty nice by springbox · · Score: 1

      I found JFS to perform better than XFS, especially with I/O throughput.

    2. Re:XFS was (and is) pretty nice by cblack · · Score: 1

      Agreed. Some thoughts from the large-filesystem end: XFS has consistently supported larger "single filesystems" (4/8/16TB+) for the past few years. We run these on top of hardware raid and LVM. XFS makes it easy to have these large filesystems and extend them online.
      I have used zfs as well and love the way it combines the LVM and filesystem layers. I would love to have something like that in linux. Hopefully the btrfs people keep the lvm bits in mind as well.

  22. parodizing _what_, exactly? by Anonymous Coward · · Score: 1, Funny

    Could you tell us which song this post is a parody of? Thanks.

  23. What is more needed is a modern multi-platform FS by rduke15 · · Score: 1

    I don't really care about better filesystems. ext3, NTFS and Mac OS Extended seem to be extremely reliable and work perfectly well on their respective platform.

    The only real problem I have is there doesn't exist a modern journaling FS which would work just as well on all 3 platforms.

    I can use ext3, but cannot plug it into a Mac.

    I can use Mac's FS, but cannot plug it into Windows (unless I pay for a proprietary driver every time I use that disk on a different machine)

    I can use NTFS, but cannot write to it on a Mac.

    This is the real problem I have. I would like one of these 3 (preferably the open source ext3) to have perfect support on both of the other 2 OSes. And if there is a serious such project for ext3, I would be glad to contribute with a donation.

  24. Reiser4 by Enderandrew · · Score: 4, Interesting

    Hans was a jerk who has difficult to work with, and now he is a convicted murderer. That doesn't change the fact that Reiser4 as is may be the best desktop file system for Linux users, even with plenty of room for improvement.

    There are filesystems in development like Btrfs and Tux3 that look promising, but why should Reiser4 be abandoned? It is GPL. Anyone can pick it up and maintain it, or fork it.

    Does anyone know anything about the future of Reiser4?

    --
    http://blindscribblings.com - Tasty pop-culture in conceptual fashion.
    1. Re:Reiser4 by Anonymous Coward · · Score: 0

      I guess nobody wants to be murdered for taking over his pet project when he eventually comes out...

      Well, yeah. bad joke, but I guess it's on the list of concerns for those who have given the idea some serious thought.

    2. Re:Reiser4 by Ant+P. · · Score: 5, Interesting

      Reiser4 is still being maintained, by one ex-Namesys person IIRC.
      The main problem is the Linux kernel devs - they were too busy trying to find reasons to keep it out of the kernel (I can agree with their complaints about code formatting, but after that they descend deep into BS-land) to actually improve it. From the outside it sounds a lot like the story about the RSDL scheduler - completely snubbed because it stepped on the toes of one kernel dev and his pet project.

    3. Re:Reiser4 by mrchaotica · · Score: 1

      They need to give Hans an Internet connection in his cell. At least then he can still be of some use to society, and it's not as if his was a computer-related offense...

      --

      "[Regarding the 'cloud,'] ownership was what made America different than Russia." -- Woz

    4. Re:Reiser4 by StormReaver · · Score: 2, Informative

      "From the outside it sounds a lot like the story about the RSDL scheduler - completely snubbed because it stepped on the toes of one kernel dev and his pet project."

      ReiserFS v4 wasn't included in the mainline kernel because Hans was being an even greater prick than usual to the kernel maintainers who asked him to fix his bugs and adhere to kernel coding conventions.

      RSDL wasn't included in the mainline kernel because Linus considered Con to be unreliable, and wanted to have a scheduler with a developer he could count on to maintain the code and fix bugs.

    5. Re:Reiser4 by dbIII · · Score: 1

      To putt words in the mouth: the "it is perfect even though it is not finished and you will bow to my authority and change the kernel to make it fit" attitude when the reality was at the time a buggy and unrecoverable from corruption filesystem was what kept it out of the kernel. When you start off like that it's pretty hard to work together. Personally I don't think it's done yet since there is not much you can do to get things back with even minor filesystem corruption - so if I was responisible I would work on that first. With patches or FUSE it really doesn't need to be in the mainline kernel anyway, and if the patches are eventually considered good enough it most likely will be in the mainline kernel. It's all up to what a lot of people working on the kernel think about it - and I am not one of those people.

    6. Re:Reiser4 by Anonymous Coward · · Score: 0

      Part of the matter, honestly, is confidence in maintenance. The main designer is now sequestered behind bars and socially disdained for the rest of his life. One person is willing to keep up with the work. There is no confidence that the branch will be maintained. It doesn't matter how good the idea is, if no one is willing to maintain it, it is doomed.

    7. Re:Reiser4 by MikeBabcock · · Score: 1

      What you meant to say was "Hans had inter-personal social issues which evolved into violent inter-personal social issues."

      That said, I've often found anti-social people can make excellent programmers.

      Now go away! :-)

      --
      - Michael T. Babcock (Yes, I blog)
    8. Re:Reiser4 by Enderandrew · · Score: 1

      One of my laws is that a geeks social aptitude is most often inversely tied to their technical prowess.

      --
      http://blindscribblings.com - Tasty pop-culture in conceptual fashion.
    9. Re:Reiser4 by MikeBabcock · · Score: 1

      Up yours, try my software ;-)

      --
      - Michael T. Babcock (Yes, I blog)
    10. Re:Reiser4 by dubl-u · · Score: 1

      hey need to give Hans an Internet connection in his cell. At least then he can still be of some use to society, and it's not as if his was a computer-related offense..

      I'd be opposed to that. Partly because it was never clear to me that he was net productive given the amount of other people's time and goodwill he wasted. But mainly because prison is punishment, and for somebody who spends most of their time on line anyhow, I'd say given them an internet connection is too close to freeing them. I'd rather Hans focus on what he did, and how he became the kind of person who could do that.

    11. Re:Reiser4 by mrchaotica · · Score: 1

      Making Hans hate himself won't bring Nina back; at this point the only important consideration is minimizing the cost to society. If you want to punish him you might as well execute him. At least then you won't be wasting taxpayer money housing and feeding him for the rest of his life!

      --

      "[Regarding the 'cloud,'] ownership was what made America different than Russia." -- Woz

    12. Re:Reiser4 by Anonymous Coward · · Score: 0

      Reiserfs isnt all that great anyway, and one of the reasons outside of it being the murderfs (literally, I lost data with it, and then one day it dumped all file permissions, they wouldnt even set back...) is that it's taking too long to develop and it's becoming antiquated fast.

      It was dying before the murder thing.

    13. Re:Reiser4 by Daniel+Phillips · · Score: 1

      RSDL wasn't included in the mainline kernel because Linus considered Con to be unreliable, and wanted to have a scheduler with a developer he could count on to maintain the code and fix bugs.

      What a fine way to drive away a talented developer and long time contributer. Linus does not get it right all the time.

      --
      Have you got your LWN subscription yet?
    14. Re:Reiser4 by skulgnome · · Score: 1

      Yeah, what with all the tens of releases of RSDL that Con put out and everything, and the multi-year development.

      Then again, we are talking about the Linus who picked BitKeeper due to a friend of his whispering in his ear, nearly causing a fork of the Linux project. Even today, Linus doesn't see any fault in his reasoning: it was all Andrew Tridgell's fault that Larry McVoy got pissed off and withdrew (by his conscious action) the free BitKeeper license.

      When the hell is Alan Cox coming back to Linux development? Long ago he was the one person who could whack Linus over the head and get him to not stick with his original knee-jerk decision. I guess in that way, Linus has finally become RMS.

    15. Re:Reiser4 by MostAwesomeDude · · Score: 1

      Personally, Reiser4 can go far, far, away, and never come back. Every time I've badmouthed it, and somebody's replied, "Oh, I guarantee you it gets better," I think back to the four different times that I tried it, and the four different times I lost all my data.

      Of course, if I had just gone up into the hills, I probably would have found my data sitting in a shallow grave, but that didn't occur to me at the time...

      --
      ~ C.
    16. Re:Reiser4 by Enderandrew · · Score: 2, Interesting

      Honestly, I have never lost data with Reiser4 and I have a toddler who loves pushing power buttons. However every single time I have tried ext3 or ext4 I have lost data. And I've lost data within weeks with ext3 and ext4.

      Reiser4 recovers "dirty" shutdowns better than ext3.

      I had one time when I had a dirty shutdown, and e2fsck decided to wipe my /etc directory and put all the files in lost+found.

      --
      http://blindscribblings.com - Tasty pop-culture in conceptual fashion.
    17. Re:Reiser4 by Tokerat · · Score: 1

      Lesson learned: Geeks now require social skills, at least on a professional level, or their work might not be taken seriously.

      --
      CAn'T CompreHend SARcaSm?
    18. Re:Reiser4 by Daniel+Phillips · · Score: 1

      Lesson learned: Geeks now require social skills, at least on a professional level, or their work might not be taken seriously.

      How about the lesson: Geeks leading projects now require social skills or talented developers will leave their projects?

      --
      Have you got your LWN subscription yet?
    19. Re:Reiser4 by dubl-u · · Score: 1

      Making Hans hate himself won't bring Nina back; at this point the only important consideration is minimizing the cost to society. If you want to punish him you might as well execute him. At least then you won't be wasting taxpayer money housing and feeding him for the rest of his life!

      The goal of justly administered punishment is to correct behavior and provide deterrence to others, not to encourage self-hate. Neither purpose is well served by giving him permanent room and board to dink around on the Internet.

      As an aside, executing people because they fall below some level of benefit/cost ratio is in my view barbaric.

    20. Re:Reiser4 by mrchaotica · · Score: 1

      The goal of justly administered punishment is to correct behavior and provide deterrence to others, not to encourage self-hate. Neither purpose is well served by giving him permanent room and board to dink around on the Internet.

      How does withholding computer access correct his behavior, then? If he were in for hacking or something it'd make sense, but murder has nothing to do with programming. Besides, they don't have to give him access to Slashdot an porn; the ReiserFS CVS repository and mailing list would be plenty, and they could firewall everything else.

      Also, whether he has Internet access is irrelevant to his punishment anyway -- you're still "giving him permanent room and board" regardless. And if "giving him permanent room and board" won't serve the purpose of justly administered punishment -- as you say -- then you must agree with me that he should be executed. Otherwise, you're talking about just releasing him immediately which is obviously ludicrous.

      Finally, one man's barbarism is another man's pragmatism.

      --

      "[Regarding the 'cloud,'] ownership was what made America different than Russia." -- Woz

    21. Re:Reiser4 by dubl-u · · Score: 1

      How does withholding computer access correct his behavior, then?

      You don't think that he'd see having no internet access as punishment?

      Finally, one man's barbarism is another man's pragmatism.

      One man, perhaps, might see killing people to save money as reasonable pragmatism. But not a lot more. And thankfully we have laws and cops to keep people like you from acting on your notions.

    22. Re:Reiser4 by mrchaotica · · Score: 1

      One man, perhaps, might see killing people to save money as reasonable pragmatism. But not a lot more. And thankfully we have laws and cops to keep people like you from acting on your notions.

      There's a difference between normal people and people who have been convicted of capital crimes.

      --

      "[Regarding the 'cloud,'] ownership was what made America different than Russia." -- Woz

    23. Re:Reiser4 by Enderandrew · · Score: 1

      Con also had archives of his mailing list showing how well he supported his code. I emailed it myself a few times, and he was very accommodating. Linus always say that politics don't matter, he only cares about the best code. So instead of taking well established, tested, mature code, he went with unstable, new code that didn't match the performance of the stable code.

      --
      http://blindscribblings.com - Tasty pop-culture in conceptual fashion.
    24. Re:Reiser4 by skulgnome · · Score: 1

      Worse, the scheduler that eventually went in, while simple and neat and scalable and good stuff like that, was both unproven and very hacklike. Far as I can tell it was preferred because it was designed by an established kernel hacker.

      Now that's not to say that it wasn't good, because anything was better than the corner-case ridden scheduler Linux had since 2.4. It's just that it went in prematurely and for the wrong reasons, and its immaturity was highlighted by how it was significantly tweaked in the next couple of Linux revisions after it went in.

      Thankfully Con's work is still out there. Perhaps the next big Free Software operating system kernel will take advantage of it.

  25. Re:What is more needed is a modern multi-platform by Enderandrew · · Score: 1

    Exactly. I can use ext3 in Windows, but only if I mount ext3 with the right options. For instance, when I installed openSUSE 11 on my dual-boot box, I decided to use writeback for journaling, and now none of the ext3 options for Windows can mount that drive. ntfs in Linux is painfully slow, even with ntfs-3g.

    I'm looking to build my next box with 4 x 1.5TB drives and I'm debating how to partition and format it for a dual-boot Windows/Linux setup. Do I keep most of shared media (I'm going to rip my entire DVD collection, not to mentiom my emulator/rom collection, e-books, MP3's, etc) on NTFS or EXT3?

    --
    http://blindscribblings.com - Tasty pop-culture in conceptual fashion.
  26. Re:The article is incorrect with respect to ext4.. by sjames · · Score: 1

    As a result, many benchmarking attempts are very misleading, because they are often done by a filesystem developer who consciously or unconsciously, wants their filesystem to come out on top, and there are many ways of manipulating the choice of benchmark or benchmark configuration in order to make sure this happens.

    The other side of the coin can come up as well. If you develop and test everything on one platform with one test workload, it's easy to unintentionally make it highly optimal for that exact setup and terrible elsewhere.

  27. A metaphysical question by millosh · · Score: 2, Interesting

    Whenever I have to install some server, I have a metaphysical question: ext3 or reiserfs?

    Ext3 has a lot of advantages, including a possibility to do a fast recovery of files. While it is not needed often, at least once per year I have such demand. At the other side, undelete methods with raiserfs are very problematic.

    At the other side, my servers are up usually for a year or more. This means that the most of company's employees may go on one day vacation whenever I want to reboot a machine with 4TB file system.

    Any good idea to solve those two issues with one file system?

    1. Re:A metaphysical question by LWATCDR · · Score: 1

      JFS?

      --
      See my blog http://ilovecookes.blogspot.com/ for light hearted technical information.
    2. Re:A metaphysical question by tytso · · Score: 1

      The ext2/ext3/ext4 filesystems do a periodic check of the filesystem for correctness out of paranoia; because PC class disks, well, have the reliability of PC class disks, and that's what most people use these days on Linux systems. Other filesystems, such as reiserfs and xfs, are subject to the same kind of potential random filesystem corruption caused by hardware errors that ext3 is; in fact, in some cases their filesystem formats are more brittle than ext2/3/4 against random hardware failures in that a single bad block that corrupts the root node of a reiserfs filesystem, for example, can be catastrophic. It's just that their filesystem checkers don't require doing a periodic check based on time and/or the number of mounts.

      If you want to configure ext3 filesystems to have the same happy-go-lucky attitudes towards assuming hard drives never fail as reiserfs, you can do so; it's just a matter of using the tune2fs program; check out the man page options for the -c and -i options to tune2fs. Then you won't do a filesystem check at reboot time.

      What I do recommend, especially if you are using LVM anyway, is periodically (say, once a month, Sundays at 2am, or at some other low utilization period), have a cron script run that takes a snapshot of your filesystem, runs e2fsck on the snapshot, and if it has errors, sends e-mail to the system administrator advising them that it is time to schedule downtime to have the filesystem corruption repaired. This has the best of both worlds; you can now do much more frequent checks to make sure the filesystem is consistent, and you don't have to take the system down for long periods of time to do the test, since you can run e2fsck on the snapshot while keeping the system live.

    3. Re:A metaphysical question by kasperd · · Score: 1

      have a cron script run that takes a snapshot of your filesystem, runs e2fsck on the snapshot

      Can you get away with doing this kind of thing without LVM? LVM does add another layer where things can go wrong. I know it is a very simple layer compared to the file system, but still...

      I have been playing with the idea of simulating the snapshot feature in a user mode program that reads from the block device and presents another block device through the nbd driver. Then run fsck on that nbd device. Has the advantage that it doesn't depend on any snapshot feature to exist inside your normal fs stack. The obvious drawback of my approach is, that it does not give an atomic snapshot, which could give false positives in the fsck check, but maybe that can be fixed.

      The original reason I started thinking about this was not to do file system checks, but rather to have the user mode program backup all the metadata while the fsck is running. A backup of metadata is no substitute for a real backup, but there are people who think it is impractical to backup all their data, maybe they could be convinced to at least backup the metadata.

      One idea I had to dealing with the change of the underlying file system as the check is running was to reread the accessed sectors to see which have changed and rerun the check a few times. After the first run you have a pretty good idea of which sectors the check needs to read. And after two runs you have a pretty good idea of which sectors change frequently. Then do two reads of all the sectors one read starting from the least frequently changed ending with the most frequently changed, and then another read in opposite order to verify that no sector had changed in the meantime. It is only metadata, so there is a chance to keep a lot of it in cache.

      Of course this approach is a lot more complicated than an LVM snapshot. But the complicated code would be in user mode, far away from your file system stack.

      --

      Do you care about the security of your wireless mouse?
    4. Re:A metaphysical question by millosh · · Score: 1

      I think that this tune2fs is a good enough answer in my case because I am using storage systems with hardware RAID (two Siemens/SUN storages and some newer SATA-based).

      But, it is true that I forgot for periodical e2fscks... I just have to realize how to find which of 12-20 disks id damaged :)

      BTW, I was thinking about XFS and JFS, but I didn't check do they have some useful tool like ext[23] has: mc->undelete.

  28. Re:Choose ONE! by dunkelfalke · · Score: 1

    you are quite wrong about windows file systems.
    fat16 is dos legacy and isn't used anymore. since windows xp came out, fat32 should be used only for flash memory so there is only ntfs.

    winfs never was a filesystem (fs standing for future storage). it was just (more or less) an sql database of file metadata, running of course on top of ntfs.

    --
    "It's such a fine line between stupid and clever" -- David St. Hubbins, Spinal Tap
  29. Re:The article is incorrect with respect to ext4.. by grimJester · · Score: 2, Interesting

    As a result, many benchmarking attempts are very misleading, because they are often done by a filesystem developer who consciously or unconsciously, wants their filesystem to come out on top, and there are many ways of manipulating the choice of benchmark or benchmark configuration in order to make sure this happens.

    Wouldn't it be logical to assume a filesystem developer has an idea on what the workload and hardware will be like _before_ writing his filesystem, then picking a benchmark that suits his ideas on what a filesystem is supposed to do? No manipulation necessary, intentional or otherwise.

  30. Re:The article is incorrect with respect to ext4.. by transami · · Score: 2, Insightful

    Repeato ad absurdium...

    All these fancy features, but we are still using filename extensions (eg. .zip) to specify data types.

    Did OOP even happen?

    --
    :T:R:A:N:S:
  31. Re:What is more needed is a modern multi-platform by kayoshiii · · Score: 1

    Well actually if you install drivers you can access ext3 on Mac. There is also a third party read write ntfs driver for Mac (but is slow) - But the point being that it would be nice to be able to use a filesystem out of the box on Mac/Windows/Linux that supports larger than 2GB file sizes

  32. Re:What is more needed is a modern multi-platform by TrekkieGod · · Score: 2, Informative

    The only real problem I have is there doesn't exist a modern journaling FS which would work just as well on all 3 platforms.

    I agree with you that's really important. I'd also like zfs to be that filesystem. However, as long as you don't need that drive to be the root drive of your respective file system, you might be interested in some of these links:

    I can use ext3, but cannot plug it into a Mac.

    Give this a try. The latest news is that you get write support in Tiger, but I use it in Leopard without problems.

    Also don't worry about the ext2 part. Ext3 is designed to be backwards compatible with ext2. It can be mounted as ext2 (it just won't get journaling)

    You didn't ask for it, so you might already know about this windows driver. There are actually a couple out there, I think that one works the best (which is kind of unfortunate, because it's freeware, but proprietary).

    I can use NTFS, but cannot write to it on a Mac.

    Sure you can, same way you do it in Linux, through fuse and ntfs-3g.

    I can use Mac's FS, but cannot plug it into Windows (unless I pay for a proprietary driver every time I use that disk on a different machine)

    Yeah, you got me there. MacDrive works really well, but I'd like a non-proprietary version myself.

    For a removable drive that you can plug in anywhere, I'd go with ntfs actually. No FAT size restrictions, no permissions (actually a plus for a removable drive), and most linux distributions come with ntfs-3g installed by default. That means you only have to install the driver in mac os x

    --

    Warning: Opinions known to be heavily biased.

  33. Re:The article is incorrect with respect to ext4.. by dougisfunny · · Score: 2, Insightful

    What do you want to specify the data type?

    Some non-human readable meta data? If someone sends you a Not-a-virus.txt in an email attachment, what kind of file is it? An executable a funny story? How would you know?

    --
    This is not the funny you're looking for.
  34. Re:The article is incorrect with respect to ext4.. by Anonymous Coward · · Score: 0, Insightful

    Seconded.

    The one most wanted feature is the ability to store the mime type (or something like that) of a file.

    With all the search features in modern OSes, even the file name should take second place to that.

  35. Re:The article is incorrect with respect to ext4.. by Kent+Recal · · Score: 1

    Oh, who does that?
    My OS certainly doesn't care.

  36. magic by Anonymous Coward · · Score: 0

    NAME file - determine file type SYNOPSIS file [-bchikLnNprsvz] [--mime-type] [--mime-encoding] [-f namefile] [-F separator] [-m magicfiles] file file -C [-m magicfile] file [--help] DESCRIPTION This manual page documents version 4.24 of the file command. file tests each argument in an attempt to classify it. There are three sets of tests, performed in this order: filesystem tests, magic tests, and language tests. The first test that succeeds causes the file type to be printed. The type printed will usually contain one of the words text (the file contains only printing characters and a few common control characters and is probably safe to read on an ASCII terminal), executable (the file conâ tains the result of compiling a program in a form understandable to some UNIX kernel or another), or data meaning anything else (data is usually âbinaryâ(TM) or non-printable). Exceptions are well-known file formats (core files, tar archives) that are known to contain binary data. When adding local definitions to /etc/magic, make sure to preserve these keywords. Users depend on knowing that all the readable files in a directory have the word âoetextâ printed. Donâ(TM)t do as Berkeley did and change âoeshell commands textâ to âoeshell scriptâ. The filesystem tests are based on examining the return from a stat(2) system call. The program checks to see if the file is empty, or if itâ(TM)s some sort of special file. Any known file types appropriate to the sysâ tem you are running on (sockets, symbolic links, or named pipes (FIFOs) on those systems that implement them) are intuited if they are defined in the system header file . The magic tests are used to check for files with data in particular fixed formats. The canonical example of this is a binary executable (compiled program) a.out file, whose format is defined in , and possibly in the standard include directory. These files have a âmagic numberâ(TM) stored in a particular place near the beginning of the file that tells the UNIX operating system that the file is a binary exeâ cutable, and which of several types thereof. The concept of a âmagicâ(TM) has been applied by extension to data files. Any file with some invariâ ant identifier at a small fixed offset into the file can usually be described in this way. The information identifying these files is read from /etc/magic and the the compiled magic file /usr/share/file/magic.mgc, or the files in the directory /usr/share/file/magic if the compiled file does not exist. In addition, if $HOME/.magic.mgc or $HOME/.magic exists, it will be used in preference to the system magic files.

  37. Re:The article is incorrect with respect to ext4.. by SmackedFly · · Score: 1

    Because the operating system would tell you what the metadata means. I don't quite see how 'file.notavirus' and 'file' with metadata saying 'notavirus' makes any difference apart from the latter being more flexible. Still. nothing prevents us from doing both, and as it stands it's too hard to establish cross-operating system support for it to be feasible.

  38. Re:The article is incorrect with respect to ext4.. by siride · · Score: 1

    There are extended attributes and magic numbers. Some file managers seem to make limited use of these. I guess the problem with extended attributes is that they aren't guaranteed to be transferable along with the file when you, e.g., upload the file to a website, or transfer it to another computer. Only the main stream of a file is guaranteed to be transfered.

    But make no mistake, the filesystem fully supports this kind of information. We just don't seem to make much use of it right now.

  39. JFS by adrianbaugh · · Score: 4, Insightful

    Sad to see JFS being overlooked so. While it may not have the postmodern features to compete in the wake of JFS, it's still in many cases the best current filesystem for linux. It's remarkably crashproof, has the lowest CPU loading of any of {ext3 jfs xfs reiser3}, good all-round performance (generally either first or second in benchmarks) and is fast at deleting big files. I haven't used anything else in a couple of years - I used to put reiser3 on /var, but got fed up with its crash intolerance. It's sad to see jfs so overlooked, because at least until btrfs or tux3 come out it's arguably the best option available.

    --
    "'I pass the test,' she said. 'I will diminish, and go into the West, and remain Galadriel.'"
    - JRR Tolkien.
    1. Re:JFS by Anonymous Coward · · Score: 0

      Couldn't have said it better. It would seem like JFS never really got the exposure and mindshare it deserves.

      Even if btrfs and tux3 have huge advantages they will be "beta" for a long time. JFS has already been through numerous iterations and is rock-solid stable.

    2. Re:JFS by hindumagic · · Score: 1

      Agreed w.r.t. JFS. Especially if you are running a media center.

      My mythtv box running on a simple athlon doesn't give a hiccup while playing back video while it is copying large files across the network or deleting files. Meanwhile, my ubuntu desktop running ext3 almost locks up while working with large files with similar hardware. I tried XFS several years ago before switching to JFS because it just wasn't very stable (gentoo based system).

    3. Re:JFS by Anonymous Coward · · Score: 0

      I used to use JFS exclusively. There were three things (as I recall) that got me to switch to XFS:

      1. JFS didn't support EXT2-style flags as settable by chattr (I believe this is now supported).
      2. JFS needed a fsck available after a crash; the kernel replays the XFS journal, not fsck.
      3. JFS didn't have defrag support.

      I'm not sure about whether JFS still suffers from #2--Which isn't a huge deal, because you should have a fsck around; but I had to use a rescue disc once that did not and it was a pain trying to make a copy of fsck.jfs available to the machine in question.

      I believe JFS still lacks defrag. This isn't necessarily the biggest deal in the world, but I like having the feature available.

      If I were handed a system with JFS on it, I would certainly have absolutely no qualms about using it as a heavily loaded server. As a filesystem, JFS is great. It's just the little extras I get from XFS that make it my filesystem of choice.

    4. Re:JFS by YoungHack · · Score: 1

      I agree. For several years now JFS has gone on all my servers and workstations. I've not used any Linux filesystem that worked so generally well in terms of performance and reliability.

    5. Re:JFS by VanessaE · · Score: 1

      JFS works well for me, but lacks one thing that would have saved me a great deal of trouble recently - it is intolerant of bad blocks, to the point of outright crashing the system. Yes, one should replace bad hardware ASAP, but if you're in a situation where said hardware can't be replaced yet, it is better to be able to just get an error message and run in "limp-in" mode for a while than to end up with a useless box for that same amount of time.

    6. Re:JFS by dorfsmay · · Score: 1

      I switched away from ext3 because of the long fsck on moderately large filesystems. I have used JFS on AIX for years, and I understand the Linux verison is not exactly the same, but decided to give a try. As everybody else said, JFS is rock solid. When the machine crashes, 99% of the time it is just a question of replaying the logs, which takes just seconds, and the few cases where it is not good enough, fsck -f takes a few minutes for say a 100 GiB filesystem.

  40. OSS - reinventing the wheel by Anonymous Coward · · Score: 2, Insightful

    seriously how many filesystems do we need? this is the failing of OSS, too many projects inventing the same thing splitting up their developing efforts so neither of them achieve anything.

  41. Re:Choose ONE! by SanityInAnarchy · · Score: 1

    Jeez, choose one FS and stick with it.

    Just like everyone else does? Oh wait...

    We've got FAT32 for thumb drives, NTFS for Windows hard drives, HFS+ for OS X hard drives, and ISO9660 and UDF for CDs/DVDs -- several versions of them, in fact, with Rock Ridge extensions, Joliet extensions, plus UDF2...

    Now, most distros do stick to the standard pattern of one swap partition and one big root partition, formatted as ext3.

    However, just like the rest of the world, we recognize that different situations call for different filesystems. UbiFS is a filesystem sitting directly on flash media (instead of above some wear-leveling ATA-emulating layer designed for FAT). sshfs is a (fuse-based) filesystem for accessing remote filesystems via ssh. Squashfs is a read-only, heavily-compressed filesystem, ideal for use on livecds and DVDs. And then there are the journaling filesystems like ext3.

    It would be stupid beyond belief to suggest that we should unify those things into one giant, lumbering, monolithic, bloated filesystem.

    Instead of one stable implementation you have this whole business of a dozen half-assed implementations again.

    Look at the above filesystems I've mentioned. What is half-assed about them? Please be specific.

    If Linux coders were designing "standards", we'd have TCP/IP, TCP/IP2, TCP/IP3, TCP/IP4-beta5-pre46 and what not.

    Actually, I'm betting quite a lot of Linux coders were designing them -- and the situation isn't far from what you describe.

    We still have ipv4 and ipv6. We also have TCP, UDP, and ICMP. We have implementations of TCP over UDP. We have older protocols like AppleTalk and IPX -- dead in most places, but there's a reason Linux still supports them. We have NetBIOS and DNS. We have Zeroconf and Bonjour.

    This right there shows you what's wrong with Linux.

    Really?

    No, filesystems are actually one place Linux is king -- with the possible exception of ZFS, but that's being rectified. We support just about everyone else's filesystems -- from 9pfs to sysvfs, and everything in between. With FUSE, we even support a few filesystems that won't go into the kernel, for technical or legal reasons.

    In fact, it speaks quite loudly about the quality of desktop Linux that you think this is what's wrong with Linux. You could have chosen to complain about how slow suspend/resume is on some devices. You could have raged about the lack of support for some obscure wireless card, or whined about being forced to modify your kernel commandline for your touchpad to work.

    These might all be valid complaints, but you didn't raise them. Instead, you chose to complain about how many filesystems we have -- how dare we provide so much choice!

    And seriously, what kind of fucking ridiculous name is Tux3?!

    The same kind of fucking ridiculous name that FAT32 is. Or maybe you like HFS Plus?

    --
    Don't thank God, thank a doctor!
  42. Reiser4's name is a killer by acb · · Score: 4, Insightful

    Over and above this, it'll need a new name. I know it doesn't make one iota technical difference, but people are fussy about such things; change the name, and people don't care if it was developed by fiends. Keep it and people will find excuses to edge away and it'll wither on the vine.

    The Volkswagen was a runaway success despite its Nazi origins, but had it been named the "Hitlerwagen", things would have probably turned out a lot differently.

    1. Re:Reiser4's name is a killer by jonaskoelker · · Score: 1

      I suggest doing everything possible to make reiser4 really really fast and have lots of bells and whistles. Then we should rename it to RicerFS.

    2. Re:Reiser4's name is a killer by turing_m · · Score: 1

      I suggest doing everything possible to make reiser4 really really fast and have lots of bells and whistles. Then we should rename it to RicerFS.

      That's not quite correct. To make RicerFS, you need to start with something Japanese. In this case, you might fork "Gfarm", at least that is Japanese. Then you don't change anything except for sticking a massive ascii art "Type R" somewhere in the comments, which you would also code to appear when you mount the file system.

      --
      If I have seen further it is by stealing the Intellectual Property of giants.
    3. Re:Reiser4's name is a killer by mcrbids · · Score: 1

      So fork it! Give it a new name, like GenFS, NexFS, or something happy sounding. Then, see what kind of adoption it gets...

      --
      I have no problem with your religion until you decide it's reason to deprive others of the truth.
    4. Re:Reiser4's name is a killer by ModMeFlamebait · · Score: 1

      NinaFS?

      --
      Pavlov. Does this name ring a bell?
    5. Re:Reiser4's name is a killer by Anonymous Coward · · Score: 0

      So, do you propose that the name will be changed from ReiserFS to HitlerFS or to VolksFS?

    6. Re:Reiser4's name is a killer by Anonymous Coward · · Score: 0

      Game over.

      -- Mike Godwin

    7. Re:Reiser4's name is a killer by Hans+T.+Reiser · · Score: 1

      This is getting really old guys...

  43. Re:What is more needed is a modern multi-platform by ultranova · · Score: 1

    For instance, when I installed openSUSE 11 on my dual-boot box, I decided to use writeback for journaling, and now none of the ext3 options for Windows can mount that drive.

    Ext3 is actually ext2 with a special file used for journaling. In fact you can create this journal on existing ext2 partitions to "convert" them to ext3. Assuming that the machine was shut down correctly, and all the data in the journal has thus been flushed to the disk, ext2 tools should mount it just fine as an ext2 volume - and if they don't, it's time to run fsck and fear the worst.

    --

    Forget magic. Any technology distinguishable from divine power is insufficiently advanced.

  44. Half-hearted by Chatz · · Score: 1

    How are filesystems that were designed from the ground up to be journaled filesystems "essentially bolt journaling to the traditional file system UNIX layout"?

    Did you actually bother to look at the layout of an XFS filesystem?

    You refer to a Debian article on XFS CPU usage, but fail to mention that the conclusion of the aritcle is "Based on all testing done for this benchmark essay, XFS appears to be the most appropriate filesystem to install on a file server for home or small-business needs" and "Personally, I still choose XFS for filesystem performance and scalability".

    You then go on to continue the myth about XFS corrupting your data, a myth that has been debunked countless times. Changes were made to XFS some time ago so that it behaves in a way that user's were expecting.

    It's a somewhat half hearted blog in my opinion and I'm surprised that slashdot picked it up.

    --
    There is folly and foolishness on the one side, and daring and calculation on the other. - Admiral Pellew, Hornblower
  45. Re:Choose ONE! by Blakey+Rat · · Score: 1

    Windows is not without it's own choices mind you either, fat(fat16), fat32, ntfs, WinFS(cancelled). As time pass, even microsoft attempts to create a new and improved fs (key-word: attempt). Sure they tend to force the latest fs on you but that's microsoft way VS linux way of choice.

    Fat16 has been deprecated for ages (decades, I think). Windows only supports it for old floppy disks you have hanging around; it won't let you format any new devices in Fat16. Fat32 is only there for compatibility with Windows 98 and ME; the only reason XP lets you format a new disk as Fat32 is that it's (supposedly) possible to upgrade from Windows 98 to Windows XP, and so it needs the ability to use the same filesystem.

    WinFS isn't a filesystem in the same way Ext2 or NTFS is. It's more of a database-backed meta-data layer sitting atop NTFS.

    Since Windows 2000, the only real Windows filesystem is NTFS.

    Sure they tend to force the latest fs on you but that's microsoft way VS linux way of choice.

    1) XP will install and run on Fat32, if you really want to. (Windows 2000 also, IIRC, but it's been awhile.)

    2) But would any sane person do that? Seriously, sometimes there's an obvious "best approach". Criticize Microsoft all you want when they deserve it, but that's ridiculous.

  46. Re:Choose ONE! by farnsworth · · Score: 1

    Fat16 has been deprecated for ages (decades, I think). Windows only supports it for old floppy disks you have hanging around; it won't let you format any new devices in Fat16. Fat32 is only there for compatibility with Windows 98 and ME; the only reason XP lets you format a new disk as Fat32 is that it's (supposedly) possible to upgrade from Windows 98 to Windows XP

    Maybe you are talking about MS's advanced filesystem tools, but there's an article from MS that points out the bizarre fact that Vista's dialog for "format unformatted drive" defaults to FAT16.

    To wit: "As for Windows, I would have expected it to always default to FAT32, but a quick look at the Format dialogâ(TM)s pick for one of my USB drives showed I was wrong." -- Mark Russinovich

    --

    There aint no pancake so thin it doesn't have two sides.

  47. Re:The article is incorrect with respect to ext4.. by lysergic.acid · · Score: 2, Interesting

    on Windows i can see the file extension of every file on my hard drive. i determine the file type based on the same attribute that my shell does. if i get a file attachment or am browsing a directory, i can immediately distinguish executables from non-executables. if i'm looking for a PNG image, i just look for the appropriate icon and the .png extension, and i can double click on the icon and open the image without the possibility of accidentally running a malicious executable.

    however, on a lot of people's Windows systems they have explorer configured to hide known extensions. so the shell still uses file extensions to determine file format, but they're now relying solely on the file icon to indirectly determine file type. but since executable files can have embedded icons, it's very easy for an attacker to give a file a deceptive name and icon, disguising a virus or trojan as an image or text document.

    sure, the user could right-click on the file and select "Properties" to look at the "Type of file:" field. however, doing this for every single file you want to examine is very tedious and time-consuming. most people simply aren't going to go through that kind of hassle. imagine if you have to examine a directory with 100 images in it. are you going to open the properties dialog 100 times, once for each and every file?

    using meta data or magic number to determine file format would have the same drawback. how would you determine the format of a file at a glance using meta data? you wouldn't have a safe/accurate and intuitive means of determining file type.

  48. Ext3 is a hack that is popular b/c of ext2 support by thesandbender · · Score: 1

    Ext3 is a hack on top of Ext2. It's popular b/c distributions default to it b/c it's easy to support and when you hit "create filesystem" it defaults to ext2/3. In the long run... XFS is... 1. Faster. 2. Resizable. You buy another hard drive and just add it. It takes a while but it works. 3. Built for journaling. Ext2/3 has it's place. Boot partions and portable drives. But to indicate that ext3 or even ext4 is state of the are or has "won the war" and that xfs or jfs haven't gained traction is... well... wrong.

  49. Re:The article is incorrect with respect to ext4.. by afidel · · Score: 1

    Is there any plan to support ANSI T10-DIF in EXT4 either initially or in later patches?

    --
    There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
  50. Re:Choose ONE! by afidel · · Score: 1

    Yes, there is a perfectly sane reason to use FAT32 on a modern computer, the lack of an ACL node to be updated means that compiles that are I/O limited can see a HUGE speedup by being targeted at a FAT32 partition. Under Windows 2000 I was blown away by the 250% compile speed performance one developer got by using a relatively small FAT32 partition for his compiles.

    The other reason is of course to format any type of media that needs to be used in another computer or a non-PC electronic device.

    --
    There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
  51. EXT appropriate for desktop? by Burz · · Score: 1

    The default behavior of EXT filesystems to launch a sometimes lengthy fsck while booting really throws computer novices for a loop; they get scared, or impatient or worse.

    Also, I don't think the logic of using EXT3 for large partitions containing large files quite holds up: 1) deleting large files is slow, 2) when fsck strikes you are bound to have a long wait.

    EXT3's forte isn't small files either. I just don't think its a very good filesystem. If EXT4 doesn't address more than storage space issues, then I'll take a pass on that as well.

    XFS is still inappropriate for most hardware setups, IMO.

    I think that will pretty much leave ReiserFS and JFS as my main options.

    1. Re:EXT appropriate for desktop? by RiotingPacifist · · Score: 1

      But reiserFS support is dwindling (on ubuntu it costs me 10 seconds during a 40 second boot and all i get, from various sources, is that reiserFS is not supported i should use ext3). Its a real shame that reiserFS isn't used by default on more desktop distros as its fsck is pretty quick, a boot with full fsck is still less than 2 minutes.

      BTW does anybody on other distros using reiserFS get a 5 second do nothing break during startup ( bootchart shows as fsck zombing)? (in particular somebody running debian, it would be interesting if this is a ubuntu only feature)

      --
      IranAir Flight 655 never forget!
    2. Re:EXT appropriate for desktop? by Anonymous Coward · · Score: 2, Funny

      But reiserFS support is dwindling (on ubuntu it costs me 10 seconds during a 40 second boot and all i get, from various sources, is that reiserFS is not supported i should use ext3).

      OMG! Someone killed ReiserFS!

    3. Re:EXT appropriate for desktop? by Wdomburg · · Score: 1

      Eh? You don't get a fsck on mount by default with ext3 unless you've exceeded either the check interval or max mount count. If the filesystem has the needs_recovery flag set (i.e. wasn't cleanly unmounted) the journal will be replayed.

      Lengthy filesystem checks on large filesystems holding large filesystems are only a problem if you don't create the filesystem properly in the first place. The time to do a fsck is pretty much linear to the number of inodes; specify a reasonable bytes-per-inode ratio and fsck time drops dramatically. Even this is unnecessary under ext4 since they no longer check unused inode groups.

      If you RTFA they give brief summary of the additional features of ext4: "Later, others (Lustre, IBM, Bull - see Theodore T'so comment) got involved and added extents, delayed allocation, online defragmentation, and more." and the development wiki goes into further detail.

    4. Re:EXT appropriate for desktop? by Burz · · Score: 1

      But reiserFS support is dwindling...

      Then that means Linux as a whole has some serious (even terminal) problems with internal politics. If an open codebase like ReiserFS can die from those politics, then so can the whole kernel.

      And its not like the audio and task-switching parts of the kernel haven't been suffering. Now its filesystems too.

      As it stands now, I'll tolerate a 10-second checkup at boot over a 10-15 min. fsck. And though I know how to skip the latter and what the ramifications are, my associates do not and understandably do not want to learn.

    5. Re:EXT appropriate for desktop? by Burz · · Score: 1

      Eh? You don't get a fsck on mount by default with ext3 unless you've exceeded either the check interval or max mount count.

      Yes, you've described the default behavior of EXT3 and its unacceptable. Would YOU like to explain the concept those concepts you mentioned to my end-users?

      I won't. Its needless as there are much better filesystems for the desktop.

    6. Re:EXT appropriate for desktop? by tytso · · Score: 1

      If you look at the numbers, the majority of the files on a Linux desktop are not "small files" (by much I mean files substantially smaller than a blocksize). Given that this is the case, why optimize for them?

      As far as whether or not the defaults of ext3 are "acceptable" or not --- it's open source! You can change the defaults if you want, or a distribution can change the defaults if they want. I suppose I could add a tuning knob to /etc/mke2fs.conf so you can change the defaults for your system. Regardless, I think it's rather silly to choose an open source filesystem based on whether you like the defaults. After all, Homo Sapiens is a thinking animal; it has the ability to think for itself, and if it doesn't care about the safety of the files stored on the filesystems (or he/she knows that it is protected in other ways, such as RAID-6 with hot sparse, PLUS regular full and incremental backups) he/she can use different filesystem tunining parameters. Or the defaults can be changed --- if you want to distribute a fork of e2fsprogs called "fast and loose with your data progs", there is absolutely nothing in the GPL which stops you from doing that.

    7. Re:EXT appropriate for desktop? by RiotingPacifist · · Score: 1

      its not the checkup that bothers me its that AFAICT nothing is happening for those 10 seconds its a 1/5 of my boottime and nobdy give me any help other than switch to ext3

      --
      IranAir Flight 655 never forget!
    8. Re:EXT appropriate for desktop? by Burz · · Score: 1

      It seems to be doing something to me. Reiserfs is known to go through a checkup phase when it mounts; this usually obviates the need for a fsck.

      Maybe my HDs are just louder/more noticeable than yours?

    9. Re:EXT appropriate for desktop? by Burz · · Score: 1

      If you look at the numbers, the majority of the files on a Linux desktop are not "small files" (by much I mean files substantially smaller than a blocksize).

      That's not what most people would call 'small files'. HFS+ on OSX defines a small file as something less than 20MB; anything upto that threshold is a candidate for on-the-fly defragmentation. Personally I think thats a good value; something between a large song file and a short TV show.

      As far as whether or not the defaults of ext3 are "acceptable" or not --- it's open source! You can change the defaults if you want, or a distribution can change the defaults if they want.

      No.

      The FOSS "eco-system" (community) of systems and app developers needs to find a way of arriving at reasonable defaults on its own. We ARE talking about the desktop here, and I'm not into making my customers suffer with a bizarrely-behaving OS the moment I'm no longer available to do custom remixes. If the users in question were back end sysadmins then it would be no problem, but introducing this dynamic onto the desktop will always fail unless your model is centrally-administered thin clients.

      I suppose I could add a tuning knob to /etc/mke2fs.conf so you can change the defaults for your system.

      Yes, its called 'vertical integration' - regarded with hostility in FOSS circles. Hence, a trip to the support/forum areas of even the 'user-friendliest' of distros (Ubuntu, say) looks like CLI bootcamp.

      Regardless, I think it's rather silly to choose an open source filesystem based on whether you like the defaults. After all, Homo Sapiens is a thinking animal; it has the ability to think for itself, and if it doesn't care about the safety of the files stored on the filesystems (or he/she knows that it is protected in other ways, such as RAID-6 with hot sparse, PLUS regular full and incremental backups) he/she can use different filesystem tunining parameters. Or the defaults can be changed --- if you want to distribute a fork of e2fsprogs called "fast and loose with your data progs", there is absolutely nothing in the GPL which stops you from doing that.

      Why would I do that?? I would simply become known in Linux tech circles as the person who "made data less secure for unsuspecting rubes". And maybe EXT is less reliable without regular fsck-ing but I don't want to find out. The fact that I have to ponder this as a technical and a political dilemma underlines the failure in the system architecture.

      The situation is similar to the disaster known as Linux audio, only less acute. What user audience were they thinking of when they designed and re-re-designed the audio subsystem? As usual, it only seems to fit technically sophisticated users who rarely use sound anyway... like all those webmasters who use Windows or OSX for their groupware with audible meeting alerts, softphone, music player, etc. all able to function at once, alongside a single-purpose built test server and N production servers offsite. Its beyond cliche and endemic even at IBM.

  52. Re:The article is incorrect with respect to ext4.. by Daengbo · · Score: 1

    Who is using that? Debian/GNOME and it doesn't matter for me what the extension is unless the file mime-type type isn't discoverable from the file itself (e.g. it's empty).

  53. GodFS! by Anonymous Coward · · Score: 0

    Pray that your data is truthful! (see integrity)

    Pray that your overhead is low and performance is high!

    Pray it works with your hardware!

    Pray that it scales!

    Pray that it is reliable!

    Pray that you can easily back it up and restore it!

    We are currently accepting donations and prayers...

    - Rev Daryl McBush

  54. Re:The article is incorrect with respect to ext4.. by Kadin2048 · · Score: 4, Interesting

    using meta data or magic number to determine file format would have the same drawback. how would you determine the format of a file at a glance using meta data? you wouldn't have a safe/accurate and intuitive means of determining file type.

    I don't think that there is a 100% "safe and accurate" way to display the file type, assuming you are depending on a possibly-hostile file to supply the information in the first place. There are, however, a few things that an operating system can do to make life safer for users:

    1) Clearly mark executable files. Have some visual indication whether a file is set to be executable (this, of course, assumes that your operating system has an execute bit; if it doesn't, that's a bigger problem). This indication should be consistent, universal, and impossible to override with metadata or custom icons. It should apply both to CLI shells and GUIs. (Although not necessarily in the exact same way; however my personal preference for such an indicator, which is putting the file name in bold, would work both in a GUI and CLI environment.)

    2) Don't use the same action to execute as to open. Using the same action (the double-click) both to "run" and to "open" -- which are two very different actions -- is probably responsible for the vast majority of user-propagated malware today. I would love to see an operating system rigorously enforce a separate 'run' action, so that a user clicking on what appears or claims to be a data file (intending to open an application and read that file) could not accidentally execute it.

    3) Break the filesystem into 'data' and 'executable' sections, and bar files on the 'data' sections from being marked as executable under any circumstances. I don't think this would be as effective as #2, but it would probably involve less user retraining. In order for content to be executed, it would have to be copied or installed onto the executable partition (which in normal operation could even be mounted read-only).

    You could do all of this with the data-type indicator as part of the file name, or as a separate piece of metadata; it doesn't really matter. There's no 'safety' advantage to doing it either way, it's just that keeping it in the file name is considered very ugly by a lot of people (myself included). I'm personally a fan of the way that the Mac used to do it, with a two part code (one for the file's actual type, the other for the application that either created it or should be used to open it), except that unlike the Mac, it should be easily editable by the user, and a lot of standardization and interoperability challenges would have to be solved. I'll be surprised if I see the filename.ext thing die in my lifetime, honestly. It's just too entrenched.

    --
    "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
  55. Re:The article is incorrect with respect to ext4.. by neomunk · · Score: 1

    My command line does exactly what you ask for in the last paragraph by using different colors to represent different file types. I'm sorry, but I cannot be convinced that a gui has less capability than a terminal to represent information using non-textual visual cues, or even a handy-dandy sidebar with file information, including file type.

  56. Re:The article is incorrect with respect to ext4.. by drinkypoo · · Score: 1

    GNOME makes use of magic numbers and MIME types. Nautilus will detect file types regardless of extension... I do use file extensions, though, for interoperability with other systems in the house (like WinXP and the Xbox.)

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  57. Re:The article is incorrect with respect to ext4.. by ChameleonDave · · Score: 4, Funny

    Repeato ad absurdium...

    What is that gibberish supposed to mean? Christ, I hate mock-Latin. If you want a fancy-sounding term referring to repeating something again and again, use ad nauseam.

  58. Re:The article is incorrect with respect to ext4.. by lysergic.acid · · Score: 1

    i will admit, i hadn't thought of those other possibilities, and i'm glad you brought those to my attention.

    however, it's hard to strike a fine balance between usability and security. and if you make users choose between the two, most will choose usability. that is why i like having file extensions, as it provides usability without significant compromises to security. you could use file icons to indicate file type to the user, but then you would have to disable custom or embedded icons. now, this may be acceptable in a business environment, but custom program icons are a basic aesthetic feature that most consumers have come to expect. and aside from aesthetics, easily distinguishable program icons also significantly enhance usability.

    also, the problem with using separate commands for "run" and "open" is that, generally, users expect to perform the default action for a particular file type on double click, regardless of what file type it is. for an audio file it might be "play", or "queue to playlist", and for an image file or text document it'd be "open" in the default editor, and for an executable one would expected it to be "run." i think if the interface gives a clear (and accurate) indication of file type then it's really not necessary to require different actions for "open" and "run" commands. this can be achieved either with visible file extensions, or by putting an executable in bold as you mentioned. though using an execute bit that's off by default might be a prudent policy.

    another thing i'd like to point out is that file extensions make searching for specific file types much easier (well, in theory at least; the Windows XP's built-in search feature is absolutely worthless) since you can type something like "*.css" to find all CSS files in a directory. i'm not sure how else you can handle such searches in an intuitive manner.

  59. Re:Ext3 is a hack that is popular b/c of ext2 supp by AusIV · · Score: 1

    Resizable, to me, implies growable and shrinkable. XFS is not shrinkable, unless you know something I don't.

  60. There's good reasons to do so by Sycraft-fu · · Score: 1

    The biggest would be it is easy for the user to see what the file type is supposed to be and thus what it'll open with, and change that, if necessary. For example on my system anything with the extension .txt is going to open in UltraEdit. So if something comes in claiming to be a text file but is actually something else, doesn't really matter, the text editor is what opens it. There isn't any room for trickery of making it look like one thing abut having the OS open it in another. The extension determines what app is launched and I determine the extension to app mapping.

    Also of course it is a simple way of indicating type that doesn't rely on file systems with multiple data streams. That can be a nice feature, but what happens if your file hits a system without it? Mac users dealt with that for years, and still do to some extent, due to Apple's use of multiple data streams. Something would go out to an FTP serer and all of a sudden Macs didn't know what it was since the resource fork was gone.

  61. Re:The article is incorrect with respect to ext4.. by RiotingPacifist · · Score: 1

    are you just trolling or have you seriously never hear of magic numbers, I often forget to name the type of file and have never had any problems, but generally it is a good idea to use a file.type naming system because it means you can differentiate between text, scripts, configs, etc easily.

    --
    IranAir Flight 655 never forget!
  62. I own a Histervagon, you insensitive cod. by Anonymous Coward · · Score: 0

    I bought mine from Nostradamus. The gould is very nice. Get tour own pick and dig it up yourself, before the askenazim jews bury this technology so they can have their shakira glory. Joseph, that 2-headed kike kraut, he too must be killed; he wears the horns of power as in Psalm 92. Get on withe the spanking scene, zoot: for great justice of the pleasure Chief Wounded Bagpipe. - Yes Massa'd, Israelean Inteligence operator 409, cleans with a shine.

  63. Re:The article is incorrect with respect to ext4.. by Anonymous Coward · · Score: 0

    not sure if much on-topic, but Apple Mac(intosh) has done without them for its entire life, still going through various kernel "replacements" and the like.

    File extensions have nothing to do with file systems, in fact on an older non-graphical Unix system you wouldn't use them at all...

    I't a (double) "resource" issue:

    1) On the Mac files used to have a "resource" part in addition to the plain raw data, and in the former you would specify the application that created the file and the filetype itself;

    2) On the Internet most of the hosting is done on Unix Servers, but most of the content comes from Windows computers - thus the ubiquitous useless file extension...

    3) The world could easily do without file extensions TODAY, given that most of the files are opened via a browser of some sort, it would be a one-day switchover to start using MIME headers to decide on the filetype and say adieu to the threesome extension...

    Just my 2€cent

  64. Re:The article is incorrect with respect to ext4.. by droopycom · · Score: 2

    I dont think it would be logical at all.

    First, It would mean that each workload would require a different filesystem design.

    Then it would also mean that you dont need synthetic benchmarks at all, just a run the expected workload as your "benchmark".

  65. Sad... by Hymer · · Score: 1

    ...probably the worlds best filesystems (Digitals AdvFS) has been released to OS and it seems that nobody cares...
    I've used it a lot on Tru64 and I am quite sure that it would be a real hit for Linux.
    We are trying to reinvent something we just can take for free...

  66. Re:What is more needed is a modern multi-platform by Freultwah · · Score: 1

    I can use NTFS, but cannot write to it on a Mac.

    O but you can. First, you install MacFUSE and then install NTFS-3G on top of it. You can even format disks as NTFS with Disk Utility.

  67. Re:The article is incorrect with respect to ext4.. by jimicus · · Score: 1

    Repeato ad absurdium...

    All these fancy features, but we are still using filename extensions (eg. .zip) to specify data types.

    Did OOP even happen?

    I really don't know what you're talking about.

    Apple Macs don't need the filetype specified in a file extension. Neither does Gnome, nor (IIRC) KDE - and the underlying OS certainly doesn't.

    In fact, if you go back in time a little, RISC OS didn't either - it stored the filetype in a small piece of metadata. (And applications were actually directories but with a filename starting in "!" - the OS automatically ran a program called "!Run" inside the directory when you double clicked on it. OS X does something fairly similar today).

    The only operating system I can think of in common use today which does is Windows - but seeing as we're talking about Linux filesystems, you can't possibly be referring to that.

  68. Re:The article is incorrect with respect to ext4.. by dougisfunny · · Score: 1

    Then you've never used a windows gui ;)

    --
    This is not the funny you're looking for.
  69. Re:The article is incorrect with respect to ext4.. by Anonymous Coward · · Score: 0

    Your post is precisely one example why I wish OOP never did happen. Now we have waves of people (like you!) demanding that we hide stuff left and right. What's wrong with a file extension? Why can't I see what my files are? Why do I have to rely on some complex filesystem to determine things for me?

    Stop STOP trying to hide stuff! My filetypes are NONE of your business. (And your bloated OOP code to implement it does not belong in my kernel either.)

  70. tagged this and others !murderfs, reiserfs by sethstorm · · Score: 1

    since some still don't know what the proper name of reiserfs is. It's getting a bit old.

    --
    Twitter supports and protects racists - by smearing their critics with the "Hate Speech" label.
  71. What's a common grip these days ? by freaker_TuC · · Score: 1

    Look around, there are people who like to dominate and like to be dominated.
    It's all one bestiary world where the strongest will survive and the weakest will just follow like cattle ...

    There would be no single hair on my body who would think to drink poison, just because of belief.

    Believing really controls that much, I would think these people were semi-forced drinking their coolaid by misusing their (trust and) beliefs!
    Just like the phrase "If you believe good enough in it, it will happen" it's all based on common willpower...

    If not, explain me why placebo's work in some cases ... belief!

    To end this rant ...
    I might have found "the true poison" in belief, it's not the name or origin but it's the abusal of it's ancient words towards unfettered deeds...

    --
    --- I am known for the ones who want to find me on the net. Is that a privacy risk or a privilege? One might wonder..
    1. Re:What's a common grip these days ? by Yfrwlf · · Score: 1

      What about the inaccuracies of the cattle metaphor you used? =D

      If you were in a large group, many of whom are your relatives, and everyone went walking through a door, you'd probably walk through too.

      --
      Promote true freedom - support standards and interoperability.
    2. Re:What's a common grip these days ? by Da+Masta · · Score: 1

      Very insightful post. You're very right, belief IS the single-most powerful motivator in ANYONE.

      Like you said, that's why placebos work (This is medicine). It's also why:
      - the 12-step AA program works (God will will save me),
      - why America works (All men, including me, are created equal),
      - and even why our financial system works (My money actually has tangible value).
      But that's no excuse for being gullible.

      Belief doesn't have to be a mysterious force we cannot control. Whether we're ruled by logic or by emotion, we can identify the EXACT reasons why we believe what we believe. The AA program and placebos work because positive thinking leads to success, America works because if we believe in it we'll work towards achieving it, and our financial system isn't working because interest is the root of all evil. There's a whole spectrum of belief, from absolute knowledge backed by scientific evidence on one end to blind faith backed by emotional zeal on the other.

      It's no coincidence people like Hitler, L. Ron Hubbard of Scientology and Jim Jones of Jonestown appeal directly to people beliefs. Forget what you already believe, accept my version of the truth instead. From wikipedia, on the ritual suicide in Jonestown:

      Jones made reference to the cries and screams: "I don't care how many screams you hear, I don't care how many anguished cries, death is a million times preferable to ten more days of this life. If you knew what was ahead of you -- if you knew what was ahead of you, you'd be glad to be stepping over tonight." However, survivor Odell Rhodes stated that while the poison was squirted in some children's' mouths, there was no panic or emotional outburst and people looked like they were "in a trance".

      Dude, you've just scratched the surface with the "abusal of ancient words...". Take a look at ChangingMinds.org. There's a whole system of values that cause people to believe what they do. This site is all about techniques to change these beliefs.

  72. JFS and Reiser have well-suited workloads by Anonymous Coward · · Score: 0

    All DB folks love JFS due to it's extent-base allocator (continuous chunks of up to 4MB iirc).
    I've done enough benchmarks and JFS outperforms ext3 by around 10-20%.
    Further, when hosting big files the space efficiency is notable (no more block lists, but only a few extent entries).
    JFS had a small problem in 2.4 when there was a memleak in the metadata paths so a fileserver would run out of memory after a couple of weeks. But I traced that down together with Shaggy@IBM.

    XFS is also nice, but the lack of a proper userspace fsck has turned me away there.

    Also, come back to me when ext3/ext4 has *dynamic* and not static, pre-allocated inodes. I have numerous data sets where we'd run out of inodes because we'd have to host a LOT of small files with a LOT of directories (simulations etc).
    Reiserfs outperforms all of them here.
    I personally run all home and group drives on reiser due to its space efficiency for smaller files and short fsck times (yes, we are paranoid and run regularly full fscks on our TB data partitions! And you should, too)

    Don't get me wrong - ext3 has proven to be a good filesystem for the casual user and for the system partitions. But for serious workloads there are better alternatives.

    When will people actually write articles about filesystems that matter? The linked blog is just a horribly assorted list of cliches.

  73. Re:What is more needed is a modern multi-platform by BrentH · · Score: 1

    NTFS-3g in Linux (and OSX, and probably all other) is ridiculously fast. Benchmarks: http://www.ntfs-3g.org/performance.html and in my personal experience I can't tell when I'm on my ext3 partition and when on the NTFS partition. The best thing is the excellent crossplatform support, it just works everywhere (if NTFS-3g is available of course).

  74. Re:The article is incorrect with respect to ext4.. by lilo_booter · · Score: 1

    Confused - what's OOP got to do with this?

  75. Re:The article is incorrect with respect to ext4.. by kasperd · · Score: 1

    this, of course, assumes that your operating system has an execute bit; if it doesn't, that's a bigger problem

    On Windows, the extension is the execute bit. At least that is more or less the case. I don't know at what layer that is implemented. It is a convention inherited from DOS. In DOS the semantics of the execute bit (extension) was implemented by the shell rather than the kernel, might still be the case in Windows. Might not be the best idea, it is just the kind of heritage that is hard to get rid of.

    Using the same action (the double-click) both to "run" and to "open" -- which are two very different actions -- is probably responsible for the vast majority of user-propagated malware today.

    Good point. I hadn't thought about it that way. But thinking about it a bit more I realize that when working from the command line, those two really are different. The main reason you don't unintentionally run an executable from the command line is that there is a difference between typing less virus.txt and ./virus.txt.

    --

    Do you care about the security of your wireless mouse?
  76. Re:The article is incorrect with respect to ext4.. by kasperd · · Score: 1

    and for an executable one would expected it to be "run."

    Maybe it would be ok if you had to go through some additional steps the first time you run an executable that wasn't installed on the system. A dialog that asks you if you really want to run this program would be a step in the right direction. (But we know that such a solution is too convenient, many users really need something more inconvenient). You could open a window explaining that to run this program you have to right click on the icon and choose to mark it executable.

    There are different ways to keep track of what files are ok to be executed. You could have an execute bit on the file. You could have a list of accepted file paths stored somewhere, or a list of accepted file hashes.

    --

    Do you care about the security of your wireless mouse?
  77. Re:The article is incorrect with respect to ext4.. by squiggleslash · · Score: 1

    Why would you right click on it? Why wouldn't the operating system tell you what type the file has automatically?

    You're insisting we have to make the file type part of the filename because of some false assumption that the operating system can and/or will only ever tell you the name of the file, that for some reason the name would only ever be the exposed metadata presented to the user. There is no reason why this would be the case.

    The name is the name. There is no reason for the name to contain the file type any more than it should contain the date the file was created or the name of the person who created it. One could come up with equal justifications for either of those pieces of metadata to be part of the filename, and if it were the case that some third rate single-tasking binary loader like CP/M had done just that, and we were still using filesystems based upon said operating system's quirks, I don't doubt many people - probably yourself included - would come up with complaints about us moving that metadata out of the filename. "But how am I supposed to know who created this file?" they'd cry.

    It's not the right place for this data, especially in a world where 50% of the population have no idea that .EXE is a program not a document, and 90% have no idea that .BAT is likewise.

    --
    You are not alone. This is not normal. None of this is normal.
  78. Oh nice, another blog whore by skulgnome · · Score: 1

    I suggest everyone tag this article "whore", "whoring", "blogwhore" and "blogwhoring". Because that is what it is.

  79. Re:The article is incorrect with respect to ext4.. by skulgnome · · Score: 1

    It's about a silly ideal of "code going with data". To anyone reasonable, on the Intarbutts that's a bloody horrible idea just because of the security implications of running code downloaded from J. Random Webpage on the client computer.

    Yet these OOP wankers call structs and arrays "plain old data", as though being time-tested and proven over some fifty years was suddenly a bad thing because it isn't the Latest New Thing. Apparently some people will do anything to have more mechanisms, particularly ones that dictate policy, in the name of hypothetical "flexibility" that never appears or is required.

  80. Re:The article is incorrect with respect to ext4.. by supradave · · Score: 1

    An extension is an easy way to organize something. I can write a script that say find .jpg and move them to my images folder. If I need to use metadata, my job just got harder because I have to know now what I'm looking for.

    Granted, if you're complaining that a .zip shows up as a zipped icon based only on .zip, then yes, it's a bit absurd.

  81. Re:Ext3 is a hack that is popular b/c of ext2 supp by skulgnome · · Score: 1

    No, resizable implies that the size can be changed. It does not imply both making it larger and smaller; in fact, a filesystem that can only be shrunk would qualify as resizable.

    You'll have to find another expression.

  82. Re:The article is incorrect with respect to ext4.. by drinkypoo · · Score: 3, Insightful

    Wouldn't it be logical to assume a filesystem developer has an idea on what the workload and hardware will be like _before_ writing his filesystem, then picking a benchmark that suits his ideas on what a filesystem is supposed to do?

    No, that would be illogical, unless again they were trying to craft bullshit benchmarks. The developer does not know how I will use the filesystem, and so any such benchmark is not useful to me. I also want to know how well the filesystem will perform if I have to perform some new task on it.

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  83. Re:The article is incorrect with respect to ext4.. by The+Mighty+Buzzard · · Score: 1

    That some people are idiots is no reason to do away with a convention that's been extremely useful to those of us who aren't.

    Sure, you could get operating systems to display the file type. But could you get EVERY operating system to use the same convention again? How about every email program, website, or file transfer application as well?

    Most importantly though, could you get bit of code everywhere to display the file type as instantly and unambiguously as foo.bar?

    You don't make changes just to make changes, Barak. You make changes when they're going to be useful enough to justify all the ass-pain they're going to cause.

    --
    Violence is like duct tape. If it doesn't solve the problem, you didn't use enough.
  84. Re:The article is incorrect with respect to ext4.. by leenks · · Score: 0, Flamebait

    Maybe it would be ok if you had to go through some additional steps the first time you run an executable that wasn't installed on the system. A dialog that asks you if you really want to run this program would be a step in the right direction. /p>

    You mean like OSX does?

  85. Re:The article is incorrect with respect to ext4.. by kasperd · · Score: 1

    You mean like OSX does?

    I don't recall seeing that on OS X. But then again, the times I have actually put a GUI program on an OS X machine can be counted on one hand. Turns out that for work a browser and a terminal will suffice most of the time. And the laptop came with firefox, terminal, and ssh client all installed.

    --

    Do you care about the security of your wireless mouse?
  86. The real solution is a least privilege model. by DamnStupidElf · · Score: 1

    Like Java or flash, it shouldn't matter where an executable comes from; the operating system should make it safe to execute by restricting what it can do. Give it no rights to the network, file system, and limited ability to draw things to the screen by default, and only allow privilege escalation by well defined user interface dialogs, and even then never a blanket permission to read or write to the entire file system, or to open up an unlimited number of network connections, or draw fake security dialog boxes on the screen.

    What is this, 1980 when a DOS program had full control over the entire computer? It's 2008, and it should be slightly easier to do real privilege separation.

  87. No xfs fsck? eh? by Booker · · Score: 2, Informative

    XFS is also nice, but the lack of a proper userspace fsck has turned me away there.

    Eh? Man xfs_repair(8)

    Just because it's not called "fsck" (and not run at boot time) does not mean that the functionality is not there when you need it.

    A crash does not mean you need to run fsck; that is why you pay the price for the journaling overhead, right? When xfs detects errors at runtime, run xfs_repair, and bask in the glory of "a proper userspace fsck."

  88. Re:The article is incorrect with respect to ext4.. by AttillaTheNun · · Score: 1

    The OP was retardo infinitium.

  89. Re:The article is incorrect with respect to ext4.. by Anonymous Coward · · Score: 0

    You mean like OSX does?

    OS X does not do anything of the sort.

  90. Re:The article is incorrect with respect to ext4.. by jsiren · · Score: 1

    All we need is a find(1) that can do something like this:

    find . -mime image/jpeg -exec mv {} /var/somewhere \;

    --
    Usage: km/h for speed (kilometers per hour); kph for very slow impulses (kilopond hours).
  91. Re:The article is incorrect with respect to ext4.. by leenks · · Score: 1

    Yes, it does - albeit new in Leopard, and only for downloaded applications (but that's the source of most new executables on most systems these days).

    Here is a guide on how to disable it... http://www.macosxhints.com/article.php?story=20071029151619619

  92. Re:The article is incorrect with respect to ext4.. by Markrian · · Score: 1

    I think transami was confusing ad nauseam with reductio ad absurdum.

  93. benchmarking tool? by CarpetShark · · Score: 1

    This is why if you want to do a fair comparison of filesystems, it is very difficult in the extreme to really do things right. You have to do multiple benchmarks, multiple workloads, multiple hardware configurations, because if you only pick one filesystem benchmark result, you can almost always make your filesystem come out the winner. As a result, many benchmarking attempts are very misleading, because they are often done by a filesystem developer who consciously or unconsciously, wants their filesystem to come out on top, and there are many ways of manipulating the choice of benchmark or benchmark configuration in order to make sure this happens.

    Isn't this kind of crying out to be automated?!

  94. That would still depend ... by freaker_TuC · · Score: 1

    ... on more factors than just a group of people, even if I know them very well.

    If there is a fire ready to toast my body, ok, I'll probably use the same exit wisely if no others are found.
    Again, if I believe I'm going to toast in 0-3 seconds like in the movies, it would be too late anyways to do stupid things ;)

    --
    --- I am known for the ones who want to find me on the net. Is that a privacy risk or a privilege? One might wonder..
    1. Re:That would still depend ... by Yfrwlf · · Score: 1

      I'm just saying I don't think it's stupid to follow others through a doorway, as far as you know there are greener meadows on the other side.

      --
      Promote true freedom - support standards and interoperability.
  95. Re:The article is incorrect with respect to ext4.. by Samah · · Score: 1

    It's not to specify a data type, it's to give the user (and file browsers) a hint as to what it is. I can call my zip file "foobar" if I want, but only the person who created it would know what it contains (unless it were documented somewhere, or a browser pre-emptively opens the file to determine it).

    Say I create a directory with some extensionless© files in it, and I run the following command:

    /bin/ls -1 > files

    I now have a text file (although only I know it's a text file) with a list of files that only I know what they are (or maybe I don't!)

    --
    Homonyms are fun!
    You're driving your car, but they're riding their bikes there.
  96. Re:The article is incorrect with respect to ext4.. by enoz · · Score: 1

    Windows XP already does something this for downloaded executable files. It seems to have been introduced in SP2, and will popup the warning before running an untrusted program:

    "The publisher could not be verified. Are you sure you want to run this software?"

  97. Re:Choose ONE! by Hucko · · Score: 1

    And seriously, what kind of fucking ridiculous name is Tux3?!

    The third in a series?

    --
    Semi-automatic amateur armchair Australian philosopher; conjecture ready at any moment...
  98. Re:The article is incorrect with respect to ext4.. by dougisfunny · · Score: 1

    Well, apparently a lot of programmers think putting the type that something is, in the name of whatever.

    Like strName. Its just useful to know what you're dealing with in general.

    --
    This is not the funny you're looking for.
  99. I don't know... by frank_adrian314159 · · Score: 1

    "...it seems somewhat tragic that JFS or even XFS didn't gain the traction that ext3 did to pull us through the 'classic' era...

    I always had high hopes for Reiser FS... it was a real killer.

    --
    That is all.
  100. Re:The article is incorrect with respect to ext4.. by donaldm · · Score: 1

    You are definitely off-topic here since the discussion was on Linux file-systems, however you have brought up an interesting argument that has been running over the years. In reply I have always found that so called file extensions are meaningless in a Linux/Unix environment and in a MS Windows environment the dependency on file extensions is not a good way of managing your files, in fact this dependency on file extensions is one of the main reasons why many MS Windows users get fooled into running what they think is an innocuous file.

    When using a GUI browser in Linux/Unix you can normally see what type of file you have because many decent browsers use the meta data in the file not the file extension and display the information accordingly. It is even easier on the command line where the command "file *" is a great way to list the attributes of each file. You can list thousands of files quickly by doing this.

    To say you need to know how to distinguish executables from a normal files, in Linux/Unix you can see this in a decent browser or just use the command "ls -l" although I would definitely query why do you want to mix executables with non executables, since in Linux/Unix this is a poor approach to file management.

    I have always found that running a command via a browser is risky unless you know what that command does. Executables in Linux/Unix rarely use the "exe" extension and are normally located in clearly defined directories such as "bin", "sbin" and even "lbin".

    Being a mild Grammar Nazi I think having a capitol letter at the start of a new paragraph is a better way to express yourself :-)

    --
    There ain't no such thing as proprietary standards only proprietary formats. Standards are by definition open.
  101. EXT3 does have some issues by ModelX · · Score: 1

    A few months ago I noticed quite a serious problem with Ext3. A power outage caused an error on the primary Ext3 superblock. Ext3 driver has a problem with the specific SATA error and refuses to mount filesystem in normal mode and displays some cryptic SATA errors instead (but it does mount in recovery mode). FSCK is unable to fix the error, even when feeding it the correct offsets of superblock copies, because it gets thrown off course by the same SATA read error and it quits before even starting any work using alternative superblock copies. So a single sector error causes you quite a big problem, practically you are forced to copy the partition to fix it quickly, not to mention the time wasted to figure out what's going on.

  102. Re:The article is incorrect with respect to ext4.. by wezeldog · · Score: 1

    Not exactly Object-Oriented Programming, but IBM had this concept on the Series i (AKA AS/400) for some time now :http://en.wikipedia.org/wiki/AS/400_object. Best command line interface ever...

  103. Re:The article is incorrect with respect to ext4.. by Mr.+Shiny+And+New · · Score: 1

    So is totally unreasonable to look at existing workloads that perform badly, then create a new filesystem optimized for those workloads, then benchmark against those workloads? Maybe the developer doesn't know how YOU will use the filesystem but if you don't know for what kinds of work it was optimized, you might be using the wrong tool for your new task.

  104. Re:The article is incorrect with respect to ext4.. by Anonymous Coward · · Score: 0

    "Being a mild Grammar Nazi I think having a capital letter at the start of a new paragraph is a better way to express yourself :-)"

    Fixed it for you.

  105. Re:The article is incorrect with respect to ext4.. by chrish · · Score: 1

    BeOS used human-readable MIME types to specify file types. They were automatically assigned to new files by the system, using magic numbers and falling back to the extension if magic wouldn't do it.

    --
    - chrish
  106. Re:The article is incorrect with respect to ext4.. by Sloppy · · Score: 1

    There's some convenience in having type be part of the name. Do you want to type rm *.o or rm --filetype=compiled_binary *?

    --
    As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
  107. Re:The article is incorrect with respect to ext4.. by drinkypoo · · Score: 1

    The benchmarks are useful but still misleading in many cases. It's okay to say "this filesystem performs like this on this workload" but all too often the results are used to say "mynewfs is 100 times faster than yourmamasoldfs!" when in truth it's only 100 times faster at setting extended attributes or something. A useful benchmark will at least show how a filesystem holds up under non-optimal conditions, so that you don't have a massive fail when the system is just a little bit "off".

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  108. Re:The article is incorrect with respect to ext4.. by Kadin2048 · · Score: 1

    OS X puts up a warning when you open a document and it begins, as a result of being associated to a particular app, to run a program that you've never used before. If you explicitly launch an application I don't think it warns you; it assumes you know what you're doing. But since opening a document could have the effect of launching an application you didn't mean to open, and this might be non-obvious even if you're a careful user, it warns you if it's never been run before.

    I'm not sure it's really meant as a security feature as much as a convenience one -- I typically get it as a result of just having installed some utility that's associated itself with a wide swath of common file types.

    --
    "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
  109. Re:The article is incorrect with respect to ext4.. by Mr.+Shiny+And+New · · Score: 1

    Sure, a benchmark can be misunderstood or misinterpreted and vendors often count on this to work in their favour. But that doesn't negate the fact that the filesystem is 100x faster at something, and if your workload depends on setting extended attributes (to use your example) a lot, that may matter significantly.

  110. Re:What is more needed is a modern multi-platform by badkarmadayaccount · · Score: 1

    Uhh, NTFS has ACLs just like *NIX... Though I agree with the rest. Ironic, the M$ solution the most portable, and all that...

    --
    I know tobacco is bad for you, so I smoke weed with crack.
  111. Re:Choose ONE! by Hans+T.+Reiser · · Score: 1

    ...your kernel command line

    Uhh, bash is integrated in the kernel? Interesting...~

  112. Re:The article is incorrect with respect to ext4.. by leenks · · Score: 1

    How on earth is this flamebait? Leopard does exactly that for newly downloaded executables!

    Sigh.