From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miao Xie Subject: Re: can subvolumes be specified as compressed? Date: Thu, 29 Jul 2010 16:21:15 +0800 Message-ID: <4C5139FB.8070504@cn.fujitsu.com> References: Reply-To: miaox@cn.fujitsu.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: linux-btrfs@vger.kernel.org To: Wang Shaoyan Return-path: In-Reply-To: List-ID: On Thu, 29 Jul 2010 15:50:28 +0800, Wang Shaoyan wrote: > Hi. > I want a subvolume in root to be compressed, I try to do this: > # mkfs.btrfs /dev/sda8 > # mount /dev/sda8 /home/usr/btrfs > # cd /home/usr/btrfs > # btrfs subvolume create mysubvolume > # mount -o compress,subvol=mysubvolume /dev/sda8 some_dir_in_root > but when I create a file in some_dir_in_root, the file isn't > compressed at all. why? How can I specify some subvolumes to be > compressed, and the others Not to be compressed in a single btrfs? The method that you said is right, by this way, I can create a compressed file on the specified subvolume. I think your file has been compressed or is hard to be compressed, so you found it isn't compressed at all. Just like we use a zip tool to compress a compressed file, we will find the file isn't compressed at all. Thanks Miao > > -- > Wang Shaoyan > -- > 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 > >