#338·duf

`duf` cannot find all NFSv4 mountpoints

Author: LittleNewtonCreated Oct 13, 2025Updated Nov 7, 2025

Heya,

I have multiple NFSv4 shares, which are based on ZFS storage.

Recently, I discovered that it is essential to export all nested ZFS datasets to make them visible on an NFS client. For example:

  • NFS-server:
    • /mnt/pool/dataset/sub_dataset1
    • /mnt/pool/dataset/sub_dataset2
  • exports on NFS server:
    • /mnt/pool/dataset/sub_dataset1
    • /mnt/pool/dataset/sub_dataset2

Only mounting /mnt/pool/dataset/ on the NFS client allows both sub_dataset1 and sub_dataset2 to be mounted successfully. I believe sub_dataset1 and sub_dataset2 should be two separate mountpoints. But duf can only find mnt/pool/dataset/. However, after I manually traversed these two sub-datasets, duf can find them all!