DragonFly kernel List (threaded) for 2013-06
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
[GSOC] HAMMER2 compression feature week2 report
--14dae93d9300a25f7b04e04cf877
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
Hello everyone,
Here is my report for the second week. In my previous report I said that I
was working on adding a new command to hammer2 utility. The command is
called =93setcmp=94 for now and what it does is setting the compression mod=
e on
a directory or file.
It works like this: =93hammer2 setcmp [-r] comp_method directory=94, where
comp_method can be 0 (no compression), 1 (zero-checking, default) or 2 (LZ4
compression). By default the compression mode is only set on a specified
directory (and will be set for any new subdirectories and files written in
that directory). If you add the option =93-r=94 it will set recursively the
specified compression mode on all existing subdirectories and files (which
may take a while in case of directories that have many files and
subdirectories).
This command may change its syntax in the future for the sake of
consistency with other commands; this is just a first approximation to it.
So, for now it looks like it=92s working OK. I still have to perform more
tests to ensure its correctness, and then there are some design issues to
be solved, but right now it just works, so hopefully at least some part of
the work related to it is done.
If you want to check it out, it is in my repository [1], branch
=93hammer2_utility=94. The code is pretty dirty at this point and there are
some minor changes to be done (like, for example, right now it always
prints an error message, even though it shouldn=92t and later it reports th=
at
the compression mode was set). I intend to clean up the code today.
During the following days I still want to work on that utility a bit and
ensure that it really works correctly. If it seems that it indeed is
correct, then the next week I=92ll start working on actually adding the
compression to HAMMER2 file system (right now it just sets the mode on
inodes and blockrefs, nothing else).
I=92ll appreciate any suggestions and feedback. Thank you.
Daniel
[1] git://leaf.dragonflybsd.org/~iostream/dragonfly.git
--14dae93d9300a25f7b04e04cf877
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Hello everyone, <br><br>Here is my report for the second w=
eek. In my previous report I said that I was working on adding a new comman=
d to hammer2 utility. The command is called =93setcmp=94 for now and what i=
t does is setting the compression mode on a directory or file.<br>
<br>It works like this: =93hammer2 setcmp [-r] comp_method directory=94, wh=
ere comp_method can be 0 (no compression), 1 (zero-checking, default) or 2 =
(LZ4 compression). By default the compression mode is only set on a specifi=
ed directory (and will be set for any new subdirectories and files written =
in that directory). If you add the option =93-r=94 it will set recursively =
the specified compression mode on all existing subdirectories and files (wh=
ich may take a while in case of directories that have many files and subdir=
ectories).<br>
<br>This command may change its syntax in the future for the sake of consis=
tency with other commands; this is just a first approximation to it.<br><br=
>So, for now it looks like it=92s working OK. I still have to perform more =
tests to ensure its correctness, and then there are some design issues to b=
e solved, but right now it just works, so hopefully at least some part of t=
he work related to it is done.<br>
<br>If you want to check it out, it is in my repository [1], branch =93hamm=
er2_utility=94. The code is pretty dirty at this point and there are some m=
inor changes to be done (like, for example, right now it always prints an e=
rror message, even though it shouldn=92t and later it reports that the comp=
ression mode was set). I intend to clean up the code today.<br>
<br>During the following days I still want to work on that utility a bit an=
d ensure that it really works correctly. If it seems that it indeed is corr=
ect, then the next week I=92ll start working on actually adding the compres=
sion to HAMMER2 file system (right now it just sets the mode on inodes and =
blockrefs, nothing else).<br>
<br>I=92ll appreciate any suggestions and feedback. Thank you.<br><br><br>D=
aniel<br><br>[1] git://<a href=3D"http://leaf.dragonflybsd.org/~iostream/dr=
agonfly.git">leaf.dragonflybsd.org/~iostream/dragonfly.git</a><br></div>
--14dae93d9300a25f7b04e04cf877--
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]