VirtualBox

Changeset 14445 in vbox for trunk


Ignore:
Timestamp:
Nov 21, 2008 9:15:01 AM (16 years ago)
Author:
vboxsync
Message:

Host shared folders: do lock/unlock even if the wait flag is set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedFolders/service.cpp

    r13837 r14445  
    673673                     *
    674674                     *           g_pHelpers->pfnCallComplete (callHandle, rc);
     675                     *
     676                     * The operation is async.
     677                     * fAsynchronousProcessing = true;
    675678                     */
    676679
    677                     /* Operation is async. */
    678                     fAsynchronousProcessing = true;
    679 
    680                     /* Here the operation must be posted to another thread. At the moment it is not implemented. */
    681                     rc = VERR_NOT_SUPPORTED;
     680                    /* Here the operation must be posted to another thread. At the moment it is not implemented.
     681                     * Until it is implemented, try to perform the operation without waiting.
     682                     */
     683                    flags &= ~SHFL_LOCK_WAIT;
     684
     685                    /* Execute the function. */
     686                    if ((flags & SHFL_LOCK_MODE_MASK) == SHFL_LOCK_CANCEL)
     687                        rc = vbsfUnlock(pClient, root, Handle, offset, length, flags);
     688                    else
     689                        rc = vbsfLock(pClient, root, Handle, offset, length, flags);
     690
     691                    if (VBOX_SUCCESS(rc))
     692                    {
     693                        /* Update parameters.*/
     694                        /* none */
     695                    }
    682696                }
    683697                else
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