Ticket #2379 (closed defect: fixed)
Shared folders - unable to seek beyond 2GB => Fixed in SVN
Reported by: | prekageo | Owned by: | |
---|---|---|---|
Component: | shared folders | Version: | VirtualBox 2.0.2 |
Keywords: | Cc: | ||
Guest type: | Linux | Host type: | Windows |
Description
I am using VirtualBox 2.0.2 on Windows XP SP2 running Linux 2.6.18 as a guest OS. When I create a file larger than 2GB I am unable to seek into it past the 2GB point. Using this command works as expected: dd if=/mnt/windows/testfile bs=1k skip=2097151 count=1
But using this command it takes a lot of time to read the record: dd if=/mnt/windows/testfile bs=1k skip=2097152 count=1
The reason is (as shown by strace) that the initial llseek fails so dd tries to read the whole file from the beginning in order to reach the requested record.
The reason is that the field s_maxbytes of super_block struct is not initialized by the vboxvfs module. I have attached a possible fix.
Attachments
Change History
Changed 14 years ago by prekageo
-
attachment
patch.diff
added
Note: See
TracTickets for help on using
tickets.
Possible fix