[Bug 274593] result of df is not right for nullfs

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 21 Oct 2023 01:30:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274593

--- Comment #2 from lbfoo@disroot.org ---
(In reply to Mark Johnston from comment #1)

/dev/ufs/samsungevoplus1              /usr/samsung1t  ufs     rw,userquota     
1       3
/usr/samsung1t/btdownload                      
/usr/local/etc/transmission/home/Downloads nullfs      rw,late 0       0
/usr/samsung1t/btdownload                      
/usr/mynetshare/myshare/btdownload nullfs  rw,late 0
/usr/samsung1t/btdownload       /sspool/jails/embyjail/usr/fromhost     nullfs 
ro,late 0

delete some files from /usr/local/etc/transmission/home/Downloads: df -h does
not show change, repeated as follows:

before: df -h
/usr/samsung1t/btdownload          902G    534G    296G    64%   
/usr/local/etc/transmission/home/Downloads
/usr/samsung1t/btdownload          902G    534G    296G    64%   
/usr/mynetshare/myshare/btdownload
/usr/samsung1t/btdownload          902G    534G    296G    64%   
/sspool/jails/embyjail/usr/fromhost

delete a file about 8G from /usr/local/etc/transmission/home/Downloads
close any possible application using this directory: samba, transmission, emby
jail

after:
fstat /usr/samsung1t/btdownload
USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME

fstat  /usr/local/etc/transmission/home/Downloads/
USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME

fstat /usr/mynetshare/myshare/btdownload
USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME

fstat /sspool/jails/embyjail/usr/fromhost
USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME

df -h:
/usr/samsung1t/btdownload          902G    534G    296G    64%   
/usr/local/etc/transmission/home/Downloads
/usr/samsung1t/btdownload          902G    534G    296G    64%   
/usr/mynetshare/myshare/btdownload
/usr/samsung1t/btdownload          902G    534G    296G    64%   
/sspool/jails/embyjail/usr/fromhost

umount /sspool/jails/embyjail/usr/fromhost
df -h:
/usr/samsung1t/btdownload          902G    534G    296G    64%   
/usr/local/etc/transmission/home/Downloads
/usr/samsung1t/btdownload          902G    534G    296G    64%   
/usr/mynetshare/myshare/btdownload

umount /usr/mynetshare/myshare/btdownload
df -h:
/usr/samsung1t/btdownload          902G    527G    303G    64%   
/usr/local/etc/transmission/home/Downloads

some goes wrong with /usr/mynetshare/myshare/btdownload directory.

-- 
You are receiving this mail because:
You are the assignee for the bug.