The MP3car.com Store  

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.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Coders Corner

Reply
 
Thread Tools Search this Thread Display Modes
Old 08-14-2007, 04:28 PM   #1
Newbie
Zorro_X's CarPC Specs
 
Zorro_X's Avatar
 
Join Date: Aug 2007
Location: France
Posts: 30
My Photos: (3)
Question 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,
__________________
Zorro_><
Z-Car Cockpit : http://zcarcockpit.free.fr

Last edited by Zorro_X; 08-14-2007 at 04:30 PM.
Zorro_X is offline   Reply With Quote
Sponsored Links
Old 08-14-2007, 07:50 PM   #2
FLAC
 
SFiorito's Avatar
 
Join Date: May 2004
Vehicle: 2006 Impreza WRX Limited
Posts: 1,153
My Photos: (0)
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.
SFiorito is offline   Reply With Quote
Old 08-15-2007, 01:23 AM   #3
Newbie
Zorro_X's CarPC Specs
 
Zorro_X's Avatar
 
Join Date: Aug 2007
Location: France
Posts: 30
My Photos: (3)
Thank you, i'll investigate those ways.
__________________
Zorro_><
Z-Car Cockpit : http://zcarcockpit.free.fr
Zorro_X is offline   Reply With Quote
Old 08-15-2007, 12:54 PM   #4
Maximum Bitrate
 
tn6478's Avatar
 
Join Date: Jun 2006
Location: Houston, TX
Posts: 776
My Photos: (0)
Quote: Originally Posted by SFiorito View Post
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?
tn6478 is offline   Reply With Quote
Old 08-27-2007, 10:04 PM   #5
Low Bitrate
erie's CarPC Specs
 
erie's Avatar
 
Join Date: May 2006
Location: USA
Vehicle: 2006 Honda Civic Si
Posts: 84
My Photos: (3)
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]-
erie is offline   Reply With Quote
Old 08-27-2007, 10:17 PM   #6
Low Bitrate
erie's CarPC Specs
 
erie's Avatar
 
Join Date: May 2006
Location: USA
Vehicle: 2006 Honda Civic Si
Posts: 84
My Photos: (3)
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]-
erie is offline   Reply With Quote
Old 08-28-2007, 05:14 PM   #7
FLAC
 
SFiorito's Avatar
 
Join Date: May 2004
Vehicle: 2006 Impreza WRX Limited
Posts: 1,153
My Photos: (0)
If you look at this thread: http://www.mp3car.com/vbulletin/winn...bling-ewf.html

You can download some tools I wrote to mount/unmount SDI files and commit the file to the EWF disk.

This site explains setting up Startup/Shutdown scripts using XP Group Policy: http://www.microsoft.com/resources/d....mspx?mfr=true

The SDI will not change in size so it will not corrupt the volume, but the contents can change with no problem.
SFiorito is offline   Reply With Quote
Old 08-29-2007, 03:11 AM   #8
Variable Bitrate
 
Join Date: Sep 2004
Location: Slovenia (EU)
Posts: 313
My Photos: (0)
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?
stric is offline   Reply With Quote
Old 08-29-2007, 07:16 AM   #9
FLAC
 
SFiorito's Avatar
 
Join Date: May 2004
Vehicle: 2006 Impreza WRX Limited
Posts: 1,153
My Photos: (0)
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.
SFiorito is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible solution for saving files on EWF systems (without disabling EWF) SFiorito WinNT Based 11 03-13-2008 01:46 AM
Using EWF on regular WinXP SFiorito WinNT Based 193 06-18-2007 07:50 PM
Media drive on EWF system garto Operating System Optimization 1 06-07-2007 08:31 PM
eWF and Documents And Settings masch WinNT Based 7 05-09-2006 11:36 AM
Minlogon, EWF and HORM - Problem Fuzzy screen menus after HORM hibernate ruairi Operating System Optimization 0 11-30-2005 07:51 AM


All times are GMT -5. The time now is 08:39 PM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics