- Timestamp:
- Mar 30, 2019 1:44:13 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.c
r77959 r77960 558 558 * root inode creation). 559 559 */ 560 sb->s_magic = 0xface;560 sb->s_magic = 0xface; 561 561 sb->s_blocksize = 1024; 562 562 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 3) 563 563 /* Required for seek/sendfile (see 'loff_t max' in fs/read_write.c / do_sendfile()). */ 564 564 # if defined MAX_LFS_FILESIZE 565 sb->s_maxbytes = MAX_LFS_FILESIZE;565 sb->s_maxbytes = MAX_LFS_FILESIZE; 566 566 # 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; 568 568 # else 569 sb->s_maxbytes = INT64_MAX;569 sb->s_maxbytes = INT64_MAX; 570 570 # endif 571 571 #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; 573 576 #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; 575 578 #endif 576 579
Note:
See TracChangeset
for help on using the changeset viewer.