From: Andreas Dilger Date: Thu, 13 Aug 2020 22:18:52 +0000 (-0600) Subject: LU-13907 llite: don't set FS_REQUIRES_DEV on client X-Git-Tag: 2.12.6-RC1~42 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=76531b74d1280b93b6aa105e960819d806cc44f1;p=fs%2Flustre-release.git 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: Andreas Dilger Change-Id: Iab2e78515aba018e2a6bceb324ad1b8a313ebbe5 Reviewed-on: https://review.whamcloud.com/39674 Reviewed-by: Jian Yu Reviewed-by: James Simmons Tested-by: jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/obdclass/obd_mount.c b/lustre/obdclass/obd_mount.c index 2d32c65..3c7a51ff 100644 --- a/lustre/obdclass/obd_mount.c +++ b/lustre/obdclass/obd_mount.c @@ -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");