UFS What is the command for UFS that is equivalent to the command 'fstrim' for EXT4 ?

Hello,

What is the command for UFS that is equivalent to the command fstrim for EXT4 ?

I am asking because I have a bhyve guest running Debian 10.3 (named "capside").

Inside the guest, I ran fstrim / that that freed up storage capacity in the corresponding ZFS dataset on the host (FreeBSD 12.1-RELEASE):

Code:
root@atlantis:~ # zfs list tank/vm-bhyve/capside/disk0
NAME                          USED  AVAIL  REFER  MOUNTPOINT
tank/vm-bhyve/capside/disk0   132G  5.17T  4.13G  -

I also have a bhyve guest running FreeBSD 12.1-RELEASE. It uses UFS, but I don't know how to free up
capacity:

Code:
root@atlantis:~ # zfs list tank/vm-bhyve/nova/disk0
NAME                       USED  AVAIL  REFER  MOUNTPOINT
tank/vm-bhyve/nova/disk0  20.6G  5.04T  20.1G  -
 
Last edited by a moderator:
Back
Top