bibikurosawa / dokan

Automatically exported from code.google.com/p/dokan
0 stars 0 forks source link

Excel Files don't work #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start Mirrorfs or other Dokan Filesystem
2. Create a new Excel File and set some fields then save
3. Excel reports an error if i try to load the resulting file I get more 
errors  

What version of the product are you using? On what operating system?
Dokan 0.37

Please provide any additional information below.

It seems to work with sshfs, what's different there?
I get this errors with mirrorfs and my own .net filesystem. So I think it 
has something to do with Dokan.

FileMon Log of Excel Saving without Dokan Mirror (Direct to hdd) is 
attached. I can't log my filesystem with Filemon, because it crashes the 
System. 

Peter

Original issue reported on code.google.com by SiegelPe...@gmail.com on 25 Sep 2008 at 7:17

Attachments:

GoogleCodeExporter commented 9 years ago
On my tests with 0.39 Excel 2003 just hangs on file open from mirrorfs(it saves 
file
normally).Dokan is also hangs(drive is unusable). DokanSSHFS works correctly in 
this
case. Is there some error in mirrorfs?

Original comment by dkazimi...@gmail.com on 28 Oct 2008 at 3:56

GoogleCodeExporter commented 9 years ago
Could this be to do with Office 2003's call to CreateFile with the creation flag
CreateNew and access mode only containing read? In WinFUSE this is an issue as 
.NET's
FileEx.Open won't except it.

The work round is to check the access asked for when given CreateNew in your
CreateFile, and if so, check the access mode contains write access not just 
read access.

Silly thing to create a file with read only access if you ask me.....

Just thought it sounded like it could be related.

Original comment by joe.a.bu...@gmail.com on 21 Nov 2008 at 3:44

GoogleCodeExporter commented 9 years ago
I found one of this problem is caused by missing MoveFile function in Dokan 
mirrorfs.
This will be fixed next release of Dokan library.

Original comment by asa...@gmail.com on 23 Nov 2008 at 8:17

GoogleCodeExporter commented 9 years ago
Hi, my comment above was wrong. MovieFile file is implemented but the return 
value 
was not correct. The main reason of this problem was that OpenDirectory(in 
mirror.c) 
doesn't pass FILE_SHARE_READ|FILE_SHARE_WRITE when opening a direction.

Original comment by asa...@gmail.com on 24 Nov 2008 at 2:40

GoogleCodeExporter commented 9 years ago
Hi

If I understood this correctly I have to pass EventContext->Create.ShareAccess 
to 
if (disposition == FILE_CREATE || disposition == FILE_OPEN_IF) {
            if (DokanOperations->CreateDirectory) {
                status = DokanOperations->CreateDirectory(EventContext->Create.FileName,
                                                        &fileInfo);
            }
Is this correct?

Will there be a new release fixing this Issue? And Also Dokan.Net?
Hi joe.a.burmeister
I checked my code, in CreateFile also works when creating a File with readonly 
set.

Peter 

Original comment by SiegelPe...@gmail.com on 26 Nov 2008 at 7:43

GoogleCodeExporter commented 9 years ago
Fixed on Dokan library 0.4.0.

Original comment by asa...@gmail.com on 10 Dec 2008 at 5:23