VirtualBox

Changeset 77964 in vbox for trunk


Ignore:
Timestamp:
Mar 30, 2019 11:37:59 AM (6 years ago)
Author:
vboxsync
Message:

linux/vboxsf: Adjusted ftruncate trick for skipping MTIME+CTIME updating, now we're really skipping the unnecessary VbglR0SfHostReqSetObjInfo call. bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/utils.c

    r77963 r77964  
    815815         */
    816816        unsigned fAttrs = iattr->ia_valid;
    817         if (   fAttrs == (ATTR_SIZE | ATTR_MTIME | ATTR_CTIME)
     817        if (   (fAttrs & ~ATTR_FILE) == (ATTR_SIZE | ATTR_MTIME | ATTR_CTIME)
    818818#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24)
    819819            || (fAttrs & (ATTR_OPEN | ATTR_SIZE)) == (ATTR_OPEN | ATTR_SIZE)
     
    873873                        } else {
    874874                            LogFunc(("file %s does not exist\n", sf_i->path->String.utf8));
    875                             vbsf_dentry_invalidate_ttl(pDirEntry);
     875                            vbsf_dentry_invalidate_ttl(dentry);
    876876                            sf_i->force_restat = true;
    877877                            rc = -ENOENT;
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