Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
OS X Businesses Operating Systems Data Storage Sun Microsystems Apple

ZFS Shows Up in New Leopard Build 351

Udo Schmitz writes "As a follow-up to rumours from May this year, World of Apple has a screenshot showing Sun's Zettabyte File System in "the most recent Build of Mac OS X 10.5 Leopard". Though I still wonder: If it is not meant to replace HFS+, could there be any other reasons to support ZFS?"
This discussion has been archived. No new comments can be posted.

ZFS Shows Up in New Leopard Build

Comments Filter:
  • Zettabyte? (Score:3, Informative)

    by bigtomrodney ( 993427 ) * on Monday December 18, 2006 @09:04AM (#17285270)
    Isn't the term 'Zettabyte File System' actually inaccurate now? I thought they dropped that and ZFS now only remains as a pseudo initialism [wikipedia.org]
  • Exciting! (Score:4, Interesting)

    by statusbar ( 314703 ) <jeffk@statusbar.com> on Monday December 18, 2006 @09:06AM (#17285288) Homepage Journal
    Now that Vista is finalized, expect Apple to show more and more of the 'secret' features of leopard!

    --jeffk++
    • by 0racle ( 667029 )
      I'd just like a release date.
      • Mac OS X "Leopard" will officially comes out of Spring 2007. However, there are rumors that "Leopard" will be released at the MacWorld Expo in early January to steal Microsoft's thunder for Windows Vista.
    • by DrYak ( 748999 ) on Monday December 18, 2006 @09:11AM (#17285328) Homepage
      Now that Vista is finalized,

      Because if Apple showed them before, there was a risk that Microsoft tried to announce them as future features in their soon-to-be-released perfect Windows Vista ?
      • by statusbar ( 314703 ) <jeffk@statusbar.com> on Monday December 18, 2006 @09:20AM (#17285432) Homepage Journal
        Nah, Microsoft would never do anything like that... They are a respectable company that does not misrepresent their products.

        --jeffk++
        • Re: (Score:3, Insightful)

          by Sancho ( 17056 ) *
          That said, there's zero chance (IMO) that Microsoft would add ZFS to Vista. They already dropped their transaction-based filesystem in order to get Vista out the door this decade. Adding ZFS support (much less using it as the default or recommended FS) would simply take too long, even if Apple had announced support a year ago.
    • Too true, now when MS rolls out their new ZFS filesystem in Vista we can all point and laugh, saying "They just copied Apple again!"
  • copy-on-write (Score:4, Insightful)

    by Mr2cents ( 323101 ) on Monday December 18, 2006 @09:15AM (#17285366)
    FTA:

    Makes use of copy-on-write; rather than overwriting old data with new data, it writes new data to a new location and then overwrites the pointer to the old data
    Wouldn't that pose a problem for mmap?
    • Re: (Score:3, Informative)

      by MotownAvi ( 204916 )
      Why? In today's world, writing to an mmap-ed file most certainly doesn't hit the disk for each write. Instead, a block of memory from the buffer cache is used to hold the changes. The only difference is that instead of being backed (VM-wise) by the swap file, the block is backed by the mmap-ed file.

      There's no real change here for ZFS, and it's unlikely that anything at the memory cache level even knows about the copy-on-write-ness of ZFS (or even cares).

      a
    • Re:copy-on-write (Score:5, Interesting)

      by TheRaven64 ( 641858 ) on Monday December 18, 2006 @09:29AM (#17285566) Journal
      No. Mmap lives above the filesystem layer. Unless you are doing mmap on the block device, in which case you should realise that not everyone works for oracle...

      Mmap simple maps pages of a disk file into memory. If the disk file changes its physical location then the mapping is updated. When you call mmap, you give it a disk file, an offset, and an extent. It is up to the VFS layer to translate this into physical mappings. LFS has the same issues, and these were solved well over a decade ago.

      If you invoke mmap with MAP_PRIVATE, this actually makes it easier; if someone else updates the file then you just keep the existing mapping.

      • Re: (Score:3, Informative)

        Right.

        Similar issues exist without problems when mmap()ing files from NFS. You cannot update just a few bytes with NFS, you have to write the whole disk block out.

        I'm fairly confident that the current "standard" way to implement mmap at the moment is to update the pages, mark them dirty, and let the VM subsystem write them to disk.

        I haven't had to look at mmap's implementation in a long time, though.. but IIRC Rich Teer and/or Adrian Crocroft had good articles about it a few years back.

        Obviously, I arrive
    • Re:copy-on-write (Score:5, Interesting)

      by Midnight Thunder ( 17205 ) on Monday December 18, 2006 @10:29AM (#17286328) Homepage Journal
      FTA:

      Makes use of copy-on-write; rather than overwriting old data with new data, it writes new data to a new location and then overwrites the pointer to the old data

      Wouldn't that pose a problem for mmap?


      It may do, but like many things there are alternative approaches.

      From working on embedded hardware with flash memory, this makes me wonder whether possible addition of ZFS is meant to be for flash storage? Let me explain: flash memory has a fairly limited write-count, relative to hard disks, so to compensate for this memory is written in a circular fashion, to ensure that a given sector is written the least often possible. In addition to this, from what I can tell, Apple's main sales point are low profile computers and portables. The latter would benefit from flash storage as means of extending battery life, even if it is for a certain elements, such as for the OS which is accesed far more frequently than anything else on disk. Given this I wouldn't be surprised to see flash memory in future models of Apple portables, using ZFS, while HFS+ is still used for the hard disks.

      This is pure speculation, but I feel that it has a high probabilty of being near the mark.
      • Re: (Score:3, Informative)

        by caseih ( 160668 )
        ZFS currently wouldn't work very well for flash storage systems under a certain size because of initial overhead. ZFS requires each device to be at least 64 MB in order to be added to a pool. Also the minimal overhead of ZFS is 32 MB. In other words if you take a 64 MB disk, format it to ZFS, you'll only have 32 MB of space available. As you add devices to the pool, this overhead grows, but at a pretty small rate.
    • Secure Delete? (Score:4, Insightful)

      by HTH NE1 ( 675604 ) on Monday December 18, 2006 @11:23AM (#17287232)
      Wouldn't that pose a problem for mmap?

      I think it would pose a problem for secure deletes. Try to obliterate a file by overwriting it with garbage, you end up writing somewhere else instead? Would the next overwrite attempt get the original location or would you have to write enough garbage to cycle over all the free space of the volume? Considering how large these volumes can get, that's a lot of boiled oceans [wikipedia.org] for a multi-pass secure delete.
  • What a moron (Score:2, Insightful)

    by Anonymous Coward
    "Though I still wonder: If it is not meant to replace HFS+, could there be any other reasons to support ZFS?"

    Duh... It's called compatibility.
    • Re:What a moron (Score:5, Insightful)

      by Udo Schmitz ( 738216 ) on Monday December 18, 2006 @09:34AM (#17285610) Journal
      It's called compatibility.

      Wouldn't full NTFS support (or well, support for any FS more in use then ZFS today) make more sense?
      • Re:What a moron (Score:5, Insightful)

        by metamatic ( 202216 ) on Monday December 18, 2006 @09:56AM (#17285900) Homepage Journal
        Wouldn't full NTFS support (or well, support for any FS more in use then ZFS today) make more sense?

        Yeah, I mean it's not like NTFS is defined and controlled by an organization renowned for its hostility to other platforms, reluctant to document things in a way that other people can implement them, and scared of interoperability, is it?

    • Re:What a moron (Score:5, Informative)

      by iPaul ( 559200 ) on Monday December 18, 2006 @11:33AM (#17287370) Homepage
      You both miss the point of HFS+ and ZFS. In Solaris ZFS has not replaced UFS. ZFS is an elegant way to manage large amounts of storage tied together with inexpensive and simple SATA drives. If you have one disk in your Mac, ZFS probably will not be your choice. HFS+ will work very well and be very easy to manage. A file server with 3 or 4 750 GB drives however, might be cut up so that part of the storage is mirrored for safety, limited for certain uses, and spanned over drives for size. For example, 3 750's could be divided into 1 TB unmirrored storage, 250 GB mirrored, a temp area of up to 100GB and the rest (650+ GB depending on temp are usage) held in reserve. In addition ZFS does quite a bit of error checking on the data to avoid any possible corruption during reads. However, it will never replace HFS+ on an iMac for your average user.
    • Plus, as I understand it, you cannot boot from a ZFS volume -- which would make it pretty hard to run your OS on.

      I think this is a first step. Initial ZFS support now for non-boot volumes and then when boot volumes are supported, they have the option to move to the new format.
  • by ShyGuy91284 ( 701108 ) on Monday December 18, 2006 @09:24AM (#17285474)
    I will be soon converting my Linux server to Solaris just for ZFS. Although ZFS may not terribly useful on a normal desktop, on a server, it's very powerful.... The idea of parity data actually being used actively to ensure data isn't corrupted is brilliant imho. So is the idea of on-the-fly recovery (I remember a video of some guy writing 30 megs of junk to a partition using dd, ZFS detecting it, and repairing it). *ends rant since all this can be read up about online*
    • I, for one, would really like to see the Apple guys create an enterprise-class server. The XServe gets close, but fails as it is missing a OOB management processor (see HP's ILO for an example of how to do it right) and requires funky button pushing operations to do some things. No, ILO is not the same as an IP-KVM or serial console, which only handle 50% of all the functionality needed.
    • by kestasjk ( 933987 ) * on Monday December 18, 2006 @10:53AM (#17286686) Homepage
      It sounds good, but I think migrating for it just a tad extreme given that it will be implemented for Linux pretty quickly. We're talking about neat new features here, it'll re-enforce or make easier backups and redundancy, but it's not a to-die-for solution that will solve all your problems. There's no way I'd drop a fully configured server installation which does what I need for a new filesystem.

      By the way it's nice to see dtrace, open source Java, and now ZFS coming out of Sun recently. I almost feel sorry for how little they get out of a lot of their innovations, they remind me of Bell Labs just before they died.
      • Re: (Score:3, Informative)

        by tbuskey ( 135499 )

        [ZFS] will be implemented for Linux pretty quickly.

        *sigh*. I wish. ZFS is being implemented on FUSE. This automatically creates limitations in performance and function (no root ZFS). IMO ZFS on FUSE will be a no starter in production.

        I don't think we'll see ZFS in the kernel proper either, given the history of incorporating XFS and ReiserFS 4. Along the same lines, DTRACE will probably never make it in. It's being cloned in the form of Systemtap.

        Meanwhile, FreeBSD has been porting ZFS and DTRAC

    • Re: (Score:3, Insightful)

      Indeed, we may see Mac OS X Server supporting default ZFS before Mac OS X proper. It would make sense to deploy it first in a limited market with technical expert users as your target market.
  • For some reason... (Score:2, Interesting)

    by uohcicds ( 472888 )
    ...the words "Time Machine" are jumping up and down in front of my face trying to attract my attention. I can't think why that might be.
  • by qwertphobia ( 825473 ) on Monday December 18, 2006 @09:24AM (#17285490)

    If it is not meant to replace HFS+, could there be any other reasons to support ZFS?"
    Well, OSX 10.4 already supports FAT16, FAT32, and HFS, HFS+ (case sensitive and case-insensitive) and UFS. I don't see any obvuious conclusion that HFS+ is on the way out. Now if the OSX kernel AND os both support a ZFS-formatted partition as a boot partition, we might find it as an accceptable replacement, but otherwise I would think ZFS will be added for large enterprise SAN RAIDs and such.
    • by numbski ( 515011 ) *
      I hate to be pedantic, but despite claiming UFS compatibility, the UFS that OSX uses is incompatible with everyone else. I tried formatting a UFS1 volume in FreeBSD, OSX wouldn't recognize it. Tried doing the same on OSX, FreeBSD couldn't read it. :\

      I forget the reason now, but point is, UFS it may claim to be, but if you're using UFS for compatibility, sucks to be you. :(
      • Re: (Score:3, Insightful)

        by larkost ( 79011 )
        Actually, if you are using UFS on any platform for "compatibility", then "sucks to be you". NeXT's/Apple's version may be a little farther out than other implementations, but UFS in general suffers from many mutually incompatible variants. In fact it is better to assume that any compatibility is purely accidental, you will have a better expectation level that way.
        • by makomk ( 752139 )
          Actually, if you are using UFS on any platform for "compatibility", then "sucks to be you". NeXT's/Apple's version may be a little farther out than other implementations, but UFS in general suffers from many mutually incompatible variants. In fact it is better to assume that any compatibility is purely accidental, you will have a better expectation level that way.

          Yeah - Linux lists 8 different supported or semi-supported variants (which have to be selected between using a mount option - no auto-detectio
      • I forget the reason now, but point is, UFS it may claim to be, but if you're using UFS for compatibility, sucks to be you. :(
        Bummer... I have to say I only used it once, as an experiment on a test server, and it was reinstalled on an HFS+ partition soon after. So I admit to using it, but I can't say I have much experience using it.
    • It supports a few other file systems too. Including read-only on NTFS.

      http://www.kernelthread.com/mac/osx/arch_fs.html [kernelthread.com]

  • Obligatory (Score:3, Informative)

    by value_added ( 719364 ) on Monday December 18, 2006 @09:25AM (#17285498)
    A clicky to the Wiki article on ZFS [wikipedia.org].
  • by TheRaven64 ( 641858 ) on Monday December 18, 2006 @09:25AM (#17285504) Journal
    A few years ago, I sat down and worked out exactly what I thought a filesystem should do, and how I would implement it. At the time no filesystem came close. Then Sun released ZFS. Real documentation on it is hard to find (behind the marketing hype), but when I did track it down I discovered two things:
    1. They had implemented everything I thought they should, and
    2. That only accounted for about 40% of the features of ZFS.
    Calling it the last word in filesystems might be hyperbole, but I expect ZFS to last a good 10-20 years, which is quite respectable for a filesystem, and I wouldn't be surprised if it lasted longer. Is it a replacement for HFS+? Not yet.

    HFS+ is a very nice filesystem for single user systems with a single disk. It implements journalling, has reasonable performance, and has good metadata support. For the average users at the moment, the only real advantage of ZFS would be snapshots, and these are not too difficult to implement for other filesystems.

    ZFS, however, is much better when you have multiple physical disks. At the moment, only the top-end Macs have more than one disk. This is likely to change in two ways:

    1. Cheap flash,
    2. Network storage
    For a home user, ZFS could handle backups trivially by plugging in a large flash drive and adding it to the pool. I suspect this will be one mechanism Time Machine will use. Due to the way ZFS works, you can just mirror a part of the directory tree (e.g. /Users/aUser) onto the external disk. With a big external drive, you could mirror the entire disk onto it and also save snapshots (another Time Machine feature...). The same could be done with network storage. With the current price of hard drives, I wouldn't be surprised if .Mac started offering 10-20GB of storage space for remote backups using this mechanism (take a look at the NFS4 integration in ZFS to see how this could be done).

    ZFS is not needed as a replacement for HFS+ in 2007, but it probably will be in 2008-9. ZFS is a 128-bit filesystem, which means it is designed to last for a long time. We will probably never need a 128-bit filesystem (unless we actually want to build hard drives the size of planets with single-atom sectors), but we will need a 65-bit filesystem once we get to around 10 Exabytes. This won't happen with single drives for a while, but it will with RAID arrays.

    • by laffer1 ( 701823 )
      I suspect it was added to 10.5 for Mac OS X Server! I'm sure home users could eventually need it, but I'm sure an xserve is a data center attached to an xserve raid might be a better target. Lets face it, HFS+ isn't going anywhere just yet. They also include UFS support which is sometimes used on servers as well. I'm interested in this for the CS servers I administer and not for any client uses at this time.

      Most (if not all) posts seem to direct this to a Mac Book Pro or something. I don't get it.
    • by BeerCat ( 685972 )

      We will probably never need a 128-bit filesystem (unless we actually want to build hard drives the size of planets with single-atom sectors)


      Which would spend 10 million years to come up with "What do you get when you multiply six by nine" [wikipedia.org], no doubt
    • I don't think anyone has suggested it for notebook or typical desktop computers. I would imagine that HFS+ will scale well for a long time.

      I think ZFS is probably for their servers and workstations, especially when you connect to stuff like the Xserve RAID.
  • by Bonker ( 243350 ) on Monday December 18, 2006 @09:26AM (#17285510)
    The tech behind ZFS [sun.com] at least sounds very impressive, but I have to wonder how useful it is for workstation drives.

    I've never found plain-Jane posix permissions to be all that useful on anything other than the most basic of server environments.

    HFS has going for it all the fun stuff we've come to love apple for, such as transparent file customization like icons, labels, meta data, and whatnot through resource forks. I assume that these can be made to work with ZFS by making hidden files.

    What I'd really like to see is both that kind of functionality along with NTFS's really excellent ACL permission system implemented. ACL permissions are a godsend for people responsible for running a file store that's used by humans as opposed to automated processes. NTFS also has a great deal of capacity for meta-data, although not to the same level as HFS.

    NTFS is one of the few worthwhile things that's ever come out of Redmond. I wish more people would spend a bit learning from it without throwing it away simply because it's MS bloat.

    • by pesc ( 147035 ) on Monday December 18, 2006 @10:03AM (#17285990)
      NTFS is one of the few worthwhile things that's ever come out of Redmond. I wish more people would spend a bit learning from it without throwing it away simply because it's MS bloat.

      I wish MS would let us. NTFS is worthless if you don't run Windows. And it hinders interoperability with other systems because its implementation and disk layout is secret/patented.

      Why, do you think, there is no stable implementation that can write NTFS volumes (other than the MS implementation)?

      Contrast this with ZFS which is released under an open source license.
    • by UtucXul ( 658400 ) on Monday December 18, 2006 @10:04AM (#17285992) Homepage
      NTFS is one of the few worthwhile things that's ever come out of Redmond. I wish more people would spend a bit learning from it without throwing it away simply because it's MS bloat.
      I think the negative opinion some people (including me) have of NTFS come not directly because it is from MS, but come from the incompatibility with everything else. I can't (reliably) read/write to it from a Mac, Linux, or Sun. That leaves only people totally in the MS camp able to use it. It may have some nice technical features, but I can't ever see them, so it is a little hard to be impressed or care about them too much.
    • by pesc ( 147035 ) on Monday December 18, 2006 @10:09AM (#17286080)
      I've never found plain-Jane posix permissions to be all that useful on anything other than the most basic of server environments. ...
      What I'd really like to see is both that kind of functionality along with NTFS's really excellent ACL permission system implemented.


      I wish you could read more about ZFS before suggesting how you could improve it by adding ACLs. It already supports them!

      http://blogs.sun.com/marks/entry/zfs_acls [sun.com]
    • by More Trouble ( 211162 ) on Monday December 18, 2006 @10:13AM (#17286136)
      HFS has going for it all the fun stuff we've come to love apple for, such as transparent file customization like icons, labels, meta data, and whatnot through resource forks. I assume that these can be made to work with ZFS by making hidden files.

      You assume correctly, since most of that business is taken care of with Bundles. This is why it more or less works on UFS, which is already supported on Mac OS X, and has been for years. Forks & whatnot are really a legacy idea.

      What I'd really like to see is both that kind of functionality along with NTFS's really excellent ACL permission system implemented.

      That's funny! The HFS+ ACL system is Microsoft's ACL system, much to the chagrin of the Unix community.

      :w
    • I assume that these can be made to work with ZFS by making hidden files.

      Using hidden files for the resource forks would also make backups WAY WAY easier and more reliable than what is available now [plasticsfuture.org].
    • Re: (Score:3, Interesting)

      What I'd really like to see is both that kind of functionality along with NTFS's really excellent ACL permission system implemented.

      Mac OS X Server 10.4 (Tiger) already has this. See: http://www.apple.com/server/macosx/fileprint.html [apple.com]

      There is a "File Services" white paper linked off of he above page but here is the relavant marketing:

      New in Mac OS X Server v10.4 are access control lists (ACLs), providing flexible file system permissions that are fully compatible with Windows Server 2003 Active Directory

    • by Circuit Breaker ( 114482 ) on Monday December 18, 2006 @11:00AM (#17286814)
      A deadline scheduler (a-la ZFS) is wonderful when multitasking disk heavy apps. That does not happen too often on a laptop (or a desktop, for that matter), but I've had Windows (and on rare occasions, even Linux) work horribly under such load. ZFS' "worst case behaviour" is supposed to be significantly better than any other system in use today.

      NTFS's ACL system is horrible. While it has a lot of descriptive power, it's a pain to manage, the result being that it is almost never used. The old Unix model, while simple, is easy to manage, and as a result is often set up reasonably. Novell's "Trustees" model works much better than either, but for some reason it wasn't adopted by others.

      NTFS is slow and inefficient, fragments horribly, and lacks fundamental features such as proper symlinks (and only supports directory hardlinks). It has a reasonable journal implementation, and it supported large files before other systems did, but it's very outdated and does not compare favourably with any of the modern high performance file systems.
    • I've never found plain-Jane posix permissions to be all that useful on anything other than the most basic of server environments.

      And what kind of expert are you exactly?

      What I'd really like to see is both that kind of functionality along with NTFS's really excellent ACL permission system implemented.

      NTFS ACLs are confusing. As useful as they may be, real human beings don't know about them or care about them. You know, the kinds of real human beings that use workstations.

      Never mind that ZFS actually does sup

  • by FunWithHeadlines ( 644929 ) on Monday December 18, 2006 @09:26AM (#17285522) Homepage
    See this Ars Technica article [arstechnica.com] where John Siracusa said back in August:
    "For Mac geeks of a certain persuasion, the first mention of a soon-to-be-revealed feature of Leopard during the WWDC keynote set off a mental chain-reaction. That feature was Time Machine, and the name alone was enough to cause one particular phrase to hammer in the mind of many people, including me: "New file system in Leopard!" It was even a bingo square. In fact, it was my personal favorite bingo square, and the one that I most looked forward to marking.

    But let's back up a bit. Why should the mere name "Time Machine" scream "new file system" to anyone? And why the excitement about a new file system in the first place? What's wrong with HFS+, Mac OS X's current file system? It's got journaling. It supports arbitrarily extensible metadata. It can even be case-sensitive to satisfy the Unix geeks. Does Mac OS X really need a new file system?

    In a word, yes. HFS was a state-of-the-art personal computer file system when it was first released...twenty-one years ago. HFS+ is only eight years old, but it's built on many of the design decisions of HFS. Progress marches on. Today, there are new capabilities that the best modern file systems have, but that HFS+, even with all of its recent additions, does not. Here's a short list.

    • Efficient storage and handling of very small files.
    • Logical volume management through a pooled storage model.
    • Improved data integrity using checksums on all data.
    • Snapshots.

    So it's about the snapshot ability of ZFS, and that's exactly what will be needed for Time Machine [apple.com].

  • In this forum [insanelymac.com] they duiscuss build 9A326 and ZFS. Some posters mention, that you can choose ZFS but it doesn't work (yet) and/or that you can't install OS X on it.
    And then I notice [wikipedia.org] that the official name of ZFS is ZFS these days: "The name originally stood for "Zettabyte File System", but is now a pseudo-initialism." Someone should tell Apple.
    P.S.: What about my rewritten in cocoay goodness Finder? Pretty please?
  • ZFS + Timemachine (Score:3, Interesting)

    by jbolden ( 176878 ) on Monday December 18, 2006 @09:31AM (#17285588) Homepage
    With ZFS we might be able to get some very powerful backup features into OSX. Most binaries files don't change most of their content, ZFS makes it possible to due meaningful differential backups on large binary files. So for example 200 versions of a word doc with sounds and pictures that got revised over 6 months get stored in maybe 3x the space of the last revision. Emails with the same attachments get stored in just a few k rather than taking a meg each.... If Apple has this all working together by 10.5 then TimeMachine will work far far better then people currently expect it to. A 50g drive will be backing up a terabyte of worth of files.

    • by cyclomedia ( 882859 ) on Monday December 18, 2006 @10:46AM (#17286582) Homepage Journal
      I've been wandering about this and am insanely curious: if ZFS really does intelligently copy on write how far can it take it?

      for starters, does the FS "know" that i've just clicked "Save As" in my word processor? what about copy and pasting a file back into the same directory to make a local copy? Also? is it just within variations on the same file? if i have a particular setup exe on my system but forget, and download it again to the desktop surely the FS has no initial way of knowing that they are one and the same, does some funky heuristic happen?

      basically: does the OS's read/write/copy/delete functionality have to invoke copy-on-write via a FS API or is it built in for every single sector-sized chunk that gets stuffed into the FS?

      the next question is the one in my subject: how therefore do you define "capacity"? if i've got a bunch of files that take up 700mb on a ZFS device and try to back up to a (Joliet) CD will i get a message telling me that the CD doesnt have room? i can imagine this scenario being unlikely with optimised binary data (jpegs and mpegs) but if i'm backing up a dev environment with autobackups (main.c,main.c.bak.001,main.c.bak.002,etc.) and manually created and dated directory tree "snapshots" (dev,dev_backup_2006-12-18,dev_backup_2006-12-01,e tc.) then this could probably happen quite easily.

      • by jbolden ( 176878 ) on Monday December 18, 2006 @02:44PM (#17290480) Homepage
        does some funky heuristic happen?

        Yes, I used something similar to ZFS for mass document storage a few years back. You do a complex checksum on the block level. Any two blocks with the same sum are the same. Each unique block is only stored once, though multiple files might link to it. You're right the file system doesn't know why you are using the same blocks over and over, but it doesn't care.

        if i've got a bunch of files that take up 700mb on a ZFS device and try to back up to a (Joliet) CD will i get a message telling me that the CD doesnt have room?

        Assuming you have repetitive block, yes.
  • by masklinn ( 823351 ) <<ten.nnilksam> <ta> <gro.todhsals>> on Monday December 18, 2006 @09:33AM (#17285598)

    if it is not meant to replace HFS+, could there be any other reasons to support ZFS?

    The answer is that it probably is meant to replace HFS+, but since ZFS is not bootable yet (including for Solaris 10) Apple can take the time to introduce ZFS, build tools for easier management, and let people get familiar with the FS before they have to drop HFS+.

    HFS' lifetime has already stretched far beyond what it should have, it's time for Apple to think of its next generation FS, and ZFS is an extremely promising FS with heaps of amazing features Apple has already started to integrate into its UIs with Leopard (Time Machine + ZFS Snapshots anyone?).

    ZFS also shows strong promises as both a home and a server FS.

  • ... because they want an extra edge in the server market? ... because they wanted to grab some free headlines?

    And last but not least: ... because an engineer was bored?

    On a side note, I've read a lot about how ZFS is supposed to be reliable and flexible as hell. Nowhere, however, have I found information about read/write performance. I guess it's a great filesystem for huge mission-critical datasets, but for anybody else? I have my doubts.

    Or can somebody enlighten me?
    • by geniusj ( 140174 )
      On Solaris I've seen greater read performance (less locking) with worse write performance. However, when you bring the management aspects of it into the picture and all the ease and flexibility it brings, it's worth the very small performance hit we saw with our workload (versus UFS).
    • On a side note, I've read a lot about how ZFS is supposed to be reliable and flexible as hell. Nowhere, however, have I found information about read/write performance. I guess it's a great filesystem for huge mission-critical datasets, but for anybody else? I have my doubts.

      It's not really that slow. Writing to the disk sounds bad, but when you understand that writing can occur less frequently with ZFS, it actually ends up feeling faster.

      It of course, doesn't hurt that HFS and UFS are both painfully slow to

  • by Bastian ( 66383 )
    While ZFS might be useful for supporting Time Machine, it's not necessary and I would think that if Apple were including it by default on all Leopard distributions (as they'd have to if it were the underlying technology for Time Machine), they'd probably be talking it up a little bit more right now.

    ZFS is still overkill for most home computing needs, so I'm not sold on it being the default filesystem for OS X installs. My first guess is that it's going to be an option for network-acceccible storage. Somet
  • From the article:

    "Finally the most important feature of data integrity os check summing and everything on ZFS is checksummed meaning zero data corruption."

    Umm , last time I looked checksumming merely told you if there WAS data corruption , it doesn't prevent it. Does ZFS has some other method to prevent data corruption (eg for a gone bad sector etc) or does it just flag a file as corrupted and leave it up to you what to do next?
    • Depending on the checksum type, it is indeed possible to recover corrupted data. For a concrete example, consider the case of RAID 5.
  • They already have UFS and don't make it really usable, even after making a big deal about it being updated to the latest version from FreeBSD in Panther. It's a shame, too, because while HFS+ has a lot of nifty features all of them could be emulated over UFS or ZFS or any other file system (by putting the hooks for applications like Spotlight in the vnode layer rather than the file system - the vnode layer already has most of the hooks Spotlight needs), it falls far behind UFS in terms of reliability.

    In fact HFS+ is *so* bad that if it wasn't for a couple of apps that absolutely freak out if they don't have their pet un-emulated feature I would have gone to UFS long since... even if I lost Spotlight completely. Until my Mac I had never run into a file system that wasn't so badly damaged as to be unbootable that coudn't be repaired by fsck... but apparently with HFS+ just running it "too full" can trash it, and I lost my system disk on my old G4 three months running because of that!

    So I wouldn't hold out any expectations of ZFS being implemented in any useful way. They already have better file systems than HFS+ and they're not using them.
  • could there be any other reasons to support ZFS

    Could it be that the guy was raised on Windows ? Or what ? I mean, in the real world, there are more file systems that the one which your OS uses by default. And adding native support for them is not a questionable move, it's an applaudible move.

    Hell, I remember what a happy day it was when I found crossmeta's xfs reading tools for Windows. Things like this shouldn't be a thing to raise an eyebrow for. What you all should raise your eyebrows for is why some OS
  • ...but if I were on a closed alpha or beta program, I'd be real cagey about posting screen shots. I think it wouldn't be that hard to embed a steganographic code on the screen so the company doing the beta would know who leaked. Is there some sort of random noise filter that would remove anything like that?
  • Mac OS X is really lacking a modern volume manager. ZFS adds this plus a whole lot of other data integrity/portability features. And it's open source. I hope this isn't just a rumor.

    I wonder if this was one of the "new APIs" they were talking about at the Time Machine session I attended...
  • by csoto ( 220540 ) on Monday December 18, 2006 @10:47AM (#17286604)
    I can imagine that using zfs send/receive to export/import pools would be an extremely efficient/safe method of replicating data. Perhaps some sort of ".mac mirror" could work. This would make Time Machine exceptionally useful, and I'd definitely commit extra $ for .mac services (if reasonable) for this.
  • ZFS sounds very interesting, although I don't see a lot that would be useful on my MacBook Pro (a lot more would be useful on my Linux server / MythTV backend).

    The main benefit I saw is the 'snapshot' support (copy on write). I used this a long time ago on AFS, and found it very handy.

    So, are there any compelling reasons _not_ to use ZFS?

"An idealist is one who, on noticing that a rose smells better than a cabbage, concludes that it will also make better soup." - H.L. Mencken

Working...