xfs
[Top] [All Lists]

xfs_behaviour

To: "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
Subject: xfs_behaviour
From: Anshul Kundra <anshul.kundra@xxxxxxx>
Date: Fri, 19 Oct 2012 20:05:46 +0530
Accept-language: en-US
Acceptlanguage: en-US
Thread-index: Ac2uBwbIYjlOKaHARJO3cabYLIITCA==
Thread-topic: xfs_behaviour

 

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



::DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and other defects.

----------------------------------------------------------------------------------------------------------------------------------------------------

<Prev in Thread] Current Thread [Next in Thread>