Discussione: Linux vs. Microsoft
View Single Post
Old 22-03-2007, 18:13   #151
Cimmo
Senior Member
 
L'Avatar di Cimmo
 
Iscritto dal: Jan 2001
Cittā: California
Messaggi: 7174
Non so dopo aver letto queste due cose non sono sicuro che vada a genio per me XFS e forse risponde anche alla domanda di cionci:
http://en.wikipedia.org/wiki/XFS

Quote:
# XFS journals metadata. This means that if you pull the power cord out of your computer, when you turn it on again, XFS will be in a consistent state (i.e. you will see your directories, and be able to list the files they contain). This is an advantage compared to not being able to see anything. However, you will probably have lost the data from files that were open at the time of pulling out the power cord because XFS does not journal data changes. SGI (August 28, 2006). XFS FAQ. XFS is not alone here — some other file systems (such as JFS) also journal metadata changes and not data changes because it's a good strategy when mediating between speed requirements and safety.

# XFS takes a liberal reading of SuS when it comes to optimizing delayed allocation and the ordering of meta-data and data flush to disk. As a consequence, some operations that work with ext3 or ReiserFS in data=ordered mode have caused data corruption for several people:

echo "original data here" > data
echo "new data goes here" > data.new
mv data.new data
*crash*

With the three commands run just before a crash or power loss, there is a chance the file will have random data or null characters. See this bug report in Ubuntu and this posting from a XFS developer on linux-xfs for opposing views on this issue.
Cimmo č offline