Commit 76531b74 authored by Andreas Dilger's avatar Andreas Dilger Committed by Oleg Drokin
Browse files

LU-13907 llite: don't set FS_REQUIRES_DEV on client



If doing a client-only build, do not set the FS_REQUIRES_DEV flag
for the 'lustre' filesystem type.  This is only needed on the server,
but the filesystem type declaration is shared between both.

In master, this was fixed by declaring a new 'lustre_tgt' filesystem
type and using that for server filesystem mounts.  However, for 2.12
this is overkill, and it is possible to get a 95% fix by dropping
the FS_REQUIRES_DEV flag for the common case of client-only builds.

Test-Parameters: trivial
Signed-off-by: default avatarAndreas Dilger <adilger@dilger.ca>
Change-Id: Iab2e78515aba018e2a6bceb324ad1b8a313ebbe5
Reviewed-on: https://review.whamcloud.com/39674

Reviewed-by: default avatarJian Yu <yujian@whamcloud.com>
Reviewed-by: default avatarJames Simmons <jsimmons@infradead.org>
Tested-by: default avatarjenkins <devops@whamcloud.com>
Tested-by: default avatarMaloo <maloo@whamcloud.com>
Reviewed-by: default avatarOleg Drokin <green@whamcloud.com>
parent a73f4e56
......@@ -1675,7 +1675,12 @@ static struct file_system_type lustre_fs_type = {
.get_sb = lustre_get_sb,
#endif
.kill_sb = lustre_kill_super,
.fs_flags = FS_REQUIRES_DEV | FS_HAS_FIEMAP | FS_RENAME_DOES_D_MOVE,
.fs_flags = FS_HAS_FIEMAP | FS_RENAME_DOES_D_MOVE |
#ifdef HAVE_SERVER_SUPPORT
FS_REQUIRES_DEV,
#else
0,
#endif
};
MODULE_ALIAS_FS("lustre");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment