EldoS | Feel safer!

Software components for data protection, secure storage and transfer

[iOS]Storage Create Error

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#28355
Posted: 02/09/2014 22:28:13
by Jaege Kim (Basic support level)
Joined: 12/15/2013
Posts: 6

Hello.

I have tried to create storage file on iOS, but I have got an error code which seems a system error.
I am not sure, but it looks like permission error(Operation not permitted)


Would you please explain me the reason why?

Code
void SolFSStorage::Create(const PSolFSWideChar fileName, bool overwrite, long pageSize, const PSolFSWideChar logo)
{

    SolFSHandle storageHandle;
    if (m_Storage != 0)
        Close();

///////////////////////////////////////////////////////////////////////////////
//Error occurred below : error code is 1
///////////////////////////////////////////////////////////////////////////////
    CheckStorageResult(StorageCreate(fileName,  overwrite, pageSize, logo,
        &storageHandle, m_PathSeparator, m_UseTransactions, m_UseAccessTime));
///////////////////////////////////////////////////////////////////////////////


    m_Storage = storageHandle;
    Opened();
}
#28356
Posted: 02/10/2014 01:50:30
by Alexander Plas (EldoS Corp.)

Hello

You are right, this is a system error EPERM (Operation not permitted). Most of all you try to create the storage file in the directory where the process doesn't have permissions to create the file. Refer please to our iOS example application, there is the code to retrieve path to the directory where storage file can be created.
#28357
Posted: 02/10/2014 05:05:59
by Jaege Kim (Basic support level)
Joined: 12/15/2013
Posts: 6

Hello.

Thank you for your kind response.
I have a question about iOS example, does it mean 'console example source' in release version?

We have been evaluating SolFS, so I can not find any other source codes besides sample source code in released version.

If I can not get any way through console sample code, would you please let me know the way I can try?
#28358
Posted: 02/10/2014 05:19:29
by Alexander Plas (EldoS Corp.)

Sorry, the iOS example wasn't included in the archive on the site, we will update it. In addition I'll post the example for you in the HelpDesk.
#28364
Posted: 02/10/2014 20:26:00
by Jaege Kim (Basic support level)
Joined: 12/15/2013
Posts: 6

O.K.
Thank you very much for your quick help.

It works well.
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

Topic viewed 3725 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!