xfs_behaviour

Emmanuel Florac eflorac at intellique.com
Fri Oct 19 13:10:28 CDT 2012


Le Fri, 19 Oct 2012 20:05:46 +0530 vous écriviez:

> 133 -rw-r--r-- 1 root root 19 2012-10-20 01:43 kundra.txt
> 
> Please check that the inode number ( from "131" to "133" )  and total
> value (from "0" to "4" )in the filesystem got changed, I am assuming
> that the reasom may be due to filesystem of small size but it is
> showing unexpected behaviour.
> 

Definitely not xfs related. Try modifying the file with cat or echo:

emmanuel[/mnt/downloads]$ ll -i toto
85346879 -rw-r--r-- 1 emmanuel users 6 oct.  19 20:06 toto
emmanuel[/mnt/downloads]$ echo lrgezjn > toto
emmanuel[/mnt/downloads]$ ll -i toto
85346879 -rw-r--r-- 1 emmanuel users 8 oct.  19 20:07 toto


Most file editor use a temporary file and rename it when saving (to
avoid destroying the file in case of an error). This is what a good file
editor (like vim) must do. This is why you're seeing this behaviour.

regards,
-- 
------------------------------------------------------------------------
Emmanuel Florac     |   Direction technique
                    |   Intellique
                    |	<eflorac at intellique.com>
                    |   +33 1 78 94 84 02
------------------------------------------------------------------------



More information about the xfs mailing list