ovl: rename filesystem type to "overlay"
Some distributions carry an "old" format of overlayfs while mainline has a "new" format. The distros will possibly want to keep the old overlayfs alongside the new for compatibility reasons. To make it possible to differentiate the two versions change the name of the new one from "overlayfs" to "overlay". Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Reported-by: Serge Hallyn <serge.hallyn@ubuntu.com> Cc: Andy Whitcroft <apw@canonical.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
config OVERLAYFS_FS
|
||||
config OVERLAY_FS
|
||||
tristate "Overlay filesystem support"
|
||||
help
|
||||
An overlay filesystem combines two filesystems - an 'upper' filesystem
|
||||
|
@@ -2,6 +2,6 @@
|
||||
# Makefile for the overlay filesystem.
|
||||
#
|
||||
|
||||
obj-$(CONFIG_OVERLAYFS_FS) += overlayfs.o
|
||||
obj-$(CONFIG_OVERLAY_FS) += overlay.o
|
||||
|
||||
overlayfs-objs := super.o inode.o dir.o readdir.o copy_up.o
|
||||
overlay-objs := super.o inode.o dir.o readdir.o copy_up.o
|
||||
|
@@ -24,7 +24,7 @@ MODULE_AUTHOR("Miklos Szeredi <miklos@szeredi.hu>");
|
||||
MODULE_DESCRIPTION("Overlay filesystem");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
#define OVERLAYFS_SUPER_MAGIC 0x794c764f
|
||||
#define OVERLAYFS_SUPER_MAGIC 0x794c7630
|
||||
|
||||
struct ovl_config {
|
||||
char *lowerdir;
|
||||
@@ -776,11 +776,11 @@ static struct dentry *ovl_mount(struct file_system_type *fs_type, int flags,
|
||||
|
||||
static struct file_system_type ovl_fs_type = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "overlayfs",
|
||||
.name = "overlay",
|
||||
.mount = ovl_mount,
|
||||
.kill_sb = kill_anon_super,
|
||||
};
|
||||
MODULE_ALIAS_FS("overlayfs");
|
||||
MODULE_ALIAS_FS("overlay");
|
||||
|
||||
static int __init ovl_init(void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user