Ignore:
File:
1 edited

Legend:

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

    r1d6dd2a r64e63ce1  
    3131 */
    3232
    33 #include <str.h>
    3433#include "mfs.h"
    3534
     
    4140 * @param index         index of the dentry in the list.
    4241 *
    43  * @return              EOK on success or an error code.
    44  */
    45 errno_t
     42 * @return              EOK on success or a negative error code.
     43 */
     44int
    4645mfs_read_dentry(struct mfs_node *mnode,
    4746    struct mfs_dentry_info *d_info, unsigned index)
     
    5352        block_t *b;
    5453
    55         errno_t r = mfs_read_map(&block, mnode, index * sbi->dirsize);
     54        int r = mfs_read_map(&block, mnode, index * sbi->dirsize);
    5655        if (r != EOK)
    5756                goto out_err;
     
    104103 * @param d_info The directory entry to write to disk.
    105104 *
    106  * @return       EOK on success or an error code.
    107  */
    108 errno_t
     105 * @return       EOK on success or a negative error code.
     106 */
     107int
    109108mfs_write_dentry(struct mfs_dentry_info *d_info)
    110109{
     
    115114        block_t *b;
    116115        uint32_t block;
    117         errno_t r;
     116        int r;
    118117
    119118        r = mfs_read_map(&block, mnode, d_off_bytes);
     
    155154 * @param d_name        Name of the directory entry to delete.
    156155 *
    157  * @return              EOK on success or an error code.
    158  */
    159 errno_t
     156 * @return              EOK on success or a negative error code.
     157 */
     158int
    160159mfs_remove_dentry(struct mfs_node *mnode, const char *d_name)
    161160{
    162161        struct mfs_sb_info *sbi = mnode->instance->sbi;
    163162        struct mfs_dentry_info d_info;
    164         errno_t r;
     163        int r;
    165164
    166165        const size_t name_len = str_size(d_name);
     
    196195 * @param d_inum        index of the inode that will be pointed by the new dentry.
    197196 *
    198  * @return              EOK on success or an error code.
    199  */
    200 errno_t
     197 * @return              EOK on success or a negative error code.
     198 */
     199int
    201200mfs_insert_dentry(struct mfs_node *mnode, const char *d_name,
    202201    fs_index_t d_inum)
    203202{
    204         errno_t r;
     203        int r;
    205204        struct mfs_sb_info *sbi = mnode->instance->sbi;
    206205        struct mfs_dentry_info d_info;
Note: See TracChangeset for help on using the changeset viewer.