Changeset fde8a27 in mainline for uspace/srv/fs/minixfs/mfs_utils.h


Ignore:
Timestamp:
2011-03-28T19:17:31Z (14 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1f1cc9d
Parents:
ef76d72
Message:

Fix bug when reading inodes that causes on-disk structures corruption if the
endianness is not native.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/minixfs/mfs_utils.h

    ref76d72 rfde8a27  
    3636#include <sys/types.h>
    3737#include <bool.h>
     38#include "mfs.h"
    3839
    39 uint16_t conv16(bool native, uint16_t n);
    40 uint32_t conv32(bool native, uint32_t n);
    41 uint64_t conv64(bool native, uint64_t n);
    42 int read_ind_block(block_t *b, struct mfs_instance *inst, uint32_t block);
     40extern uint16_t
     41conv16(bool native, uint16_t n);
     42
     43extern uint32_t
     44conv32(bool native, uint32_t n);
     45
     46extern uint64_t
     47conv64(bool native, uint64_t n);
     48
     49extern int
     50read_ind_block(void *data, struct mfs_instance *inst,
     51                uint32_t block, mfs_version_t version);
    4352
    4453#endif
Note: See TracChangeset for help on using the changeset viewer.