From: Piotr Szymaniak <szarpaj@grubelek.pl>
To: linux-btrfs@vger.kernel.org
Subject: btrfs fi du -s gives Inappropriate ioctl for device
Date: Tue, 15 Aug 2017 00:57:40 +0200 [thread overview]
Message-ID: <20170814225740.GK19638@pontus.sran> (raw)
[-- Attachment #1: Type: text/plain, Size: 2957 bytes --]
Hi list,
I have some weird issue.
So, I have btrfs fs and some subvols, like that:
~ # btrfs sub list /mnt/red/
ID 260 gen 827956 top level 5 path @home
ID 261 gen 827926 top level 5 path @backup
ID 645 gen 827911 top level 5 path @svn
*snip*
and some snapshots on those subvols:
*snip*
ID 2501 gen 827894 top level 260 path @home/.snapshot/monthly_2017-05-01_05:30:01
ID 2603 gen 827894 top level 260 path @home/.snapshot/monthly_2017-06-01_05:30:01
ID 2604 gen 827927 top level 261 path @backup/.snapshot/monthly_2017-06-01_05:30:02
ID 2680 gen 827895 top level 260 path @home/.snapshot/monthly_2017-07-01_05:30:01
ID 2681 gen 827927 top level 261 path @backup/.snapshot/monthly_2017-07-01_05:30:01
ID 2734 gen 827895 top level 260 path @home/.snapshot/weekly_2017-07-22_04:20:01
ID 2735 gen 827905 top level 645 path @svn/.snapshot/weekly_2017-07-22_04:20:02
ID 2754 gen 827895 top level 260 path @home/.snapshot/weekly_2017-07-29_04:20:01
ID 2755 gen 827906 top level 645 path @svn/.snapshot/weekly_2017-07-29_04:20:01
ID 2763 gen 827896 top level 260 path @home/.snapshot/monthly_2017-08-01_05:30:01
*snip*
and... some issues:
~ # btrfs fi du -s /mnt/red/\@backup/
Total Exclusive Set shared Filename
ERROR: cannot check space of '/mnt/red/@backup/': Inappropriate ioctl for device
and it works for other subvols:
~ # btrfs fi du -s /mnt/red/\@svn/
Total Exclusive Set shared Filename
52.22GiB 10.59MiB 4.13GiB /mnt/red/@svn/
~ # btrfs fi du -s /mnt/red/\@home/
Total Exclusive Set shared Filename
2.08TiB 4.54GiB 124.51GiB /mnt/red/@home/
on the other hand, those values also look wrong (2.08TiB?):
~ # btrfs fi df /mnt/red/\@home/
Data, RAID1: total=448.00GiB, used=447.39GiB
System, RAID1: total=32.00MiB, used=80.00KiB
Metadata, RAID1: total=3.00GiB, used=2.02GiB
GlobalReserve, single: total=512.00MiB, used=0.00B
~ # btrfs fi usage /mnt/red/\@home/
Overall:
Device size: 1.36TiB
Device allocated: 902.06GiB
Device unallocated: 493.21GiB
Device missing: 0.00B
Used: 898.81GiB
Free (estimated): 247.22GiB (min: 247.22GiB)
Data ratio: 2.00
Metadata ratio: 2.00
Global reserve: 512.00MiB (used: 0.00B)
Data,RAID1: Size:448.00GiB, Used:447.39GiB
/dev/mapper/wd0 448.00GiB
/dev/mapper/wd1 448.00GiB
Metadata,RAID1: Size:3.00GiB, Used:2.02GiB
/dev/mapper/wd0 3.00GiB
/dev/mapper/wd1 3.00GiB
System,RAID1: Size:32.00MiB, Used:80.00KiB
/dev/mapper/wd0 32.00MiB
/dev/mapper/wd1 32.00MiB
Unallocated:
/dev/mapper/wd0 246.60GiB
/dev/mapper/wd1 246.60GiB
~ # uname -sr
Linux 4.4.76
~ # btrfs --version
btrfs-progs v4.12
Whats wrong with one of my subvols? Whats wrong with space reported by fi du?
Best regards,
Piotr Szymaniak.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next reply other threads:[~2017-08-14 23:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-14 22:57 Piotr Szymaniak [this message]
2017-08-14 23:40 ` btrfs fi du -s gives Inappropriate ioctl for device Chris Murphy
2017-08-16 9:27 ` Piotr Szymaniak
2017-08-17 0:23 ` Chris Murphy
2017-08-17 15:37 ` Goffredo Baroncelli
2017-08-17 18:43 ` Chris Murphy
2017-08-17 20:59 ` Goffredo Baroncelli
2017-08-18 6:34 ` Nikolay Borisov
2017-08-18 7:09 ` Goffredo Baroncelli
2017-08-18 7:12 ` Nikolay Borisov
2017-08-18 7:22 ` Goffredo Baroncelli
2017-08-18 8:38 ` Piotr Szymaniak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170814225740.GK19638@pontus.sran \
--to=szarpaj@grubelek.pl \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).