So far so good I’ve succesfully migrated my 4tb drives to zfs.
The only “problem” if have is that windows doesn’t report the used space of the pool:
I think it’s because I used datasets but mount the “root” pool
Is there a way to fix this?
I’ve already found a way to potentially fix this. Editing the samba.conf with this:
dfree command = /boot/config/plugins/user.scripts/scripts/dfree/script
and the script that would be executed is something like this:
#!/bin/bash CUR_PATH=`pwd` USED=$((`zfs get -o value -Hp used $CUR_PATH` / 1024)) > /dev/null AVAIL=$((`zfs get -o value -Hp available $CUR_PATH` / 1024)) > /dev/null TOTAL=$(($USED+$AVAIL)) > /dev/null echo $TOTAL $AVAIL
which gives me this output:
[email protected]:/mnt/zfs# sh /boot/config/plugins/user.scripts/scripts/dfree/script 10993962589 724870574
So the script is working fine. But still the same problem with windows.
Have any of you the same problem and an idea on how to fix this?
Help much appreciated