VirtualBox

Ignore:
Timestamp:
Feb 28, 2019 1:55:50 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129084
Message:

linux/vboxsf: Default dentry/stat TTL to 200 ms as on solaris. bugref:9172

  • Use the same stat/direntry TTL default value as we do on solaris (200 ms).
  • Changed the ttl=xxx mount option to be milliseconds rather than jiffies.
  • Force inode restat in sf_setattr() as a temp workaround for issue when TTL is non-zero (see older @todo in code).
  • Have separate dentry and inode update jiffies.
  • Reworked sf_dentry_revalidate and made it avoid restatting inodes more aggressively.
  • Extend TTL of parent dentry after successful opens and creation (does not extend to inodes, of course).
  • Stop using dentry::d_time like the rest of the file systems did around 4.9.0 (kernels back to 2.4.0 never seem to touch this from what I can tell, it was an file system internal field).
  • Since we only have one set of dentry ops, set super_block::s_d_op rather than calling d_set_d_op().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp

    r77138 r77492  
    378378        0,                     /* uid */
    379379        (int)grp_vboxsf->gr_gid, /* gid */
    380         0,                     /* ttl */
     380        -1,                    /* ttl */
    381381        0770,                  /* dmode, owner and group "vboxsf" have full access */
    382382        0770,                  /* fmode, owner and group "vboxsf" have full access */
     
    14731473    MntInfo.signature[2] = VBSF_MOUNT_SIGNATURE_BYTE_2;
    14741474    MntInfo.length       = sizeof(MntInfo);
     1475    MntInfo.ttl          = MntOpts.uid   = -1;
    14751476    MntInfo.uid          = MntOpts.uid   = 0;
    14761477    MntInfo.gid          = MntOpts.gid   = gidMount;
Note: See TracChangeset for help on using the changeset viewer.

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