Fwd: Inode number changing

Ganesh Patil patil.ganesh170 at gmail.com
Fri Mar 9 08:31:11 EST 2012


---------- Forwarded message ----------
From: Ganesh Patil <patil.ganesh170 at gmail.com>
Date: Fri, 9 Mar 2012 18:47:45 +0530
Subject: Inode number chenging
To: "rishi.b.agrawal" <rishi.b.agrawal at gmail.com>, akshaynehe785
<akshaynehe785 at gmail.com>, "ashishmayekar.32"
<ashishmayekar.32 at gmail.com>

Sir, every time when I modify file content then file's inode get change.
Why this is happening?
Below I have pasted the output please check inode numbers.

[root at localhost Ganesh]# dmesg -c
[  519.922272] h44: module license 'unspecified' taints kernel.
[  519.922275] Disabling lock debugging due to kernel taint
[  519.922496] inode no of file=12
[  519.922502] size of file =0
[  519.922503] size of file copied =0
[  519.922504] data blocks=
[  519.922505] 62218
[  586.939834] Goodbye world 1.

[root at localhost Ganesh]# insmod h44.ko
[root at localhost Ganesh]# dmesg
[  612.939502] inode no of file=14
[  612.939511] size of file =1201
[  612.939514] size of file copied =1201
[  612.939516] data blocks=
[  612.939519] 127754

[root at localhost Ganesh]# insmod h44.ko
[root at localhost Ganesh]# dmesg
[ 1535.300545] inode no of file=15
[ 1535.300554] size of file =5716
[ 1535.300555] size of file copied =5716
[ 1535.300556] data blocks=
[ 1535.300557] 127754


Sir, I have cross checked with another file system with stat
command.Again I found same result.



-- 
Regards,
Ganesh Patil.



More information about the Kernelnewbies mailing list