Changeset 23551 in vbox
- Timestamp:
- Oct 5, 2009 11:28:35 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.c
r21683 r23551 261 261 sb->s_blocksize = 1024; 262 262 #if LINUX_VERSION_CODE >= KERNEL_VERSION (2, 4, 3) 263 sb->s_maxbytes = ~0ULL; /* seek */ 263 /* Required for seek/sendfile. 264 * 265 * Must by less than or equal to INT64_MAX despite the fact that the 266 * declaration of this variable is unsigned long long. See determination 267 * of 'loff_t max' in fs/read_write.c / do_sendfile(). I don't know the 268 * correct limit but MAX_LFS_FILESIZE (8TB-1 on 32-bit boxes) takes the 269 * page cache into account and is the suggested limit. */ 270 # if defined MAX_LFS_FILESIZE 271 sb->s_maxbytes = MAX_LFS_FILESIZE; 272 # else 273 sb->s_maxbytes = 0x7fffffffffffffffULL; 274 # endif 264 275 #endif 265 276 sb->s_op = &sf_super_ops;
Note:
See TracChangeset
for help on using the changeset viewer.