Re: btrfs fi du is unreliable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Henk Slager posted on Sun, 04 Dec 2016 23:17:23 +0100 as excerpted:

> There are no btrfs changes between kernels 4.8.10 and 4.8.11. There is
> no compress mount option in my case, that is the only thing I currently
> can think of that could make your Set shared number non-zero.

Compression... might actually explain what I'm seeing here, even if it 
doesn't explain Chris Murphy's issue.

I don't do subvolumes or snapshots here, and I've not, knowingly at 
least, setup any reflinked files, so I expected my btrfs fi du's to all 
show 0 bytes shared.

And / shows exactly that, 0 bytes shared, but /home (/h here) shows a 
shared count in the /summary/ while a grep -v ' -  /h' of the full output 
only outputs the summary line, no actual file listing as shared.

(As my admin user so I can sudo w/o password, $$ indicates a command 
line.  Again, /home is a symlink to /h here, /h is thus the actual 
mountpoint for /home, an entirely separate btrfs, not a subvolume.)

$$ sudo btrfs fi du -s /
     Total   Exclusive  Set shared  Filename
   2.94GiB     2.94GiB       0.00B  /

$$ sudo btrfs fi du -s /h
     Total   Exclusive  Set shared  Filename
  16.16GiB    16.16GiB    32.00KiB  /h

$$ sudo btrfs fi du /h | grep -v ' -  /h' 
     Total   Exclusive  Set shared  Filename
  16.16GiB    16.16GiB    32.00KiB  /h

But I do use compress=lzo on both filesystems.  If compression accounts 
for the shared, however, I wonder why / isn't showing any shared, since 
it's mounted with compress=lzo as well.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux