* Space used by snapshot
@ 2011-02-17 11:13 Roman Kapusta
2011-02-17 11:16 ` Hugo Mills
2011-02-17 11:54 ` Hubert Kario
0 siblings, 2 replies; 5+ messages in thread
From: Roman Kapusta @ 2011-02-17 11:13 UTC (permalink / raw)
To: linux-btrfs
Hello all,
Is there any way how to obtain information how much space is
physically allocated by given subvolume?
I cannot find any. I'm interested in two values:
- physical space allocated by SUBVOLUME INCLUDING all space shared by
other subvolumes
- physical space allocated by SUBVOLUME EXCLUDING all space shared by
other subvolumes
Currently I can use only du, which is not reporting what I want to know.
Regards
Roman Kapusta
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Space used by snapshot
2011-02-17 11:13 Space used by snapshot Roman Kapusta
@ 2011-02-17 11:16 ` Hugo Mills
2011-02-17 11:54 ` Hubert Kario
1 sibling, 0 replies; 5+ messages in thread
From: Hugo Mills @ 2011-02-17 11:16 UTC (permalink / raw)
To: Roman Kapusta; +Cc: linux-btrfs
[-- Attachment #1: Type: text/plain, Size: 947 bytes --]
On Thu, Feb 17, 2011 at 12:13:53PM +0100, Roman Kapusta wrote:
> Hello all,
>
> Is there any way how to obtain information how much space is
> physically allocated by given subvolume?
> I cannot find any. I'm interested in two values:
>
> - physical space allocated by SUBVOLUME INCLUDING all space shared by
> other subvolumes
>
> - physical space allocated by SUBVOLUME EXCLUDING all space shared by
> other subvolumes
>
> Currently I can use only du, which is not reporting what I want to know.
Not at the moment. It shouldn't be too difficult to implement
(certainly to implement the latter), but it's just not been done yet.
Hugo.
--
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
--- What do you give the man who has everything? -- Penicillin is ---
a good start...
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Space used by snapshot
2011-02-17 11:13 Space used by snapshot Roman Kapusta
2011-02-17 11:16 ` Hugo Mills
@ 2011-02-17 11:54 ` Hubert Kario
2011-02-17 12:38 ` Roman Kapusta
1 sibling, 1 reply; 5+ messages in thread
From: Hubert Kario @ 2011-02-17 11:54 UTC (permalink / raw)
To: Roman Kapusta; +Cc: linux-btrfs
On Thursday, February 17, 2011 12:13:53 Roman Kapusta wrote:
> Hello all,
>=20
> Is there any way how to obtain information how much space is
> physically allocated by given subvolume?
> I cannot find any. I'm interested in two values:
>=20
> - physical space allocated by SUBVOLUME INCLUDING all space shared by
> other subvolumes
That's the space reported by `du -hs /mnt/btrfs/subvolume`
>=20
> - physical space allocated by SUBVOLUME EXCLUDING all space shared by
> other subvolumes
That's not implemented right now
=20
> Currently I can use only du, which is not reporting what I want to kn=
ow.
>=20
> Regards
>=20
> Roman Kapusta
--=20
Hubert Kario
QBS - Quality Business Software
02-656 Warszawa, ul. Ksawer=C3=B3w 30/85
tel. +48 (22) 646-61-51, 646-74-24
www.qbs.com.pl
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Space used by snapshot
2011-02-17 11:54 ` Hubert Kario
@ 2011-02-17 12:38 ` Roman Kapusta
2011-02-17 13:11 ` Hubert Kario
0 siblings, 1 reply; 5+ messages in thread
From: Roman Kapusta @ 2011-02-17 12:38 UTC (permalink / raw)
To: Hubert Kario; +Cc: linux-btrfs
On Thu, Feb 17, 2011 at 12:54, Hubert Kario <hka@qbs.com.pl> wrote:
> On Thursday, February 17, 2011 12:13:53 Roman Kapusta wrote:
>> Hello all,
>>
>> Is there any way how to obtain information how much space is
>> physically allocated by given subvolume?
>> I cannot find any. I'm interested in two values:
>>
>> - physical space allocated by SUBVOLUME INCLUDING all space shared b=
y
>> other subvolumes
>
> That's the space reported by `du -hs /mnt/btrfs/subvolume`
it should be `du -hsx /mnt/btrfs/subvolume`
but what if there are reflinked/CoW files inside this subvolume?
>
>>
>> - physical space allocated by SUBVOLUME EXCLUDING all space shared b=
y
>> other subvolumes
>
> That's not implemented right now
>
>> Currently I can use only du, which is not reporting what I want to k=
now.
>>
>> Regards
>>
>> Roman Kapusta
>
> --
> Hubert Kario
> QBS - Quality Business Software
> 02-656 Warszawa, ul. Ksawer=C3=B3w 30/85
> tel. +48 (22) 646-61-51, 646-74-24
> www.qbs.com.pl
>
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Space used by snapshot
2011-02-17 12:38 ` Roman Kapusta
@ 2011-02-17 13:11 ` Hubert Kario
0 siblings, 0 replies; 5+ messages in thread
From: Hubert Kario @ 2011-02-17 13:11 UTC (permalink / raw)
To: Roman Kapusta; +Cc: linux-btrfs
On Thursday, February 17, 2011 13:38:58 Roman Kapusta wrote:
> On Thu, Feb 17, 2011 at 12:54, Hubert Kario <hka@qbs.com.pl> wrote:
> > On Thursday, February 17, 2011 12:13:53 Roman Kapusta wrote:
> >> Hello all,
> >>=20
> >> Is there any way how to obtain information how much space is
> >> physically allocated by given subvolume?
> >> I cannot find any. I'm interested in two values:
> >>=20
> >> - physical space allocated by SUBVOLUME INCLUDING all space shared=
by
> >> other subvolumes
> >=20
> > That's the space reported by `du -hs /mnt/btrfs/subvolume`
>=20
> it should be `du -hsx /mnt/btrfs/subvolume`
> but what if there are reflinked/CoW files inside this subvolume?
True, forgot about them.
Regards,
--=20
Hubert Kario
QBS - Quality Business Software
02-656 Warszawa, ul. Ksawer=C3=B3w 30/85
tel. +48 (22) 646-61-51, 646-74-24
www.qbs.com.pl
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-02-17 13:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-17 11:13 Space used by snapshot Roman Kapusta
2011-02-17 11:16 ` Hugo Mills
2011-02-17 11:54 ` Hubert Kario
2011-02-17 12:38 ` Roman Kapusta
2011-02-17 13:11 ` Hubert Kario
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox