Pretorious wrote:
Issue with statvfs()


# zfs list
NAME                   USED  AVAIL  REFER  MOUNTPOINT
mypool                 108M   868M  26.5K  /mypool
mypool/home            108M   868M  27.5K  /mypool/home
mypool/home/user-2     108M   868M   108M  /mypool/home/user-2

# df -h
Filesystem             size   used  avail capacity  Mounted on
...
mypool                 976M    26K   868M     1%    /mypool                   
<---- used not in sync with 'zfs list'
mypool/home            976M    26K   868M     1%    /mypool/home
mypool/home/user-2     976M   108M   868M    12%    /mypool/home/user-2

or my interpretation of zfs list incorrect ?

Yeah, df's "used" is zfs list's "REFER". zfs list's "used" takes into account space used by all descendant filesystems/zvols.

--matt
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to