Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Dec 2020 16:05:31 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r368339 - stable/12/sys/fs/msdosfs
Message-ID:  <202012041605.0B4G5VWQ072519@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012041605.0B4G5VWQ072519>