Re: secure execution of drivers

2008-11-25 Thread Russell Coker
On Tuesday 25 November 2008 22:29, "Aneurin Price" <[EMAIL PROTECTED]> 
wrote:
> Based on my experience, I would not personally recommend XFS to anyone who
> cannot guarantee that their system will absolutely never crash or suffer
> power failure. XFS's failure modes seem pretty disastrous. Then again I
> never had any problems when I was using reiserfs, so YMMV.

One issue with XFS is that data which is not written synchronously (IE opened 
with O_DIRECT or O_SYNC) or explicitly synchronised with fsync() may stay in 
the write-back cache for up to 30 seconds (compared with 5 seconds for 
Ext2/3).

Now for correctly written applications that call fsync() when appropriate this 
should not be a problem.  But for buggy applications this can cause 
significant problems.

One example where this caused a disaster was a program that used the create 
and rename method of replacing a file.  It would often replace the file more 
than once in 30 seconds.  This meant that on XFS the main file and the backup 
could end up without any data blocks but on Ext3 as the period was >5 seconds 
it mostly worked.  Of course the program in question worked better on Ext3 as 
well once I put a fsync() call in the source...

-- 
[EMAIL PROTECTED]
http://etbe.coker.com.au/  My Main Blog
http://doc.coker.com.au/   My Documents Blog


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: secure execution of drivers

2008-11-25 Thread Aneurin Price
On Tue, Nov 25, 2008 at 8:46 AM, Dani <[EMAIL PROTECTED]> wrote:
> After this incident, I have been studying the file systems and I have no
> clear use for which it does not happen again. The ext3 seems good option,
> but it appears that more "heavy" than others. jfs is not bad pint but, as
> I've seen, is not very mature yet. xfs ,I think it is the middle point, but
> not clear to me. Any suggestions?
>
>

Based on my experience, I would not personally recommend XFS to anyone who
cannot guarantee that their system will absolutely never crash or suffer
power failure. XFS's failure modes seem pretty disastrous. Then again I
never had any problems when I was using reiserfs, so YMMV.

-Nye


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: secure execution of drivers

2008-11-25 Thread Dani
After this incident, I have been studying the file systems and I have no 
clear use for which it does not happen again. The ext3 seems good 
option, but it appears that more "heavy" than others. jfs is not bad 
pint but, as I've seen, is not very mature yet. xfs ,I think it is the 
middle point, but not clear to me. Any suggestions?



Rolf Kutz escribió:

On 21/11/08 09:29 +0100, Dani wrote:
when the driver fault, I was in the midst of rebuilding the system 
and  had multiple virtual machines running. The result was that 
reiserfs  


Did those VMs have reiserfs-partitions, too?
Reisefs has problems recovering when there are
reiserfs-images inside a reiserfs-partition.

which completely destroyed. when it had recovered more files on  
/LOST+FOUND than in the rest of the system ... in short, a disaster. 
I  hope to find some solution for when the driver fail again


Use a better fs.

regards, Rolf




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: secure execution of drivers

2008-11-25 Thread Wolfgang Jeltsch
Am Dienstag, 25. November 2008 06:41 schrieb Rolf Kutz:
> On 21/11/08 09:29 +0100, Dani wrote:
> > when the driver fault, I was in the midst of rebuilding the system and
> > had multiple virtual machines running. The result was that reiserfs
>
> Did those VMs have reiserfs-partitions, too?
> Reisefs has problems recovering when there are
> reiserfs-images inside a reiserfs-partition.
>
> > which completely destroyed. when it had recovered more files on
> > /LOST+FOUND than in the rest of the system ... in short, a disaster. I
> > hope to find some solution for when the driver fail again
>
> Use a better fs.
>
> regards, Rolf

What file system would you prefer?

Best wishes,
Wolfgang


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: secure execution of drivers

2008-11-24 Thread Rolf Kutz

On 21/11/08 09:29 +0100, Dani wrote:
when the driver fault, I was in the midst of rebuilding the system and  
had multiple virtual machines running. The result was that reiserfs  


Did those VMs have reiserfs-partitions, too?
Reisefs has problems recovering when there are
reiserfs-images inside a reiserfs-partition.

which completely destroyed. when it had recovered more files on  
/LOST+FOUND than in the rest of the system ... in short, a disaster. I  
hope to find some solution for when the driver fail again


Use a better fs.

regards, Rolf

--
... Expediency asks the question, 'Is it politic?' ...


signature.asc
Description: Digital signature


Re: secure execution of drivers

2008-11-21 Thread Michael Iatrou
When the date was Friday 21 November 2008, Dani wrote:

> when the driver fault, I was in the midst of rebuilding the system and
> had multiple virtual machines running. The result was that reiserfs
> which completely destroyed. when it had recovered more files on
> /LOST+FOUND than in the rest of the system ... in short, a disaster. I
> hope to find some solution for when the driver fail again

The fact that you were using virtual machines is interesting: depending on 
which virtualization platform you use, you may can create images for the 
VMs on seperate bare partitions (not over reiserfs). So, in similar cases, 
at least you could keep the VMs in tact.

-- 
 Michael Iatrou (ozuh)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: secure execution of drivers

2008-11-21 Thread Dani
when the driver fault, I was in the midst of rebuilding the system and 
had multiple virtual machines running. The result was that reiserfs 
which completely destroyed. when it had recovered more files on 
/LOST+FOUND than in the rest of the system ... in short, a disaster. I 
hope to find some solution for when the driver fail again




When the date was Thursday 20 November 2008, Florian Weimer wrote:

  

* Michael Iatrou:


When the date was Wednesday 19 November 2008, Dani d wrote:
  

hello everybody.
   I recently had a problem with drivers of my pc. The driver of the
wifi sometimes it hung and the last time it broke my entire reiserfs
file system and badly I've been able to recover. I would like to know
if there is any way to run the drivers on some sort of secure
environment so that it fails or is compromised not affect the rest of
the system


No, there isn't (yet).
  

However, there are less dynamic file systems for which recovery will
be somewhat easier.



This is indeed the truth, but since data integrity cannot be assured under 
such circumstances, I couldn't sleep better at night thinking "Well, my 
ext3 undergone another corruption, but at least I don't have to rebuild 
that awful B-tree" :>


  



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: secure execution of drivers

2008-11-20 Thread Michael Iatrou
When the date was Thursday 20 November 2008, Florian Weimer wrote:

> * Michael Iatrou:
> > When the date was Wednesday 19 November 2008, Dani d wrote:
> >> hello everybody.
> >>I recently had a problem with drivers of my pc. The driver of the
> >> wifi sometimes it hung and the last time it broke my entire reiserfs
> >> file system and badly I've been able to recover. I would like to know
> >> if there is any way to run the drivers on some sort of secure
> >> environment so that it fails or is compromised not affect the rest of
> >> the system
> >
> > No, there isn't (yet).
>
> However, there are less dynamic file systems for which recovery will
> be somewhat easier.

This is indeed the truth, but since data integrity cannot be assured under 
such circumstances, I couldn't sleep better at night thinking "Well, my 
ext3 undergone another corruption, but at least I don't have to rebuild 
that awful B-tree" :>

-- 
 Michael Iatrou (cmyt)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: secure execution of drivers

2008-11-20 Thread Florian Weimer
* Michael Iatrou:

> When the date was Wednesday 19 November 2008, Dani d wrote:
>
>> hello everybody.
>>I recently had a problem with drivers of my pc. The driver of the wifi
>> sometimes it hung and the last time it broke my entire reiserfs file
>> system and badly I've been able to recover. I would like to know if there
>> is any way to run the drivers on some sort of secure environment so that
>> it fails or is compromised not affect the rest of the system
>
> No, there isn't (yet).

However, there are less dynamic file systems for which recovery will
be somewhat easier.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: secure execution of drivers

2008-11-19 Thread Michael Iatrou
When the date was Wednesday 19 November 2008, Dani d wrote:

> hello everybody.
>I recently had a problem with drivers of my pc. The driver of the wifi
> sometimes it hung and the last time it broke my entire reiserfs file
> system and badly I've been able to recover. I would like to know if there
> is any way to run the drivers on some sort of secure environment so that
> it fails or is compromised not affect the rest of the system

No, there isn't (yet).

-- 
 Michael Iatrou


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: secure execution of drivers

2008-11-19 Thread Marcin Owsiany
On Wed, Nov 19, 2008 at 12:18:57PM +0100, Dani d wrote:
> hello everybody.
>I recently had a problem with drivers of my pc. The driver of the wifi
> sometimes it hung and the last time it broke my entire reiserfs file system
> and badly I've been able to recover. I would like to know if there is any
> way to run the drivers on some sort of secure environment so that it fails
> or is compromised not affect the rest of the system

This is one of the goals of microkernel based operating systems such as
GNU Hurd or Minix.

As for Linux, you can run Xen and have the wifi driver run in a separate
"driver domain". I never used xen for that particular purpose, so I
can't help you with that, but some papers seem to say this is possible.

regards,
-- 
Marcin Owsiany <[EMAIL PROTECTED]> http://marcin.owsiany.pl/
GnuPG: 1024D/60F41216  FE67 DA2D 0ACA FC5E 3F75  D6F6 3A0D 8AA0 60F4 1216


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



secure execution of drivers

2008-11-19 Thread Dani d
hello everybody.
   I recently had a problem with drivers of my pc. The driver of the wifi
sometimes it hung and the last time it broke my entire reiserfs file system
and badly I've been able to recover. I would like to know if there is any
way to run the drivers on some sort of secure environment so that it fails
or is compromised not affect the rest of the system

thanks