Thank you ! <br><br>when use vim command the block number will change. but when use echo "something" > a file. the block number will not change.<br><br>zsk@zsk-laptop:~$ sudo filefrag -v a<br>
Checking a<br>
Filesystem type is: ef53<br>
Filesystem cylinder groups is approximately 104<br>
Blocksize of file a is 4096<br>
File size of a is 13 (1 blocks)<br>
<span style="background-color: rgb(255, 255, 0);">First block: 3013938</span><br style="background-color: rgb(255, 255, 0);"><span style="background-color: rgb(255, 255, 0);">
Last block: 3013938</span><br>
a: 1 extent found<br>
zsk@zsk-laptop:~$ cat a<br>
hello,world!<br>
zsk@zsk-laptop:~$ vim a <br>
zsk@zsk-laptop:~$ cat a<br>
hi,hello,world!<br>
zsk@zsk-laptop:~$ sudo filefrag -v a<br>
Checking a<br>
Filesystem type is: ef53<br>
Filesystem cylinder groups is approximately 104<br>
Blocksize of file a is 4096<br>
File size of a is 16 (1 blocks)<br>
<span style="background-color: rgb(255, 255, 51);">First block: 3013924</span><br style="background-color: rgb(255, 255, 51);"><span style="background-color: rgb(255, 255, 51);">
Last block: 3013924</span><br>
a: 1 extent found<br><br><br><div class="gmail_quote">2009/6/10 Stephen Samuel (gmail) <span dir="ltr"><<a href="mailto:darkonc@gmail.com">darkonc@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

an example test case might be useful. <br>I'm not clear what you're trying to do, or what the problem is.<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Tue, Jun 9, 2009 at 10:40 PM, Sucan Zhang <span dir="ltr"><<a href="mailto:bitzsk@gmail.com" target="_blank">bitzsk@gmail.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">Hi,<br><br>why use cat command to edit a file , the blocks of the file will not change.<br>

<br>
but use vim command to edit a file, the blocks of the file will change?<br><br>Thanks in advance! <br clear="all"><br>-- <br>Regards,<br><font color="#888888">

Sucan<br>
</font><br></div></div>_______________________________________________<br>
Ext3-users mailing list<br>
<a href="mailto:Ext3-users@redhat.com" target="_blank">Ext3-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/ext3-users" target="_blank">https://www.redhat.com/mailman/listinfo/ext3-users</a><br></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br>Stephen Samuel <a href="http://www.bcgreen.com" target="_blank">http://www.bcgreen.com</a>  Software, like love, <br>


778-861-7641                              grows when you give it away<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Sucan<br>