lkml.org 
[lkml]   [2006]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Flames over -- Re: Which is simpler?
Hi!


> >You are ignoring the question of how the kernel can tell whether two
> >devices are in fact the same. There is no safe way to do this,
> >other than having the hardware verify that the device was connected
> >the whole time.
> >
> >
> If there is no better way to tell for sure that the device that is
> now there is not the same as the one that was there, then the kernel
> must assume the user did not do something stupid and continue to use

Must?! Are you Linus or what?

> the device as if it was not disconnected ( because odds are, it in
> fact, was not ). In other words, which is more safe? ALLWAYS
> loosing data because you can't be absolutely sure that the device is
> the same, or only loosing data if the user does something as foolish
> as swapping drives while suspended, and you can't tell they did?

You are missing this. In 1st case, no data is actually lost, because of
sync in suspend code;
while second case is "goodbye, filesystem".
Pavel
--
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-18 13:59    [from the cache]
©2003-2011 Jasper Spaans