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: 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*

    2. 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.

    3. 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. 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.

  5. 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?

  6. 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. --