From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liu Bo Subject: Re: Compession, on filesystem or volume? Date: Thu, 29 Dec 2011 20:35:00 +0800 Message-ID: <4EFC5E74.70600@cn.fujitsu.com> References: <4EFC4617.5070109@hosman.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: Remco Hosman , linux-btrfs@vger.kernel.org To: "Fajar A. Nugraha" Return-path: In-Reply-To: List-ID: On 12/29/2011 07:11 PM, Fajar A. Nugraha wrote: > On Thu, Dec 29, 2011 at 5:51 PM, Remco Hosman wrote: >> Hi, >> >> Something i could not find in the documentation i managed to find: >> if you mount with compress=lzo and rebalance, is compression on for that >> filesystem or only a single volume? >> >> eg, can i have a @boot volume uncompressed and @ and @home compressed. > > Last time I asked a similar question, the answer was no. It's per filesystem. > > however you can change compression of individual files between > zlib/lzo using "btrfs fi defragment -c", regardless of what the > filesystem is currently mounted with. > for individual files and directories, we can also set them compress via FS_IOC_SETFLAGS. thanks, liubo