Skip to contentSkip to conversation

Compressed Filesystem

DISCUSSION [email protected] 1 participant 1 message Dec 16, 2008 Btrfs file system

lore
Share & tools
lore
#0 lore raw
Quoted 1 line

I'd much rather have just one compression scheme per FS. If people n=

eed

Quoted 2 lines

a specific compression scheme for a specific file, they can just compress it in userland.

yes, i also think one compression scheme per FS is absolutely sufficien= t.

Quoted 10 lines

-----Urspr=FCngliche Nachricht-----
Von: "Chris Mason" <[email protected]>
Gesendet: 16.12.08 16:26:28
An: Lee Trager <[email protected]>
CC: [email protected]
Betreff: Re: Compressed Filesystem

Quoted 1 line · Lee Trager

While I agree that the command you send should be possible it wasn'=

t

Quoted 1 line
Quoted 1 line

exactly what I was thinking. Currently I am working on a way for th=

e

Quoted 1 line
Quoted 1 line

user to individually set which files/directories they want compress=

ed or

Quoted 6 lines
Quoted 6 lines

not. What I was saying is that assuming you are in a mounted btrfs directory you could do something like
=20
chattr -R +c zlib dir1 Compress dir1 and all its contents with zlib
chattr -R +c bzip dir2 Compress dir2 and all its contents with bzip
chattr +c lzo file1 Compress fil1 with lzo

Quoted 8 lines
Quoted 8 lines

chattr -c file2 Uncompress file2
chattr +c none dir3 Uncompress dir3 but leave contents as is
=20
If the user did something like=20
mount -o compress,cscheme=3Dzlib /dev/xyz /mntpoint
and then
chattr +c /mntpoint/dir
/mntpoint/dir would default to zlib as would anything else written =

to

Quoted 5 lines
Quoted 2 lines

the disk.
=20

=20
This is one of those places where more options isn't always better. Every option adds complexity to the filesystem and the testing matrix=

=2E =20

Quoted 2 lines

=20
I'd much rather have just one compression scheme per FS. If people n=

eed

Quoted 7 lines

a specific compression scheme for a specific file, they can just compress it in userland.
=20
-chris
=20
=20
=20

_______________________________________________________________________
Sensationsangebot verl=E4ngert: WEB.DE FreeDSL - Telefonanschluss + DSL f=FCr nur 16,37 Euro/mtl.!* http://dsl.web.de/?ac=3DOM.AD.AD008K15039B7=
069a

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html