Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Jul 9, 2013
  1. test-sha1: fix segfault

    authored
  2. btree: resurrect print_btree()

    authored
    This reverts commit 71bee, since print_btree() is used in test-btree.
  3. Makefile: define QUIET_AR

    authored
  4. Makefile: enable -Werror

    authored
  5. Makefile: trivial cleanups

    authored
Commits on May 27, 2013
Commits on Sep 21, 2012
  1. README.md: update Limitations

    authored
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  2. fuse: thread-lock read, write, and release

    authored
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  3. fuse: add debugging statements to lacking functions

    authored
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  4. fuse: add stubbed-out unimplemented functions

    authored
    The struct fuse_operations has more member functions than we've
    implemented.  List the unimplemented ones guarded with an `#if 0`.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Commits on Sep 17, 2012
  1. sha1: rewrite print_sha1

    authored
    Replace print_sha1 with a better implementation.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  2. fuse: fopen returns NULL, not -1

    authored
    fopen returns NULL on failure, not -1.  Fix a couple of calls.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  3. loose: zero-length pointer arrays are illegal

    authored
    A zero-length array of pointers inside is struct is illegal.  Change
    looseroot.entries into a loose_buf **, and realloc memory everytime we
    want to expand.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  4. fuse: make nargv a stack variable

    authored
    Don't unnecessarily malloc nargv, when we know its size in advance.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  5. loose: initialize looseroot.entries[i]

    authored
    memset looseroot.entries[i] as soon as they're malloc'ed.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  6. pack: free idx objects after write

    authored
    Make unmap_write_idx free the objects after writing them to the index.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  7. fuse, pack: close open files

    authored
    Files opened with fopen() should be subsequently closed with fclose().
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  8. persist: destroy B+ tree after dumping

    authored
    Free the individual drs, and destroy the B+ tree after dumping.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  9. btree: tighten variable types

    authored
    Keys should be uint16_t, not int.  Change iteration variables to be
    register ints.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  10. btree, fstree: remove unused functions

    authored
    Remove unused functions related to printing the B+ tree.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  11. Makefile: everything depends on BTREE_ORDER

    authored
    Fix incremental builds by making sure that everything depends on
    BTREE_ORDER (defined in btree.h) to be rebuilt.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Commits on Aug 29, 2012
  1. btree: change BTREE_ORDER to 3

    authored
    Debugging is easier with smaller numbers.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  2. fstree: memset new drs, vfrs, drs to 0

    authored
    When making a new dr, vfr, or dr, make sure that all its members are
    initialized to zero.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  3. fuse, persist: fix leaf dumping code

    authored
    In the node leaf dumping code, verify that iter->pointers is not NULL
    before attempting to access the array.
  4. btree: memset new nodes to 0

    authored
    When making a new node, make sure that all its members are initialized
    to zero.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  5. persist: fix num_keys counting bug

    authored
    dump_dr_tree() was not counting the num_keys to be written properly.
    Fix this.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  6. README.md: document issue 2

    authored
    The B+ tree consistently crashes at
    insert_into_leaf_after_splitting().  Document this.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Commits on Aug 28, 2012
  1. fuse: bugfix: don't crash on startup

    authored
    When fstree is not available on startup, simply skip re-creating the
    drs.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  2. README.md: add notes on fs tree

    authored
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  3. fstree: re-create frs on startup

    authored
    Since frs are inserted directly into the fsroot, querying a subset of
    them on 'ls' output is hard.  As a workaround, mkdir the paths
    corresponding to all the frs on startup.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  4. fuse: fix getattr/ opendir for dirs missing in backing FS

    authored
    Don't assume that directories will always be available in the backing
    FS; try the fstree.  This doesn't fix readdir, so missing directories
    won't be shown in the 'ls' output, but can be opened.  Unfortunately,
    drs are inserted directly into the fsroot -- this needs to be changed
    to some recursive format to ease lookups.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  5. persist: handle writing empty dr_tree

    authored
    Fix a bug: phoneixfs used to read error (num_keys) on empty
    filesystem.  Don't assume that are always dr entries to write; when
    there are no entries to write, write num_keys = 0.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  6. fuse: fix getattr/ open for files missing in backing FS

    authored
    Don't assume that the latest version of a file will always be
    available in the backing FS; try the fstree.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
  7. Makefile: compile with -O0

    authored
    Since phoenixfs is in its early stages of development, compile with
    -O0 to aid debugging.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Something went wrong with that request. Please try again.