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 -- 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
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...
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 by > other subvolumesThat''s the space reported by `du -hs /mnt/btrfs/subvolume`> > - physical space allocated by SUBVOLUME EXCLUDING all space shared by > other subvolumesThat''s not implemented right now> Currently I can use only du, which is not reporting what I want to know. > > Regards > > Roman Kapusta-- Hubert Kario QBS - Quality Business Software 02-656 Warszawa, ul. Ksawerów 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
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 by >> 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 by >> other subvolumes > > That''s not implemented right now > >> Currently I can use only du, which is not reporting what I want to know. >> >> Regards >> >> Roman Kapusta > > -- > Hubert Kario > QBS - Quality Business Software > 02-656 Warszawa, ul. Ksawerów 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
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, > >> > >> 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 > > > > 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?True, forgot about them. Regards, -- Hubert Kario QBS - Quality Business Software 02-656 Warszawa, ul. Ksawerów 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