Pity userspace on where this is done on a simple minded filesystem
Posted May 5, 2009 23:36 UTC (Tue) by
adj (subscriber, #7401)
Parent article:
The two sides of reflink()
reflink("myold200Gbytefile", "myreflinked20Gbytefile);
myfd = open("myreflinked200Gbytefile", (O_WRONLY|O_APPEND|O_LARGEFILE));
res = write(myfd, "hereismyshortlittlemessage", 27);
/*
* wait, like _forever_ while i just added 200Gbytes to the amount
* of space used on this filesystem. Not to mention getting back
* ENOSPC, because, even though there were 100Gbytes available
* before this 27 byte long write, now there are none. reflinks
* sound neat, but sometimes have unexpected teeth.
*/
(
Log in to post comments)