Welcome to the MP3Car.com forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
|
08-14-2007, 04:28 PM
|
#1
|
|
Newbie
Join Date: Aug 2007
Location: France
Posts: 30
|
Bypass EWF ?
Hello,
I'm using EWF to protect CF disk. That works quite well ! But for debuggin purposes and persistent data of my embedded application, I need to bypass EWF to write 1 or 2 files (debug log & persistent data files).
I wonder if there is a way to do it using windows API. Some kind of "ewf commit and disable" command without doing a nasty "system" call ?
I'm using C++ (so using the C API).
In another hand, I know that you usually do partitionning of the CF and don't protect the partition where you want to write. I can do that, but it will be more interesting for me if i can bypass EWF.
Thank you in advance for your answers,
Last edited by Zorro_X; 08-14-2007 at 04:30 PM.
|
|
|
08-14-2007, 07:50 PM
|
#2
|
|
FLAC
Join Date: May 2004
Vehicle: 2006 Impreza WRX Limited
Posts: 1,153
|
well, you can use EwfCommitFile in the EWF API but it only works on files that don't change in size. You can also search the OS forums for an old thread of mine where I describe creating a fixed size virtual disk that you can then write any number of files into. Since the virtual disk is fixed size you can then commit it and maintain state.
Otherwise you can use FBWF File Based Write Filter, but I haven't gotten around to write a tutorial for that.
|
|
|
08-15-2007, 01:23 AM
|
#3
|
|
Newbie
Join Date: Aug 2007
Location: France
Posts: 30
|
Thank you, i'll investigate those ways.
|
|
|
08-15-2007, 12:54 PM
|
#4
|
|
Maximum Bitrate
Join Date: Jun 2006
Location: Houston, TX
Posts: 776
|
Quote: Originally Posted by SFiorito 
well, you can use EwfCommitFile in the EWF API but it only works on files that don't change in size. You can also search the OS forums for an old thread of mine where I describe creating a fixed size virtual disk that you can then write any number of files into. Since the virtual disk is fixed size you can then commit it and maintain state.
Otherwise you can use FBWF File Based Write Filter, but I haven't gotten around to write a tutorial for that.
How do you excute those files to mount and unmount at shutdown and startup. Also if the files change the partition get screw?
|
|
|
08-27-2007, 10:04 PM
|
#5
|
|
Low Bitrate
Join Date: May 2006
Location: USA
Vehicle: 2006 Honda Civic Si
Posts: 84
|
how about this?
http://msdn2.microsoft.com/en-us/library/ms912855.aspx
I dont know C but I think this might be helpfull.
__________________
06 Galaxy Gray Si #0308
CarPc Progress -
10%---------50%---------100%
-[XXXXXXXXXXXXXXXXXXXXXX]-
|
|
|
08-27-2007, 10:17 PM
|
#6
|
|
Low Bitrate
Join Date: May 2006
Location: USA
Vehicle: 2006 Honda Civic Si
Posts: 84
|
tn6478, you dont have to use code to persist data. I have used the Registry Filter component and it is easy to work with http://msdn2.microsoft.com/en-us/library/aa940857.aspx
A trick I use on my work images is to use a registry key to keep all the settings for the custom apps. If you want debug data, write custom events to the system event log. Next configure the registry filter to persist the event logs.
__________________
06 Galaxy Gray Si #0308
CarPc Progress -
10%---------50%---------100%
-[XXXXXXXXXXXXXXXXXXXXXX]-
|
|
|
08-29-2007, 03:11 AM
|
#8
|
|
Variable Bitrate
Join Date: Sep 2004
Location: Slovenia (EU)
Posts: 313
|
So if user would use one SDI partition on CF for settings, error logs, and other changable files ... how would that affect the life of CF card (I understand it would shorten it  , but how much).
What if you have 1GB SDI partition also for cam videos, updates and so on? What would that mean for CF's lifetime?
|
|
|
08-29-2007, 07:16 AM
|
#9
|
|
FLAC
Join Date: May 2004
Vehicle: 2006 Impreza WRX Limited
Posts: 1,153
|
Clearly it wouldn't help it, but the the writes would happen once at a time instead of continuously. Also, if your system is set to sleep and only shutdown after a prolonged amount of time you may only write the SDI once or twice a day.
Obviously this isn't the best option, but if you have no other choice then it's a good alternative.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:39 PM.
|
|