EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Virtual disk crash after throw ECBFSError(0x5)

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#21636
Posted: 09/20/2012 03:21:38
by Volodymyr Zinin (EldoS Corp.)

Quote
alex wrote:
1. On action mount created def folder "Root"

root folder means "\". It isn't necessary to create it. It's parent folder for all other files and directories on disk.

About the log - I see that sometimes your OnCreate callback is finished successfully when the folder "Новая папка" is being created. So CallbackFS thinks that the folder has really been created. But then from the other callbacks "NO SUCH FILE" is returned.
Check your OnCreate callback and when the request to create folder "\Новая папка" comes just return the "access denied" error. It prevents from this folder creation.
#21646
Posted: 09/20/2012 09:04:20
by alex  (Basic support level)
Joined: 09/18/2012
Posts: 6

i create next stucture
/
-> DefDir

it's test folder structure


i want than in root on create folder/directory i see access denied

my code

Code

   @Override
    public void onCreateFile(CallbackFileSystem callbackFileSystem, String FileName, long DesiredAccess, long FileAttributes, long ShareMode, byteArrayRef FileHandleContext) throws Exception {
        VirtualFile vdir;

        vdir = FindVirtualDirectory(FileName);
        if(vdir.getParent() == null){
            throw new ECBFSError(5);
        } else {
            VirtualFile vfile = new VirtualFile(GetFileName(FileName));
            vfile.setAttributes(FileAttributes);

            Date now = new Date();
            vfile.setCreationTime(now);
            vfile.setLastAccessTime(now);
            vfile.setLastWriteTime(now);
            vdir.AddFile(vfile);

            GCHandle gch = GCHandle.Alloc(vfile);
            FileHandleContext.setValue(GCHandle.ToIntPtr(gch));
        }

    }



but as result disk is down
one time i saw "blue screen of happiness"

Reply

Statistics

Topic viewed 4154 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!