Lessfs-1.3.1 has been released

This version of Lessfs introduces hamsterdb as an alternative to tokyocabinet. It also solves a memory leak as well as a problem with encryption.

This entry was posted in Uncategorized. Bookmark the permalink.

10 Responses to Lessfs-1.3.1 has been released

  1. Richard says:

    Darn src rpm is “failing” on Fedora12 because it can’t find the lessfs.cfg in /etc. I’m going to try to copying the lessfs.cfg-hamsterdb, but so far I haven’t found the right place. Probably going to have to untar then retar. I’ll post an update.

  2. Richard says:

    Okay, after an rpmbuild –rebuild lessfs-1.3.1-1.src.rpm
    went into SOURCES untarred the tgz, copied lessfs.cfg-hamsterdb to lessfs.cfg and tarred the directory and then did an rpmbuild –bb SPEC/lessfs.spec and build completed.

    rpm -Uvh succeeded. Interesting, there is no hamsterdb dependency.

    • John says:

      Instead of rebuilding your tarball, consider adding a line like this in the %build section of the spec file:

      cp etc/lessfs.cfg-hamsterdb etc/lessfs.cfg

  3. Richard says:

    sorry to hog the forum but are -o kernel_cache,negative_timeout=0,entry_timeout=0,attr_timeout=0,use_ino,readdir_ino,default_permissions,allow_other,big_writes,max_read=65536,max_write=65536
    not needed anymore? they are not in the init.d/lessfs anymore.

  4. Nix says:

    Turning off transactions while hamsterdb is active yields a fatal error:

    start_flush_commit : failed to commit transaction() returned error -8: Invalid parameter

    because txn was never initialized, but you unconditionally call ham_txn_commit() and ham_txn_begin() in commit_transactions() without checking config->transactions first.

    (I’m not clear if this option is even *meant* to work with hamsterdb, though.)

  5. Gianni says:

    Good night!!!

    I’m testing lessfs with some mailbox: too much little file so that my little script to get stat from lessfs_stat became very slow…so i tried to make a “little patch” for lib_tc.c just to describe my idea:

    root@dedup:~/lessfs-1.3.1# diff lib_tc.c lib_tc.c.orig
    1299,1301d1298
    < float dedup=0;
    < float orig=0;
    <
    1318,1319d1314
    stbuf.st_size;
    real_size;
    1325,1326d1319
    stbuf.st_size;
    real_size;
    1336,1337d1328
    < lines[count++] = as_sprintf("File Dedup Original Perc\n");
    < lines[count++] = as_sprintf("%i %.0f %.0f %3.2f\n",count,dedup,orig,dedup/orig*100);

    After this mod i add 2 line at bottom of lessfs_stat so we just need to read that 2 line to get some fast summary:

    root@dedup:~/lessfs-1.3.1# tail -2 /dedup/.lessfs/lessfs_stats
    File Dedup Original Perc
    93 59168874496 61916155904 95.56

    Perhaps it should be better to put that info in some other file or produce in some other way i dont know.

    This is just for suggest my idea :)

    Happy dedup :)
    Gianni

  6. Gianni says:

    sorry cut & paste left some part :)

    root@dedup:~/lessfs-1.3.1# diff lib_tc.c lib_tc.c.orig
    1299,1301d1298
    < float dedup=0;
    < float orig=0;
    <
    1318,1319d1314
    stbuf.st_size;
    real_size;
    1325,1326d1319
    stbuf.st_size;
    real_size;
    1336,1337d1328
    < lines[count++] = as_sprintf("File Dedup Original Perc\n");
    < lines[count++] = as_sprintf("%i %.0f %.0f %3.2f\n",count,dedup,orig,dedup/orig*100);

    root@dedup:~/lessfs-1.3.1# tail -2 /dedup/.lessfs/lessfs_stats
    File Dedup Original Perc
    93 59168874496 61916155904 95.56

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>