Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset cd00f93 in mainline


Ignore:
Timestamp:
2012-02-13T20:23:38Z (8 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
master
Children:
856a36b
Parents:
03934c9e
Message:

error hangling in write operation, adjusted supported features for mounting

Location:
uspace
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/libext4_superblock.h

    r03934c9e rcd00f93  
    182182
    183183// TODO MODIFY features corresponding with implementation
    184 #define EXT4_FEATURE_COMPAT_SUPP EXT4_FEATURE_COMPAT_EXT_ATTR
     184#define EXT4_FEATURE_COMPAT_SUPP                (EXT4_FEATURE_COMPAT_DIR_INDEX)
    185185
    186186#define EXT4_FEATURE_INCOMPAT_SUPP      (EXT4_FEATURE_INCOMPAT_FILETYPE| \
    187                                          EXT4_FEATURE_INCOMPAT_RECOVER| \
    188                                          EXT4_FEATURE_INCOMPAT_META_BG| \
    189187                                         EXT4_FEATURE_INCOMPAT_EXTENTS| \
    190                                          EXT4_FEATURE_INCOMPAT_64BIT| \
    191                                          EXT4_FEATURE_INCOMPAT_FLEX_BG)
    192 
    193 #define EXT4_FEATURE_RO_COMPAT_SUPP     (EXT4_FEATURE_RO_COMPAT_SPARSE_SUPER| \
    194                                          EXT4_FEATURE_RO_COMPAT_LARGE_FILE| \
    195                                          EXT4_FEATURE_RO_COMPAT_GDT_CSUM| \
    196                                          EXT4_FEATURE_RO_COMPAT_DIR_NLINK | \
    197                                          EXT4_FEATURE_RO_COMPAT_EXTRA_ISIZE | \
    198                                          EXT4_FEATURE_RO_COMPAT_BTREE_DIR |\
    199                                          EXT4_FEATURE_RO_COMPAT_HUGE_FILE)
     188                                         EXT4_FEATURE_INCOMPAT_64BIT)
     189
     190#define EXT4_FEATURE_RO_COMPAT_SUPP     ()
    200191
    201192
  • uspace/srv/fs/ext4fs/ext4fs_ops.c

    r03934c9e rcd00f93  
    210210        }
    211211
     212
    212213        ext4_directory_iterator_t it;
    213214        rc = ext4_directory_iterator_init(&it, fs, eparent->inode_ref, 0);
     
    11241125        rc = block_get(&write_block, service_id, fblock, flags);
    11251126        if (rc != EOK) {
    1126                 EXT4FS_DBG("error in loading block \%d", rc);
    11271127                ext4fs_node_put(fn);
    11281128                async_answer_0(callid, rc);
     
    11361136        rc = async_data_write_finalize(callid, write_block->data + (pos % block_size), bytes);
    11371137        if (rc != EOK) {
    1138                 // TODO error
    1139                 EXT4FS_DBG("error in write finalize \%d", rc);
     1138                ext4fs_node_put(fn);
     1139                return rc;
    11401140        }
    11411141
     
    11441144        rc = block_put(write_block);
    11451145        if (rc != EOK) {
    1146                 EXT4FS_DBG("error in writing block \%d", rc);
    11471146                ext4fs_node_put(fn);
    11481147                return rc;
Note: See TracChangeset for help on using the changeset viewer.