VirtualBox

Changeset 75447 in vbox for trunk/src/VBox/Additions/solaris


Ignore:
Timestamp:
Nov 14, 2018 12:55:48 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126601
Message:

solaris/vboxfs: Set VFS_UNMOUNTED on umount like the rest of the guys.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c

    r75444 r75447  
    503503         * and thus, ENOTSUP, is being returned.
    504504         */
    505         if (flag & MS_FORCE)
     505        if (flag & MS_FORCE) {
     506                LogFlowFunc(("sffs_unmount(MS_FORCE) returns ENOSUP\n"));
    506507                return (ENOTSUP);
     508        }
     509
     510        /*
     511         * Mark the file system unmounted.
     512         */
     513        vfsp->vfs_flag |= VFS_UNMOUNTED;
    507514
    508515        /*
    509516         * Make sure nothing is still in use.
    510517         */
    511         if (sffs_purge(sffs) != 0)
     518        if (sffs_purge(sffs) != 0) {
     519                vfsp->vfs_flag &= ~VFS_UNMOUNTED;
     520                LogFlowFunc(("sffs_unmount() returns EBUSY\n"));
    512521                return (EBUSY);
     522        }
    513523
    514524        /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette