Debating overlayfs
LWN looked at the overlayfs filesystem last year. Overlayfs, written by Miklos Szeredi, is distinguished by its relative simplicity. Recently, Miklos asked if overlayfs could be merged for the 3.1 development cycle. He may get his wish, but some worries will have to be addressed first.
Andrew Morton has raised a couple of concerns; one of which is that the problem might be
better solved in user space. He dismissed the simplicity of overlayfs,
saying "Not merging it would be even smaller and simpler,
" and
suggested that performance problems should be addressed by making the
user-space implementation faster. Linus has pretty much ended that aspect of the debate by saying
"People who think that userspace filesystems are realistic for
anything but toys are just misguided.
" So the way seems to be clear
for a union filesystem implementation in the kernel.
Andrew's other concern is that overlayfs may not be a sufficiently complete solution:
$ sudo subscribe todaySubscribe today and elevate your LWN privileges. You’ll have access to all of LWN’s high-quality articles as soon as they’re published, and help support LWN in the process. Act now and you can start with a free trial subscription.
That objection is harder to answer. It has been pointed out that OpenWRT is happily using overlayfs and Ubuntu is considering it. About the only viable alternative project is union mounts, which has not seen much developer attention recently. On the feature front, it doesn't seem like anything else will come along and outshine overlayfs in the near future.
On the technical side, union filesystems have always presented some unique challenges. Valerie Aurora, who has done a fair amount of work in this area, looked at overlayfs in March and seemed to be positive about it:
She has changed her tune a bit in the current discussion, suggesting that there are some difficulties which need to be addressed:
She raised some locking concerns as well, which Miklos addressed in detail; the concern about
changing the underlying filesystem has not been answered, though. So it's
possible that technical correctness issues may yet delay the merging of
overlayfs into the kernel. That said, it seems clear that there is demand
for this feature, and that overlayfs appears to satisfy that demand
nicely. There will likely come a time when keeping it out of the kernel
becomes too hard to justify.
| Index entries for this article | |
|---|---|
| Kernel | Filesystems/Union |
| Kernel | Overlayfs |
