Hi,<br><div class="gmail_quote"><br>i want to get the exact match between block number and sector number of a file in domU. so i do follows .<br><br><br>root@feisty:~# ls -l<br>total 1<br>-rw-r--r-- 1 root root 4 Jun  9 08:16 a<br>

<br>root@feisty:~# filefrag -v a<br>
Checking a<br>Filesystem type is: ef53<br>Filesystem cylinder groups is approximately 122<br><span style="background-color: rgb(255, 255, 153);">Blocksize of file a is 1024   </span><br>File size of a is 2 (1 blocks)<br>

<span style="background-color: rgb(255, 255, 204);">First block: 247208</span><br style="background-color: rgb(255, 255, 204);">
<span style="background-color: rgb(255, 255, 204);">Last block: 247208</span><br>a: 1 extent found<br><br><span style="background-color: rgb(255, 255, 204);">the file has one block and block size is 247208, so the secoter size is 247208 *2 +1 == 78B51 and 247208*2 +2 == 78B52    (block number count begin from 0 , sector number count begin from 1).</span><br>


<br>root@feisty:~# echo "a" >> a<br><br><span style="background-color: rgb(255, 255, 204);">command above is a write to a file</span><br><br>root@feisty:~# tail /var/log/messages <br>Jun  9 08:15:54 feisty kernel: do_blk_req cf9d1de8: cmd cf9d1e64, sec ae85e, (2/2) buffer:cf7a1800 [write]<br>


Jun  9 08:16:14 feisty kernel: do_blk_req cf9d152c: cmd cf9d15a8, sec ae7c6, (2/2) buffer:ce81ec00 [write]<br>Jun  9 08:16:19 feisty kernel: do_blk_req cf9d152c: cmd cf9d15a8, sec 2, (2/2) buffer:d06ee400 [write]<br>Jun  9 08:16:19 feisty kernel: do_blk_req cf9d1f40: cmd cf9d1fbc, sec 6, (2/2) buffer:d06eec00 [write]<br>


Jun  9 08:16:19 feisty kernel: do_blk_req cf9d1e94: cmd cf9d1f10, sec 880d0, (2/2) buffer:d0392000 [write]<br>Jun  9 08:16:19 feisty kernel: do_blk_req cf9d1de8: cmd cf9d1e64, sec 880d4, (2/2) buffer:d0392800 [write]<br>

Jun  9 08:16:19 feisty kernel: do_blk_req cf9d11d0: cmd cf9d124c, sec 880d8, (2/2) buffer:cecdf000 [write]<br>
Jun  9 08:16:19 feisty kernel: do_blk_req cf9d127c: cmd cf9d12f8, sec ac002, (2/2) buffer:cf1e4400 [write]<br>Jun  9 08:16:19 feisty kernel: do_blk_req cf9d1124: cmd cf9d11a0, sec ae25a, (2/2) buffer:cf652400 [write]<br>

Jun  9 08:16:19 feisty kernel: do_blk_req cf9d1b38: cmd cf9d1bb4, sec ae67c, (2/2) buffer:ce6d1800 [write]<br>
<br><span style="background-color: rgb(255, 255, 204);">and then to show sector number i had written, i expect to see 78B51 or 78B52 sector number. but none of then display, can you tell me why?</span><br clear="all"><br>

</div>-- <br>Regards,<br>Sucan<br>