Changeset bad8d41 in mainline for uspace/srv/fs


Ignore:
Timestamp:
2017-12-21T20:24:54Z (8 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Parents:
f04b5b3
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-21 18:24:59)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-21 20:24:54)
Message:

The "not-so-obvious" error handling tweaks.

Location:
uspace/srv/fs/mfs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/mfs/mfs.c

    rf04b5b3 rbad8d41  
    6868                else {
    6969                        printf(NAME " Unrecognized parameters");
    70                         rc = -1;
     70                        rc = EINVAL;
    7171                        goto err;
    7272                }
     
    7878        if (!vfs_sess) {
    7979                printf(NAME ": failed to connect to VFS\n");
    80                 return -1;
     80                rc = errno;
     81                goto err;
    8182        }
    8283
  • uspace/srv/fs/mfs/mfs_balloc.c

    rf04b5b3 rbad8d41  
    246246                        printf(NAME ": Error! Trying to free beyond the "
    247247                            "bitmap max size\n");
    248                         return -1;
     248                        return EIO;
    249249                }
    250250        } else {
     
    254254                        printf(NAME ": Error! Trying to free beyond the "
    255255                            "bitmap max size\n");
    256                         return -1;
     256                        return EIO;
    257257                }
    258258        }
     
    303303        unsigned *search, i, start_block;
    304304        unsigned bits_per_block;
    305         int r, freebit;
     305        int r;
     306        int freebit;
    306307
    307308        sbi = inst->sbi;
Note: See TracChangeset for help on using the changeset viewer.