Changeset 4797132 in mainline for uspace/srv/fs/fat/fat_ops.c


Ignore:
Timestamp:
2008-05-08T19:23:36Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4573a79
Parents:
9a5ccfb3
Message:

Need a way to locate the FAT index structure by VFS index. Also fix code that
locates the FAT index structure by position in the file system namespace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_ops.c

    r9a5ccfb3 r4797132  
    309309                        if (strcmp(name, component) == 0) {
    310310                                /* hit */
    311                                 fat_idx_t *idx = fat_idx_map(
     311                                fat_idx_t *idx = fat_idx_get_by_pos(
    312312                                    parentp->idx->dev_handle, parentp->firstc,
    313313                                    i * dps + j);
     314                                if (!idx) {
     315                                        /*
     316                                         * Can happen if memory is low or if we
     317                                         * run out of 32-bit indices.
     318                                         */
     319                                        block_put(b);
     320                                        return NULL;
     321                                }
    314322                                void *node = fat_node_get(idx->dev_handle,
    315323                                    idx->index);
Note: See TracChangeset for help on using the changeset viewer.