Messages in this thread | | | From | David Woodhouse <> | Subject | Re: [OFFTOPIC] Hardlink utility - reclaim drive space | Date | Wed, 07 Mar 2001 14:52:19 +0000 |
| |
Padraig@AnteFacto.com said: > Wouldn't it be cool to have an extended attribute for files called > "Copy on Write", so then you could hardlink all duplicate files > together, but when a file is modified a copy is transparently created.
> The only problem I see with this is that you wouldn't have enough > space to store a copy of a file, what would you do in this case, just > return an error on write?
Yep. write(2) is allowed to return -ENOSPC, even when you're not extending the file you're writing to. Think about holes and log-structured filesystems.
-- dwmw2
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |