To Developers, I have seen a different behaviour in XFS Suppose I have a file with inode number "131", I have noticed that the inode number of file got changed without deleting the file. When we change the data of the file everytime it changes the inode number. The complete description over the test is as follows Steps are as follows: 1) I have created a file using "dd" of size 100MB: #dd if=/dev/zero of=xfs.img bs=1M count=100 2) Created a loopback device over the image: #losetup /dev/loop1 xfs.img 3) Created file system: #mkfs.xfs /dev/loop1 4) Mounted: #mount /dev/loop1 /mnt/xfs_mnt 5) Please check the mount output: # mount /dev/sdb2 on / type ext3 (rw,acl,user_xattr) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) debugfs on /sys/kernel/debug type debugfs (rw) devtmpfs on /dev type devtmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,mode=1777) devpts on /dev/pts type devpts (rw,mode=0620,gid=5) fusectl on /sys/fs/fuse/connections type fusectl (rw) rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) /dev/loop0 on /mnt/mount_test type xfs (rw) /dev/loop1 on /mnt/xfs_mnt type xfs (rw) 6) Created a file using "touch" # touch kundra.txt 7) Checking the file and its inode number: # ls -li total 0 131 -rw-r--r-- 1 root root 0 2012-10-20 01:41 kundra.txt 8) I have written some data using the vim editor, I can't provide snapshot of vim on the list: #vim kundra.txt 9) Now I checked the inode number using the "ls -li" # ls -li total 4 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. Please provide some description over this issue, I am working on Linux SLES # cat /etc/issue Welcome to SUSE Linux Enterprise Server 11 SP1 (x86_64) - Kernel \r (\l). # uname -a Linux linux-sles 2.6.32.19-0.6-default #1 SMP Fri Aug 31 01:37:50 IST 2012 x86_64 x86_64 x86_64 GNU/Linux Thanks & Best Regards Anshul Kundra
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. ---------------------------------------------------------------------------------------------------------------------------------------------------- |
_______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs