VirtualBox

Changeset 77960 in vbox for trunk


Ignore:
Timestamp:
Mar 30, 2019 1:44:13 AM (6 years ago)
Author:
vboxsync
Message:

linux/vboxsf: Pretend we can do nano-second timestamp resolution. bugref:9172

File:
1 edited

Legend:

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

    r77959 r77960  
    558558         * root inode creation).
    559559         */
    560         sb->s_magic = 0xface;
     560        sb->s_magic     = 0xface;
    561561        sb->s_blocksize = 1024;
    562562#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 3)
    563563        /* Required for seek/sendfile (see 'loff_t max' in fs/read_write.c / do_sendfile()). */
    564564# if defined MAX_LFS_FILESIZE
    565         sb->s_maxbytes = MAX_LFS_FILESIZE;
     565        sb->s_maxbytes  = MAX_LFS_FILESIZE;
    566566# elif BITS_PER_LONG == 32
    567         sb->s_maxbytes = (loff_t)ULONG_MAX << PAGE_SHIFT;
     567        sb->s_maxbytes  = (loff_t)ULONG_MAX << PAGE_SHIFT;
    568568# else
    569         sb->s_maxbytes = INT64_MAX;
     569        sb->s_maxbytes  = INT64_MAX;
    570570# endif
    571571#endif
    572         sb->s_op = &g_vbsf_super_ops;
     572#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 11)
     573        sb->s_time_gran = 1; /* This might be a little optimistic for windows hosts, where it should be 100. */
     574#endif
     575        sb->s_op        = &g_vbsf_super_ops;
    573576#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38)
    574         sb->s_d_op = &vbsf_dentry_ops;
     577        sb->s_d_op      = &vbsf_dentry_ops;
    575578#endif
    576579
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