VirtualBox

Ticket #4862 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

Files in shared folder which open in mode "w+b"(Linux guest) could not be read(Protocol Error)

Reported by: future0906 Owned by:
Priority: major Component: shared folders
Version: VirtualBox 3.0.4 Keywords:
Cc: Guest type: Linux
Host type: Windows

Description

I am using a python programe(ZODB) to read file's content in shared folder.But I got a [IOError]Protocl Error when I run the programe.And I check out the source,found that ZODB open this file in "w+b" mode.I write a very simple test programme(also python),and got the same problem.Here is the source:

#Test programme
f = open("Data.fs",mode="w+b")
f.read(10)#got error here

Data.fs is the file in shared folder.I also test in mode "r+b",it's ok for both write and read.

Attachments

VBox.log.1 Download (39.3 KB) - added by future0906 5 years ago.

Change History

Changed 5 years ago by future0906

comment:1 Changed 5 years ago by frank

Well, did you test the same on an ext3 file system? If you open a file only for writing but not for reading, then you will not be able to read from the file.

comment:2 Changed 5 years ago by future0906

Sure i did.I tested on ext3 filesystem and it work fine.Seems like some function is missing for file operation, but don't know what.As I told, open file in mode "r+b" is OK."r+" mode also provide read and write simultaneously.What difference between "r+" and "w+"?Any trick to make "w+" mode work?

comment:3 Changed 4 years ago by frank

Works fine here with a Linux guest on a Vista host. Could you check if this problem persists with VBox 3.1.2? Please update the guest additions as well!

comment:4 Changed 4 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Please reopen if still relevant (use VBox 3.1.4 now).

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use