<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">after install libguestfs_xfs,  all results are:<br><div><br></div><div>[using guestfish]</div><div>guestfish -N fs:xfs -m /dev/sda1 statvfs /</div><div>bsize: 4096</div><div>frsize: 4096</div><div>blocks: 24713</div><div>bfree: 23391</div><div>bavail: 23391</div><div>files: 51136</div><div>ffree: 51133</div><div>favail: 51133</div><div>fsid: 2049</div><div>flag: 4096</div><div>namemax: 255</div><div><br></div><div>[using virt-rescure]</div><div>virt-rescue -a test1.img</div><div><div>><rescue> mount /dev/sda1 /sysroot</div><div>><rescue> stat -f /sysroot</div><div>  File: "/sysroot" </div><div>    ID: 80100000000 Namelen: 255     Type: xfs</div><div>Block size: 4096       Fundamental block size: 4096</div><div>Blocks: Total: 24713      Free: 23391      Available: 23391</div><div>Inodes: Total: 51136      Free: 51133</div></div><div><br></div><div>the free numbers are the same. but the "virt-df" output is not changed.</div><div><br></div><div>Thanks,</div><div>Chen</div><br><br><div style="position:relative;zoom:1"></div><br><pre><br>ÔÚ 2018-01-07 20:22:28£¬"Richard W.M. Jones" <rjones@redhat.com> Ð´µÀ£º
>On Sun, Jan 07, 2018 at 08:11:58PM +0800, ³Â·« wrote:
>> Sorry for the late reply. when I used your method to execute command:
>>  $guestfish -N fs:xfs -m /dev/sda1 statvfs /
>> libguestfs: error: mkfs: xfs: /dev/sda1: mkfs.xfs: No such file or directory
>> guestfish: error creating prepared disk image 'fs:xfs' on 'test1.img': failed to create filesystem (xfs): mkfs: xfs: /dev/sda1: mkfs.xfs: No such file or directory
>
>You need to install ¡®libguestfs-xfs¡¯.
>
>Rich.
>
>-- 
>Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
>Read my programming and virtualization blog: http://rwmj.wordpress.com
>virt-p2v converts physical machines to virtual machines.  Boot with a
>live CD or over the network (PXE) and turn machines into KVM guests.
>http://libguestfs.org/virt-v2v
</pre></div>