Slashdot Mirror


UFS2 Now Default Creation Type in FreeBSD

Dan writes "FreeBSD's Robert Watson says that effective today, newfs(8) and sysinstall(8) will create UFS2 file systems by default, unless explicitly specified. Users wanting to create UFS1 file systems for whatever reason (interoperability with earlier versions, etc) should be sure to employ the -O1 flag to newfs(8), or hit '1' in the label editor in sysinstall(8) to select UFS1."

34 comments

  1. Is it just me ... by torpor · · Score: 4, Funny

    ... or does a 256-byte inode seem just a bit ... well ... excessive?

    --
    ; -- the corruption of government starts with its secrets. a truly free people keep no secrets. --
    1. Re:Is it just me ... by mnmn · · Score: 3, Insightful

      Its excessive for now, but thinking about the future. With AMD coming out with a 64bit cpu, and maybe Intel might counter with a 128 bit (!) cpu for the servers, the address space grows. With that, and LVMed 200GB harddisks, and gigs and gigs of ram, we need scalability till FreeBSD 6.0.

      --
      "Give orange me give eat orange me eat orange give me eat orange give me you." -Nim Chimpsky
    2. Re:Is it just me ... by Anonymous Coward · · Score: 0

      "Nobody will ever need more than 640k RAM" -- Bill Gates, 1981.

    3. Re:Is it just me ... by Anonymous Coward · · Score: 0
      Americans! Why are you letting this hap [alternet.org]

      What? Letting hip-hop artists roam freely? I dunno. Sounds like a bad idea to me.

    4. Re:Is it just me ... by pmz · · Score: 2, Funny

      ...maybe Intel might counter with a 128 bit (!) cpu for the servers...

      128-bit CPUs probably won't appear for decades. Even today, I have a 64-bit workstation (going on five years old, now), and no program I actively use other than the kernel itself is 64-bit. They're all still 32-bit, because 4GB of RAM is more than enough for my work.

      Additionally, it'll be a while before even the biggest servers can exhaust the 18,446,744,073,709,551,616 bytes of RAM theoretically available to 64-bit CPUs. If that isn't enough, one day, I'm sure Intel will churn out some sort of hack to make it 147,573,952,589,676,412,928 bytes. Sheesh, 18,446,744,073,709,551,616 bytes ought to be enough for everybody!

    5. Re:Is it just me ... by Fweeky · · Score: 1
      18,446,744,073,709,551,616 bytes ought to be enough for everybody!

      A Culture Mind has somewhere in the region of 1,000,000,000,000,000,000,000,000,000,000 bytes (about 1,000,000YB) of memory. 128 bits are enough to reference the memory of about 340 million such Minds; 64bits would run out before you'd got past the first 0.00000000001% of the first Mind. No prizes for guessing which filesystem such godlike AI's will be using ;)
    6. Re:Is it just me ... by mnmn · · Score: 1

      You sound so like Gates when he said 1MB ram should be enough for everyone.

      Apart from the addressing space, theres also the wider IO, and replacing say MMX which is a hack to widen the bus. I know I cant think of much on how to use a 128bit CPU right now, but moores law has been evasive.

      --
      "Give orange me give eat orange me eat orange give me eat orange give me you." -Nim Chimpsky
  2. Gentoo Zealot Translator by Anonymous Coward · · Score: 2, Funny
    Official Gentoo-Linux-Zealot translator-o-matic

    NetBSD rules! Anyway, Gentoo Linux is an interesting new distribution with some great features. Unfortunately, it has attracted a large number of clueless wannabes who absolutely MUST advocate Gentoo at every opportunity. Let's look at the language of these zealots, and find out what it really means...

    "Gentoo makes me so much more productive."
    "Although I can't use the box at the moment because it's compiling something, as it will be for the next five days, it gives me more time to check out the latest USE flags and potentially unstable optimisation settings."

    "Gentoo is more in the spirit of open source!"
    "Apart from Hello World in Pascal at school, I've never written a single program in my life or contributed to an open source project, yet staring at endless streams of GCC output whizzing by somehow helps me contribute to international freedom."

    "I use Gentoo because it's more like the BSDs."
    "Last month I tried to install FreeBSD on a well-supported machine, but the text-based installer scared me off. I've never used a BSD, but the guys on Slashdot say that it's l33t though, so surely I must be for using Gentoo."

    "Heh, my system is soooo much faster after installing Gentoo."
    "I've spent hours recompiling Fetchmail, X-Chat, gEdit and thousands of other programs which spend 99% of their time waiting for user input. Even though only the kernel and glibc make a significant difference with optimisations, and RPMs and .debs can be rebuilt with a handful of commands (AND Red Hat supplies i686 kernel and glibc packages), my box MUST be faster. It's nothing to do with the fact that I've disabled all startup services and I'm running BlackBox instead of GNOME or KDE."

    "...my Gentoo Linux workstation..."
    "...my overclocked AMD eMachines box from PC World, and apart from the third-grade made-to-break components and dodgy fan..."

    "You Red Hat guys must get sick of dependency hell..."
    "I'm too stupid to understand that circular dependencies can be resolved by specifying BOTH .rpms together on the command line, and that problems hardly ever occur if one uses proper Red Hat packages instead of mixing SuSE, Mandrake and Joe's Linux packages together (which the system wasn't designed for)."

    "All the other distros are soooo out of date."
    "Constantly upgrading to the latest bleeding-edge untested software makes me more productive. Never mind the extensive testing and patching that Debian and Red Hat perform on their packages; I've just emerged the latest GNOME beta snapshot and compiled with -09 -fomit-instructions, and it only crashes once every few hours."

    "Let's face it, Gentoo is the future."
    "OK, so no serious business is going to even consider Gentoo in the near future, and even with proper support and QA in place, it'll still eat up far too much of a company's valuable time. But this guy I met on #animepr0n is now using it, so it must be growing!"

    -

    1. Re:Gentoo Zealot Translator by Anonymous Coward · · Score: -1

      Hahahaha. You rule. That was the funniest thing I've read all week.

    2. Re:Gentoo Zealot Translator by Anonymous Coward · · Score: 0

      haha! both of you are still wondering where to click in that damn Mandrake GUI installer? Get back to some lame OS, or to not using computers at all *g*

    3. Re:Gentoo Zealot Translator by Anonymous Coward · · Score: 0

      LOL!!! Now that was good! LMFAO... This should have a score of atleast 4, not -1. That was funny as hell and well thought out too.

    4. Re:Gentoo Zealot Translator by Anonymous Coward · · Score: 0

      NICE! Thats the funniest thing I read all day.

      I went through a 4 day nightmare trying to get gentoo on my sparc64, finally gave up in favor of OpenBSD (which is the ONLY OS besides Solaris that works on the sparc64 at this time, linux doesn't have a working hme driver no matter what patches you put on it, the FreeBSD port is still in its infancy and not many cards/components work right yet, NetBSD just plain sucks) Gentoo is very cool on the surface, but its certainly not a professional class OS.

  3. A quick point by bofkentucky · · Score: 5, Informative

    This is for FreeBSD 5.x, FreeBSD 4.x is still using UFS1

    --
    09f911029d74e35bd84156c5635688c0
    1. Re:A quick point by mnmn · · Score: 1

      So the FreeBSD 5.0 RELEASE I downloaded yesterday should do the UFS2 install by default?? or "from today" mean all versions of FreeBSD 5.0 from 21st April?

      --
      "Give orange me give eat orange me eat orange give me eat orange give me you." -Nim Chimpsky
    2. Re:A quick point by bofkentucky · · Score: 3, Informative

      Any release after 4/21 or if you are tracking -5.0-current with cvsup, it will probably upgrade the tools.

      --
      09f911029d74e35bd84156c5635688c0
    3. Re:A quick point by elbuddha · · Score: 2, Informative

      From today means for HEAD (aka "-current") from April 20th onward.

      RELENG_5_0 is only for security fixes, and will not include this change.

      Eventually, when RELENG_5_1_0_RELEASE is tagged, it will include this change.

  4. Tell me again, how does this belong here? by mnmn · · Score: -1, Offtopic


    And then, Ive written editorials spontaneously in comments in slashdot and newsforge all over. Just dont want to try and submit a new story for (1) Might not get posted (2) I might drop out of the mood.

    I wish the slash code would bring out finely composed large comments that dont belong there and post them on the front.

    --
    "Give orange me give eat orange me eat orange give me eat orange give me you." -Nim Chimpsky
    1. Re:Tell me again, how does this belong here? by Anonymous Coward · · Score: -1, Offtopic

      Your English is abysmal, yet you write "editorials"? Don't make me laugh :)

  5. UFS is dying by nathanh · · Score: 3, Funny

    It is official; Robert Watson now confirms: UFS is dying

    One more crippling bombshell hit the already beleaguered UFS community when Robert Watson confirmed that UFS market share has dropped yet again, now down to less than a fraction of 1 percent of all filesystems. Coming on the heels of a recent FreeBSD survey which plainly states that UFS has lost more market share, this news serves to reinforce what we've known all along. UFS is collapsing in complete disarray, as fittingly exemplified by failing dead last in the recent comprehensive filesystem test.

    You don't need to be a Kreskin to predict UFS's future. The hand writing is on the wall: UFS faces a bleak future. In fact there won't be any future at all for UFS because UFS is dying. Things are looking very bad for UFS. As many of us are already aware, UFS continues to lose market share. Red ink flows like a river of blood.

    All major surveys show that UFS has steadily declined in market share. UFS is very sick and its long term survival prospects are very dim. If UFS is to survive at all it will be among OpenBSD dabblers. UFS continues to decay. Nothing short of a miracle could save it at this point in time. For all practical purposes, UFS is dead.

    Fact: UFS is dying

    I feel dirty...

    1. Re:UFS is dying by pmz · · Score: 1

      For all practical purposes, UFS is dead.

      Wait, my Sun workstation uses UFS...NO CARRIER.

      <the haunting sound of one-handed clapping ensues from the Slashdot crowd and pmz's ego sinks into oblivion>

    2. Re:UFS is dying by RLiegh · · Score: 1

      You know, UFS may not be dying, but any compatability with Linux (mount -o ufstype=wtfthisweek?!?!?) is out the window.

      Correct me if I'm wrong [I'm on dialup, no iso for me. :~(].

    3. Re:UFS is dying by evilviper · · Score: 1

      Actually, UFS is nearly a universal filesystem!!! UFS is obviously available on all the BSDs, which includes Darwin, and Mac OS X. It's also available on Linux, Solaris, and I presume every other Unix OS. The one place UFS doesn't work, is on Windows, which is as unfortunate limitation. I'm not versed in Windows programming, so I can only hope to find out that someone wrote a UFS filesystem driver for Windows.

      There is only one other filesystem that is more universal, and that is the ilustrious FAT32. There are numerous drawbacks to FAT32 however. Since it had to be reverse engineered, many systems do not support many of it's features. For instance, OpenBSD doesn't support long filenames on FAT partitions. In addition, FAT partitions experience severe fragmentation under all implimentations (and really nothing but windows supports defragmentation). They also do not support permissions, so you are completely out of luck in that department.

      You cannot create a FAT32 partition that is larger than about 32 GB. In this world of 200GB+ hard drives, that's a ridiculous limitation. Performance sucks as well. Even on Windows, the performance of FAT32 isn't flattering. On other platforms, the performance can be even worse. I have yet to come across a platform where FAT performance is better than UFS performance. With softupdates on the BSDs, UFS performance rivals and surpasses the very best of filesystems available. Even in theory, journaling cannot hope to beat the performance of soft updates, although it's possible that journaling could be implimented on UFS in a backwards compatible way (similar to EXT3), for those that want the feature.

      So, I sincerely hope UFS isn't dying, in fact, I'm still waiting for it to gain the popularity it deserves, and have it become the default filesystem on all sorts of devices, instead of FAT32.

      And anyone that knows of any effort to give Windows UFS filesystem support, I'd like to hear about it.

      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    4. Re:UFS is dying by Anonymous Coward · · Score: 0

      You cannot create a FAT32 partition that is larger than about 32 GB. In this world of 200GB+ hard drives, that's a ridiculous limitation.

      The only thing rediculous around here is your ignorance. I just bought some new Acer PCs last week, with 40GB drives and XP preloaded on them. All had 40GB FAT32 partitions on them, and I've seen 80GB drives formatted the same way. I just fired up a command prompt and typed CONVERT C: and switched one to NTFS, and proceeded to make my default image.

  6. *BSD is dying by Anonymous Coward · · Score: -1
    It is official; Netcraft now confirms: *BSD is dying

    One more crippling bombshell hit the already beleaguered *BSD community when IDC confirmed that *BSD market share has dropped yet again, now down to less than a fraction of 1 percent of all servers. Coming on the heels of a recent Netcraft survey which plainly states that *BSD has lost more market share, this news serves to reinforce what we've known all along. *BSD is collapsing in complete disarray, as fittingly exemplified by failing dead last in the recent Sys Admin comprehensive networking test.

    You don't need to be a Kreskin to predict *BSD's future. The hand writing is on the wall: *BSD faces a bleak future. In fact there won't be any future at all for *BSD because *BSD is dying. Things are looking very bad for *BSD. As many of us are already aware, *BSD continues to lose market share. Red ink flows like a river of blood.

    FreeBSD is the most endangered of them all, having lost 93% of its core developers. The sudden and unpleasant departures of long time FreeBSD developers Jordan Hubbard and Mike Smith only serve to underscore the point more clearly. There can no longer be any doubt: FreeBSD is dying.

    Let's keep to the facts and look at the numbers.

    OpenBSD leader Theo states that there are 7000 users of OpenBSD. How many users of NetBSD are there? Let's see. The number of OpenBSD versus NetBSD posts on Usenet is roughly in ratio of 5 to 1. Therefore there are about 7000/5 = 1400 NetBSD users. BSD/OS posts on Usenet are about half of the volume of NetBSD posts. Therefore there are about 700 users of BSD/OS. A recent article put FreeBSD at about 80 percent of the *BSD market. Therefore there are (7000+1400+700)*4 = 36400 FreeBSD users. This is consistent with the number of FreeBSD Usenet posts.

    Due to the troubles of Walnut Creek, abysmal sales and so on, FreeBSD went out of business and was taken over by BSDI who sell another troubled OS. Now BSDI is also dead, its corpse turned over to yet another charnel house.

    All major surveys show that *BSD has steadily declined in market share. *BSD is very sick and its long term survival prospects are very dim. If *BSD is to survive at all it will be among OS dilettante dabblers. *BSD continues to decay. Nothing short of a miracle could save it at this point in time. For all practical purposes, *BSD is dead.

    Fact: *BSD is dying

  7. Developer laments: What Killed FreeBSD by Anonymous Coward · · Score: -1, Troll
    The End of FreeBSD

    [ed. note: in the following text, former FreeBSD developer Mike Smith gives his reasons for abandoning FreeBSD]

    When I stood for election to the FreeBSD core team nearly two years ago, many of you will recall that it was after a long series of debates during which I maintained that too much organisation, too many rules and too much formality would be a bad thing for the project.

    Today, as I read the latest discussions on the future of the FreeBSD project, I see the same problem; a few new faces and many of the old going over the same tired arguments and suggesting variations on the same worthless schemes. Frankly I'm sick of it.

    FreeBSD used to be fun. It used to be about doing things the right way. It used to be something that you could sink your teeth into when the mundane chores of programming for a living got you down. It was something cool and exciting; a way to spend your spare time on an endeavour you loved that was at the same time wholesome and worthwhile.

    It's not anymore. It's about bylaws and committees and reports and milestones, telling others what to do and doing what you're told. It's about who can rant the longest or shout the loudest or mislead the most people into a bloc in order to legitimise doing what they think is best. Individuals notwithstanding, the project as a whole has lost track of where it's going, and has instead become obsessed with process and mechanics.

    So I'm leaving core. I don't want to feel like I should be "doing something" about a project that has lost interest in having something done for it. I don't have the energy to fight what has clearly become a losing battle; I have a life to live and a job to keep, and I won't achieve any of the goals I personally consider worthwhile if I remain obligated to care for the project.

    Discussion

    I'm sure that I've offended some people already; I'm sure that by the time I'm done here, I'll have offended more. If you feel a need to play to the crowd in your replies rather than make a sincere effort to address the problems I'm discussing here, please do us the courtesy of playing your politics openly.

    From a technical perspective, the project faces a set of challenges that significantly outstrips our ability to deliver. Some of the resources that we need to address these challenges are tied up in the fruitless metadiscussions that have raged since we made the mistake of electing officers. Others have left in disgust, or been driven out by the culture of abuse and distraction that has grown up since then. More may well remain available to recruitment, but while the project is busy infighting our chances for successful outreach are sorely diminished.

    There's no simple solution to this. For the project to move forward, one or the other of the warring philosophies must win out; either the project returns to its laid-back roots and gets on with the work, or it transforms into a super-organised engineering project and executes a brilliant plan to deliver what, ultimately, we all know we want.

    Whatever path is chosen, whatever balance is struck, the choosing and the striking are the important parts. The current indecision and endless conflict are incompatible with any sort of progress.

    Trying to dissect the above is far beyond the scope of any parting shot, no matter how distended. All I can really ask of you all is to let go of the minutiae for a moment and take a look at the big picture. What is the ultimate goal here? How can we get there with as little overhead as possible? How would you like to be treated by your fellow travellers?

    Shouts

    To the Slashdot "BSD is dying" crowd - big deal. Death is part of the cycle; take a look at your soft, pallid bodies and consider that right this very moment, parts of you are dying. See? It's not so bad.

    To the bulk of the FreeBSD committerbase and the developer community at large - keep your eyes on the real goals. It'

  8. Lamenting the death of FreeBsd by Anonymous Coward · · Score: -1, Troll
    The End of FreeBSD

    [Note: in the following text, former FreeBSD developer Mike Smith gives his reasons for abandoning FreeBSD]

    When I stood for election to the FreeBSD core team nearly two years ago, many of you will recall that it was after a long series of debates during which I maintained that too much organisation, too many rules and too much formality would be a bad thing for the project.

    Today, as I read the latest discussions on the future of the FreeBSD project, I see the same problem; a few new faces and many of the old going over the same tired arguments and suggesting variations on the same worthless schemes. Frankly I'm sick of it.

    FreeBSD used to be fun. It used to be about doing things the right way. It used to be something that you could sink your teeth into when the mundane chores of programming for a living got you down. It was something cool and exciting; a way to spend your spare time on an endeavour you loved that was at the same time wholesome and worthwhile.

    It's not anymore. It's about bylaws and committees and reports and milestones, telling others what to do and doing what you're told. It's about who can rant the longest or shout the loudest or mislead the most people into a bloc in order to legitimise doing what they think is best. Individuals notwithstanding, the project as a whole has lost track of where it's going, and has instead become obsessed with process and mechanics.

    So I'm leaving core. I don't want to feel like I should be "doing something" about a project that has lost interest in having something done for it. I don't have the energy to fight what has clearly become a losing battle; I have a life to live and a job to keep, and I won't achieve any of the goals I personally consider worthwhile if I remain obligated to care for the project.

    Discussion

    I'm sure that I've offended some people already; I'm sure that by the time I'm done here, I'll have offended more. If you feel a need to play to the crowd in your replies rather than make a sincere effort to address the problems I'm discussing here, please do us the courtesy of playing your politics openly.

    From a technical perspective, the project faces a set of challenges that significantly outstrips our ability to deliver. Some of the resources that we need to address these challenges are tied up in the fruitless metadiscussions that have raged since we made the mistake of electing officers. Others have left in disgust, or been driven out by the culture of abuse and distraction that has grown up since then. More may well remain available to recruitment, but while the project is busy infighting our chances for successful outreach are sorely diminished.

    There's no simple solution to this. For the project to move forward, one or the other of the warring philosophies must win out; either the project returns to its laid-back roots and gets on with the work, or it transforms into a super-organised engineering project and executes a brilliant plan to deliver what, ultimately, we all know we want.

    Whatever path is chosen, whatever balance is struck, the choosing and the striking are the important parts. The current indecision and endless conflict are incompatible with any sort of progress.

    Trying to dissect the above is far beyond the scope of any parting shot, no matter how distended. All I can really ask of you all is to let go of the minutiae for a moment and take a look at the big picture. What is the ultimate goal here? How can we get there with as little overhead as possible? How would you like to be treated by your fellow travellers?

    Shouts

    To the Slashdot "BSD is dying" crowd - big deal. Death is part of the cycle; take a look at your soft, pallid bodies and consider that right this very moment, parts of you are dying. See? It's not so bad.

    To the bulk of the FreeBSD committerbase and the developer community at large - keep your eyes on the real goals. It's wh

  9. UFS vs FFS by Stonent1 · · Score: 1

    I thought that the Freely available BSDs used Berkley FFS by default?

    Polaris# cat /etc/fstab
    /dev/sd0a / ffs rw 1 1

    Polaris# mount
    /dev/sd0a on / type ffs (local)

    One in the same or different? Or there are slight variations between the BSDs default FS? How does UFS2 compare to FFS with soft-updates?

    1. Re:UFS vs FFS by Anonymous Coward · · Score: 0

      > cat /etc/fstab

      /dev/ad0s3a / ufs rw 1 1
      /dev/ad0s3g /usr ufs w 2 2

      > mount

      /dev/ad0s3a on / (ufs, local)
      /dev/ad0s3g on /usr (ufs, local, soft-updates)

    2. Re:UFS vs FFS by DarkHelmet433 · · Score: 1

      UFS == FFS. Its a slightly different name/acronym for the same thing. NetBSD/OpenBSD completed a tree-wide sweep and changed all UFS references to FFS for consistency. FreeBSD still (mostly) calls it UFS. "Fast File System" is not much better than "Unix File System". "Berkeley Fast File System" (BFFS) would be most correct.

      How do they compare? They all pretty much use the same on-disk format. There were some relatively recent changes (dirpref) that started using some previously unused space. I think this has been ported to Net/OpenBSD now. You already mentioned soft-updates, but this doesn't change the fs format except add a new flag bit. And then there are snapshots (which depend on soft-updates) and again, they just use some extra flag and file type bits. UFS2 is a significant on-disk format change. All the 32-bit block addresses and sizes are now 64 bits so the 1TB/2TB file system and file size limits are gone. It is the 64 bit stuff that is the primary reason for the larger inode sizes.

    3. Re:UFS vs FFS by Anonymous Coward · · Score: 0

      To be honest, all additions/changes to UFS came from FreeBSD, __except__ for dirprefs, which did in fact come from OpenBSD.

    4. Re:UFS vs FFS by Anonymous Coward · · Score: 0

      UFS sits below FFS. UFS is all about inodes on a disk. FFS is all about directories and filenames associated with inodes.

      FFS can sit on UFS1 or UFS2 (which is unmodified UFS1 code with some extra code on the side). Either way you get soft-updates and all the other FFS benefits.

      Performance will be about the same (except for newfs speed which isn't important anyway unless you frequently newfs filesystems which almost no one does more than once per disk they own.)

    5. Re:UFS vs FFS by Anonymous Coward · · Score: 0

      UFS2 (which is unmodified UFS1 code with some extra code on the side).

      Do you smoke a lot of crack?

  10. Which filesystem? by torpor · · Score: 1

    I dunno ... but will Al Gore have invented it?

    --
    ; -- the corruption of government starts with its secrets. a truly free people keep no secrets. --
  11. Elegy for *BSD by Anonymous Coward · · Score: -1, Troll

    Elegy For *BSD


    I am a *BSD user
    and I try hard to be brave
    That is a tall order
    *BSD's foot is in the grave.

    I tap at my toy keyboard
    and whistle a happy tune
    but keeping happy's so hard,
    *BSD died so soon.

    Each day I wake and softly sob
    Nightfall finds me crying
    Not only am I a zit faced slob
    but *BSD is dying.