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