News for hackers. Stuff that matters.
Re:[btrfs] is vulnerable to a hash-DoS attack by PaulHoule on Thursday December 13, 2012 @11:52AM (#4916554)
I don't like innovation in filesystems. ext4 might be boring, but ext4 wrecks don't make the evening news the way wrecks with ZFS do. I worked on a system that used reiserfs in production and we were always dealing with problems caused by the weak reliability guarantees. For instance when the system crashed we'd find our filesystem was full of files full of trash data (it allocated space for the file but never wrote the data so this is what was left behind.)

Since the system would try to read the trash data, this was a problem.

I was looking at the btrfs documentation the other day and noticed that (1) it behaves worse when space runs out than ext4 does, and (2) there's no accurate way to measure free space on a btrfs volume so it's hard to avoid running out of space.

Whatever benefits btrfs has is erased if you have to deal with wrecked and full filesystems all the time.

Re:[btrfs] is vulnerable to a hash-DoS attack by dunecn on Thursday December 13, 2012 @12:55PM (#4917001)
Regarding (1), yes a COW file system will (generally) behave "worse" that a non COW file system when space is limited. But, this is a design choice that makes sense for many use cases. Just to point out a few: * Snapshots are virtually free. * Writes are sequential. * "Harder" to destroy existing data (block are not overwritten in place)

These design decisions are not made light heartedly.

Re:[btrfs] is vulnerable to a hash-DoS attack by diegocg on Thursday December 13, 2012 @03:14PM (#4917813)
In this case, Btrfs has not invented anything new. Hashed directories are a standard technique used in all modern filesystems, including Ext3/4 or XFS. It would be interesting if someone tried to get hash collisions in them with modern hardware.
Re:[btrfs] is vulnerable to a hash-DoS attack by tobias3 on Thursday December 13, 2012 @01:28PM (#4917216)
The other day it wouldn't even allow me to remove or truncate files, because it was running out of space.

I was annoyed: How would you free space if you can't remove anything. There wasn't any snapshot of those files, but I was able to free space by removing another snapshot (which I wanted to keep, but never mind...).

Re:[btrfs] is vulnerable to a hash-DoS attack by kzrdude on Thursday December 13, 2012 @01:56PM (#4917406)
The goal is of course that in the end btrfs will have better guarantees than ext4, for example with data and metadata checksums.