VirtualBox

Changeset 78283 in vbox for trunk/src


Ignore:
Timestamp:
Apr 24, 2019 5:26:50 PM (6 years ago)
Author:
vboxsync
Message:

winnt/vboxsf: Corrected VERR_FILE_NOT_FOUND translation so FsPerf gets the expected status code when opening non-existing sub-dirs. Seems someone tried to fix this before but for some inexplicable reasons transled it to VERR_PATH_NOT_FOUND. bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/SharedFolders/driver/path.c

    r78280 r78283  
    284284
    285285            /* On POSIX systems, the "mkdir" command returns VERR_FILE_NOT_FOUND when
    286                doing a recursive directory create. Handle this case. */
    287             case VERR_FILE_NOT_FOUND:
     286               doing a recursive directory create. Handle this case.
     287
     288               bird: We end up here on windows systems too if opening a dir that doesn't
     289                     exists.  Thus, I've changed the SHFL_PATH_NOT_FOUND to SHFL_FILE_NOT_FOUND
     290                     so that FsPerf is happy. */
     291            case VERR_FILE_NOT_FOUND: /** @todo r=bird: this is a host bug, isn't it? */
    288292            {
    289                 pCreateParms->Result = SHFL_PATH_NOT_FOUND;
     293                pCreateParms->Result = SHFL_FILE_NOT_FOUND;
    290294                break;
    291295            }
     
    307311        case SHFL_PATH_NOT_FOUND:
    308312        {
    309             /* Path to object does not exist. */
     313            /* Path to the object does not exist. */
    310314            Log(("VBOXSF: vbsfProcessCreate: Path not found\n"));
    311315            *pulCreateAction = FILE_DOES_NOT_EXIST;
     
    327331            Status = STATUS_UNSUCCESSFUL;
    328332            goto failure;
    329 
    330             break;
    331333        }
    332334
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