Skip to content

Commit ef94b18

Browse files
author
Miklos Szeredi
committed
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>
1 parent fc14f9c commit ef94b18

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Documentation/filesystems/overlayfs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ is formed.
6464
At mount time, the two directories given as mount options "lowerdir" and
6565
"upperdir" are combined into a merged directory:
6666

67-
mount -t overlayfs overlayfs -olowerdir=/lower,upperdir=/upper,\
67+
mount -t overlay overlay -olowerdir=/lower,upperdir=/upper,\
6868
workdir=/work /merged
6969

7070
The "workdir" needs to be an empty directory on the same filesystem

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6888,7 +6888,7 @@ F: drivers/scsi/osd/
68886888
F: include/scsi/osd_*
68896889
F: fs/exofs/
68906890

6891-
OVERLAYFS FILESYSTEM
6891+
OVERLAY FILESYSTEM
68926892
M: Miklos Szeredi <miklos@szeredi.hu>
68936893
L: linux-fsdevel@vger.kernel.org
68946894
S: Supported

fs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ obj-$(CONFIG_QNX6FS_FS) += qnx6/
104104
obj-$(CONFIG_AUTOFS4_FS) += autofs4/
105105
obj-$(CONFIG_ADFS_FS) += adfs/
106106
obj-$(CONFIG_FUSE_FS) += fuse/
107-
obj-$(CONFIG_OVERLAYFS_FS) += overlayfs/
107+
obj-$(CONFIG_OVERLAY_FS) += overlayfs/
108108
obj-$(CONFIG_UDF_FS) += udf/
109109
obj-$(CONFIG_SUN_OPENPROMFS) += openpromfs/
110110
obj-$(CONFIG_OMFS_FS) += omfs/

fs/overlayfs/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
config OVERLAYFS_FS
1+
config OVERLAY_FS
22
tristate "Overlay filesystem support"
33
help
44
An overlay filesystem combines two filesystems - an 'upper' filesystem

fs/overlayfs/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
# Makefile for the overlay filesystem.
33
#
44

5-
obj-$(CONFIG_OVERLAYFS_FS) += overlayfs.o
5+
obj-$(CONFIG_OVERLAY_FS) += overlay.o
66

7-
overlayfs-objs := super.o inode.o dir.o readdir.o copy_up.o
7+
overlay-objs := super.o inode.o dir.o readdir.o copy_up.o

fs/overlayfs/super.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ MODULE_AUTHOR("Miklos Szeredi <miklos@szeredi.hu>");
2424
MODULE_DESCRIPTION("Overlay filesystem");
2525
MODULE_LICENSE("GPL");
2626

27-
#define OVERLAYFS_SUPER_MAGIC 0x794c764f
27+
#define OVERLAYFS_SUPER_MAGIC 0x794c7630
2828

2929
struct ovl_config {
3030
char *lowerdir;
@@ -776,11 +776,11 @@ static struct dentry *ovl_mount(struct file_system_type *fs_type, int flags,
776776

777777
static struct file_system_type ovl_fs_type = {
778778
.owner = THIS_MODULE,
779-
.name = "overlayfs",
779+
.name = "overlay",
780780
.mount = ovl_mount,
781781
.kill_sb = kill_anon_super,
782782
};
783-
MODULE_ALIAS_FS("overlayfs");
783+
MODULE_ALIAS_FS("overlay");
784784

785785
static int __init ovl_init(void)
786786
{

0 commit comments

Comments
 (0)