On Thu, Feb 17, 2011 at 12:54, Hubert Kario <hka@xxxxxxxxxx> 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@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
