22 Dec, 2016

9 commits

  • Implement mandatory export_operations, so it is possible to export befs via
    nfs.

    Signed-off-by: Luis de Bethencourt

    Luis de Bethencourt
     
  • Removing all trailing whitespaces in befs.

    I was skeptic about tainting the history with this, but whitespace changes
    can be ignored by using 'git blame -w' and 'git log -w'.

    Signed-off-by: Luis de Bethencourt

    Luis de Bethencourt
     
  • No idea why some comments have signatures. These predate git. Removing them
    since they add noise and no information.

    Signed-off-by: Luis de Bethencourt

    Luis de Bethencourt
     
  • Fixing checkpatch.pl issues in befs header files:
    WARNING: Missing a blank line after declarations
    + befs_inode_addr iaddr;
    + iaddr.allocation_group = blockno >> BEFS_SB(sb)->ag_shift;

    WARNING: space prohibited between function name and open parenthesis '('
    + return BEFS_SB(sb)->block_size / sizeof (befs_disk_inode_addr);

    ERROR: "foo * bar" should be "foo *bar"
    + const char *key, befs_off_t * value);

    ERROR: Macros with complex values should be enclosed in parentheses
    +#define PACKED __attribute__ ((__packed__))

    Signed-off-by: Luis de Bethencourt

    Luis de Bethencourt
     
  • Fix the following type of checkpatch.pl issues:
    WARNING: line over 80 characters
    +static struct dentry *befs_lookup(struct inode *, struct dentry *, unsigned int);

    ERROR: code indent should use tabs where possible
    + if (!bi)$

    WARNING: please, no spaces at the start of a line
    + if (!bi)$

    WARNING: labels should not be indented
    + unacquire_bh:

    WARNING: space prohibited between function name and open parenthesis '('
    + sizeof (struct befs_inode_info),

    WARNING: braces {} are not necessary for single statement blocks
    + if (!*out) {
    + return -ENOMEM;
    + }

    WARNING: Block comments use a trailing */ on a separate line
    + * in special cases */

    WARNING: Missing a blank line after declarations
    + int token;
    + if (!*p)

    ERROR: do not use assignment in if condition
    + if (!(bh = sb_bread(sb, sb_block))) {

    ERROR: space prohibited after that open parenthesis '('
    + if( befs_sb->num_blocks > ~((sector_t)0) ) {

    ERROR: space prohibited before that close parenthesis ')'
    + if( befs_sb->num_blocks > ~((sector_t)0) ) {

    ERROR: space required before the open parenthesis '('
    + if( befs_sb->num_blocks > ~((sector_t)0) ) {

    Signed-off-by: Luis de Bethencourt

    Luis de Bethencourt
     
  • Signed-off-by: Luis de Bethencourt

    Luis de Bethencourt
     
  • Fixing the two following checkpatch.pl issues:
    ERROR: trailing whitespace
    + * Based on portions of file.c and inode.c $

    WARNING: labels should not be indented
    + error:

    Signed-off-by: Luis de Bethencourt

    Luis de Bethencourt
     
  • Fixing the following checkpatch.pl errors and warning:
    ERROR: trailing whitespace
    + * $

    WARNING: Block comments use * on subsequent lines
    +/*
    + Validates the correctness of the befs inode

    ERROR: "foo * bar" should be "foo *bar"
    +befs_check_inode(struct super_block *sb, befs_inode * raw_inode,

    Signed-off-by: Luis de Bethencourt

    Luis de Bethencourt
     
  • Fix all checkpatch.pl errors and warnings in debug.c:
    ERROR: trailing whitespace
    + * $

    WARNING: Missing a blank line after declarations
    + va_list args;
    + va_start(args, fmt);

    ERROR: "foo * bar" should be "foo *bar"
    +befs_dump_inode(const struct super_block *sb, befs_inode * inode)

    ERROR: "foo * bar" should be "foo *bar"
    +befs_dump_super_block(const struct super_block *sb, befs_super_block * sup)

    ERROR: "foo * bar" should be "foo *bar"
    +befs_dump_small_data(const struct super_block *sb, befs_small_data * sd)

    WARNING: line over 80 characters
    +befs_dump_index_entry(const struct super_block *sb, befs_disk_btree_super * super)

    ERROR: "foo * bar" should be "foo *bar"
    +befs_dump_index_entry(const struct super_block *sb, befs_disk_btree_super * super)

    ERROR: "foo * bar" should be "foo *bar"
    +befs_dump_index_node(const struct super_block *sb, befs_btree_nodehead * node)

    Signed-off-by: Luis de Bethencourt

    Luis de Bethencourt
     

16 Oct, 2016

1 commit

  • Pull befs fixes from Luis de Bethencourt:
    "I recently took maintainership of the befs file system [0]. This is
    the first time I send you a git pull request, so please let me know if
    all the below is OK.

    Salah Triki and myself have been cleaning the code and fixing a few
    small bugs.

    Sorry I couldn't send this sooner in the merge window, I was waiting
    to have my GPG key signed by kernel members at ELCE in Berlin a few
    days ago."

    [0] https://lkml.org/lkml/2016/7/27/502

    * tag 'befs-v4.9-rc1' of git://github.com/luisbg/linux-befs: (39 commits)
    befs: befs: fix style issues in datastream.c
    befs: improve documentation in datastream.c
    befs: fix typos in datastream.c
    befs: fix typos in btree.c
    befs: fix style issues in super.c
    befs: fix comment style
    befs: add check for ag_shift in superblock
    befs: dump inode_size superblock information
    befs: remove unnecessary initialization
    befs: fix typo in befs_sb_info
    befs: add flags field to validate superblock state
    befs: fix typo in befs_find_key
    befs: remove unused BEFS_BT_PARMATCH
    fs: befs: remove ret variable
    fs: befs: remove in vain variable assignment
    fs: befs: remove unnecessary *befs_sb variable
    fs: befs: remove useless initialization to zero
    fs: befs: remove in vain variable assignment
    fs: befs: Insert NULL inode to dentry
    fs: befs: Remove useless calls to brelse in befs_find_brun_dblindirect
    ...

    Linus Torvalds
     

08 Oct, 2016

30 commits