svn commit: r368339 - stable/12/sys/fs/msdosfs
Konstantin Belousov
kib at FreeBSD.org
Fri Dec 4 16:05:32 UTC 2020
Author: kib
Date: Fri Dec 4 16:05:31 2020
New Revision: 368339
URL: https://svnweb.freebsd.org/changeset/base/368339
Log:
Fix msdosfs suspension.
Unlike HEAD, stable/12 still uses the check for vfs_susp_clean != NULL
as indicator that fs supports suspension. Satisfy the requirement by
providing dummy msdosfs_susp_clean method implementation.
This is direct commit to stable/12.
Reported by: Özkan KIRIK <ozkan.kirik at gmail.com>
Modified:
stable/12/sys/fs/msdosfs/msdosfs_vfsops.c
Modified: stable/12/sys/fs/msdosfs/msdosfs_vfsops.c
==============================================================================
--- stable/12/sys/fs/msdosfs/msdosfs_vfsops.c Fri Dec 4 15:53:44 2020 (r368338)
+++ stable/12/sys/fs/msdosfs/msdosfs_vfsops.c Fri Dec 4 16:05:31 2020 (r368339)
@@ -989,6 +989,11 @@ msdosfs_fhtovp(struct mount *mp, struct fid *fhp, int
return (0);
}
+static void
+msdosfs_susp_clean(struct mount *mp __unused)
+{
+}
+
static struct vfsops msdosfs_vfsops = {
.vfs_fhtovp = msdosfs_fhtovp,
.vfs_mount = msdosfs_mount,
@@ -997,6 +1002,7 @@ static struct vfsops msdosfs_vfsops = {
.vfs_statfs = msdosfs_statfs,
.vfs_sync = msdosfs_sync,
.vfs_unmount = msdosfs_unmount,
+ .vfs_susp_clean = msdosfs_susp_clean,
};
VFS_SET(msdosfs_vfsops, msdosfs, 0);
More information about the svn-src-stable-12
mailing list