From: Martin Steigerwald <Martin@lichtvoll.de>
To: linux-btrfs@vger.kernel.org
Subject: Re: How to remount btrfs without compression?
Date: Mon, 7 Nov 2011 13:19:14 +0100 [thread overview]
Message-ID: <201111071319.14493.Martin@lichtvoll.de> (raw)
In-Reply-To: <4EB72C1B.1030702@parallels.com>
Am Montag, 7. November 2011 schrieb dima:
> Hello,
Hi Dima,
=20
> Is there any possibility to remount a compressed btrfs without any
> compression at all?
>=20
> 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.
>=20
> I tried to remount / without the 'compress' option (and edit
> syslinux.cfg in uncompressed state) and while the "mount" command wou=
ld
> 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=3Dnone or
> something.
>=20
> 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.
>=20
> 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=20
might help to do a btrfs filesystem defrag on the file to remove=20
compression, cause I don=C2=B4t think chattr -c itself will uncompress =
it.
As far as I understand it is possible to individually set compression=20
on/off on single files. Although the global thing should work as well I=
MHO=20
as least when the file is rewritten.
Ciao,
--=20
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-11-07 12:19 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-07 0:53 How to remount btrfs without compression? dima
2011-11-07 12:19 ` Martin Steigerwald [this message]
2011-11-08 0:55 ` dima
2011-11-08 1:06 ` Eric Griffith
2011-11-08 1:52 ` Fajar A. Nugraha
2011-11-08 1:54 ` Eric Griffith
2011-11-08 2:00 ` dima
2011-11-08 15:01 ` Chris Mason
2011-11-08 15:12 ` Chris Mason
2011-11-09 1:01 ` dima
2011-11-09 7:48 ` Lubos Kolouch
2011-11-09 8:03 ` Dmitry Olenin
2011-11-10 6:57 ` Lubos Kolouch
2011-11-10 7:04 ` Dmitry Olenin
2011-11-09 8:04 ` Fajar A. Nugraha
2011-11-09 13:01 ` Chris Mason
2011-11-10 0:11 ` David Sterba
2011-11-10 2:23 ` dima
2011-11-11 13:29 ` dima
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201111071319.14493.Martin@lichtvoll.de \
--to=martin@lichtvoll.de \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.