The two sides of reflink()
The two sides of reflink()
Posted May 6, 2009 9:02 UTC (Wed) by epa (subscriber, #39769)In reply to: The two sides of reflink() by amw
Parent article: The two sides of reflink()
That said, it makes no sense to account disk quota conservatively while lying about the amount of free space really available. The two should be treated the same, so if reflinking a large file has no effect on the reported free space, it shouldn't cost quota either.
Posted May 6, 2009 9:22 UTC (Wed)
by nix (subscriber, #2304)
[Link] (1 responses)
Posted May 6, 2009 10:42 UTC (Wed)
by epa (subscriber, #39769)
[Link]
Posted May 6, 2009 12:33 UTC (Wed)
by vonbrand (subscriber, #4458)
[Link]
Even worse, if I reflink() a file of yours, and yout then change it (or delete it, whatever) suddenly my quota goes up without any action on my part.
The two sides of reflink()
potentially fail with -ENOSPC is broken. Such write()s can fail even now
thanks to sparse files. It is true that currently userspace can rely on
the second write() in a ftell()/write()/fseek()/write() sequence not
failing, but this seems a rather thin thing to rely on, to me.
The two sides of reflink()
The two sides of reflink()