Currently using Ubuntu Natty, kernel 2.6.38-9-generic, I have these mount points using btrs subvolumes $ mount -t btrfs /dev/sda2 on / type btrfs (rw,noatime,subvolid=256,compress-force=zlib) /dev/sda2 on /home type btrfs (rw,noatime,subvolid=258,compress=lzo) Yet dmesg seems to show only zlib compression enabled $ dmesg | grep btrfs [ 11.097908] btrfs: force zlib compression Is this by design, or a bug? -- Fajar -- 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
At the moment btrfs doesn''t support separate compression for volumes on the same filesystem. On 05/08/11 at 08:35pm, Fajar A. Nugraha wrote:> Currently using Ubuntu Natty, kernel 2.6.38-9-generic, I have these > mount points using btrs subvolumes > > $ mount -t btrfs > /dev/sda2 on / type btrfs (rw,noatime,subvolid=256,compress-force=zlib) > /dev/sda2 on /home type btrfs (rw,noatime,subvolid=258,compress=lzo) > > Yet dmesg seems to show only zlib compression enabled > $ dmesg | grep btrfs > [ 11.097908] btrfs: force zlib compression > > Is this by design, or a bug? > > -- > Fajar > -- > 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 Sun, May 8, 2011 at 8:38 PM, cwillu <cwillu@gmail.com> wrote:> It''s by not-implemented-yet. Mount options are still currently global to > the filesystem.Thanks for the info. I was testing combination of grub2, btrfs "/" without separate /boot, and lzo. Using lzo feels much faster compared to zlib, so right now I just use separate /boot/grub in ext4 to make it work correctly. -- Fajar> > On May 8, 2011 7:35 AM, "Fajar A. Nugraha" <list@fajar.net> wrote: >> Currently using Ubuntu Natty, kernel 2.6.38-9-generic, I have these >> mount points using btrs subvolumes >> >> $ mount -t btrfs >> /dev/sda2 on / type btrfs (rw,noatime,subvolid=256,compress-force=zlib) >> /dev/sda2 on /home type btrfs (rw,noatime,subvolid=258,compress=lzo) >> >> Yet dmesg seems to show only zlib compression enabled >> $ dmesg | grep btrfs >> [ 11.097908] btrfs: force zlib compression >> >> Is this by design, or a bug?-- 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