diff --git a/sys/fs/devfs/devfs_vfsops.c b/sys/fs/devfs/devfs_vfsops.c index 2173398a4431..10c26550b8f4 100644 --- a/sys/fs/devfs/devfs_vfsops.c +++ b/sys/fs/devfs/devfs_vfsops.c @@ -122,7 +122,7 @@ devfs_unmount(mp, mntflags, td) fmp = VFSTODEVFS(mp); if (mntflags & MNT_FORCE) - flags |= FORCECLOSE; + return (EOPNOTSUPP); /* There is 1 extra root vnode reference from devfs_mount(). */ error = vflush(mp, 1, flags, td); if (error)