Re: How to remount btrfs without compression?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Montag, 7. November 2011 schrieb dima:
> Hello,

Hi Dima,
 
> Is there any possibility to remount a compressed btrfs without any
> compression at all?
> 
> Syslinux bootloader does not understand any btrfs compression and
> whenever I edit syslinux.cfg on my compressed / subvolume, the file
> becomes compressed and thus unreadable by syslinux on the next boot.
> 
> I tried to remount / without the 'compress' option (and edit
> syslinux.cfg in uncompressed state) and while the "mount" command would
> not show compression any more, I can see in the /proc/mounts that
> compression is still there and the file still gets compressed after
> editing. But there seem to be no mount option like compress=none or
> something.
> 
> The only workaround I found is to boot from a live CD mount / without
> any compression and re-save syslinux.cfg. Then it the file gets
> uncompressed.
> 
> Are there any other options except for this workaround to temporarily
> remount btrfs without compression?

What does lsattr show on the file? Have you tried chattr -c on the file? It 
might help to do a btrfs filesystem defrag on the file to remove 
compression, cause I don´t think chattr -c itself will uncompress it.

As far as I understand it is possible to individually set compression 
on/off on single files. Although the global thing should work as well IMHO 
as least when the file is rewritten.

Ciao,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7
--
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


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux