EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How to increase file size ?

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#23050
Posted: 01/04/2013 11:13:38
by Vladimir Cherniga (EldoS Corp.)

Quote
1 WriteFile: Move start position to 512 and write buffer.

Did you try to write buffer with a length that is greater than current EOF ? Current EOF should be already fixed in the time of non-cached write. Do you perform read/write with a handle obtained with CallbackFilter::OpenFile() api ?
#23061
Posted: 01/05/2013 02:25:59
by Mia Pak (Priority Standard support level)
Joined: 11/19/2012
Posts: 16

Quote
Did you try to write buffer with a length that is greater than current EOF ?

I moved current EOF to "Current EOF+512" in SetEndOfFile Callback.
But Currend EOF is modified by cached writing without firing SetEndOfFile Event.
So I can't fix current EOF to much size. That's reason that I tried to modify current EOF in WriteEvent Callback using by setendoffile.

Quote
Do you perform read/write with a handle obtained with CallbackFilter::OpenFile() api ?

I performed read/write with handle from CallbackFilter::OpenFile.
#23066
Posted: 01/07/2013 02:49:30
by Vladimir Cherniga (EldoS Corp.)

Try to increase file size in cached write or asynchronously from another thread.
#23067
Posted: 01/07/2013 02:54:01
by Vladimir Cherniga (EldoS Corp.)

Skip this post.
#23070
Posted: 01/07/2013 05:20:48
by Vladimir Cherniga (EldoS Corp.)

Did you try also use the CallbackFilter.SetEndOfFile() api ?
#23072
Posted: 01/07/2013 06:16:13
by Mia Pak (Priority Standard support level)
Joined: 11/19/2012
Posts: 16

Quote
Did you try also use the CallbackFilter.SetEndOfFile() api ?

Yes, I use the Calbackfilter's SetEndofFile.

Quote
Try to increase file size in cached write or asynchronously from another thread.

I tried to increase file size in cached write used by CallbackFilter's SetEndOfFile. But It's caused desktop hang too.
And I tried another thread. but It's not work.
#23073
Posted: 01/07/2013 06:32:21
by Vladimir Cherniga (EldoS Corp.)

Quote
And I tried another thread. but It's not work.

Make sure that you didn't call CallbackFilter.SetEndOfFile out of callbacks. It should be used from callback hanlder only.
If you can post a working sample that demonstrate hanging problem, we could check the source of issue in kernel. May be you should create a corresponding ticket in helpdesk system.
#23799
Posted: 02/27/2013 16:43:03
by James FitzGerald (Priority Standard support level)
Joined: 02/27/2013
Posts: 4

I am also experiencing problems with extending the file size where I encounter hangs when calling CallbackFilter.SetEndOfFile.

They are definitely being called within a callback, tried both from within SetEndOfFile Callback and from within Write callback.

I have extended your XOR encrypt example to include a header of 512 bytes as described above.

Okay if I attach it here? I would love to know the correct approach to take to increase the file size.
#23800
Posted: 02/27/2013 16:58:52
by Vladimir Cherniga (EldoS Corp.)

Did you check the new build of CallbackFilter with a EncryptWithHeader sample ? This sample demonstrate the solution for size file modification. It is also requires an updated driver version support.
#23887
Posted: 03/01/2013 08:37:58
by James FitzGerald (Priority Standard support level)
Joined: 02/27/2013
Posts: 4

Thanks! I didn't realize that had just come out. It is very informative.

Thanks again.
Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.

Reply

Statistics

Topic viewed 8504 times

Number of guests: 2, 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!