Ignore:
Timestamp:
2017-05-11T22:26:39Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
de5b708
Parents:
4bfad34
Message:

Adjust prefixes ext4fs → ext4 after moving code.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/include/ext4/fstypes.h

    r4bfad34 rbe39fc6  
    11/*
     2 * Copyright (c) 2011 Martin Sucha
    23 * Copyright (c) 2012 Frantisek Princ
    34 * All rights reserved.
     
    3132 */
    3233
    33 #ifndef LIBEXT4_H_
    34 #define LIBEXT4_H_
     34#ifndef LIBEXT4_FSTYPES_H_
     35#define LIBEXT4_FSTYPES_H_
    3536
    36 #include "ext4/balloc.h"
    37 #include "ext4/bitmap.h"
    38 #include "ext4/block_group.h"
    39 #include "ext4/directory.h"
    40 #include "ext4/directory_index.h"
    41 #include "ext4/extent.h"
    42 #include "ext4/filesystem.h"
    43 #include "ext4/hash.h"
    44 #include "ext4/ialloc.h"
    45 #include "ext4/inode.h"
    46 #include "ext4/superblock.h"
     37#include <adt/list.h>
     38#include <libfs.h>
     39#include <loc.h>
    4740#include "ext4/types.h"
    4841
    49 #include <stdio.h>
    50 #define EXT4FS_DBG(format, ...) \
    51         printf("ext4fs: %s: " format "\n", \
    52             __FUNCTION__, ##__VA_ARGS__) \
     42/**
     43 * Type for holding an instance of mounted partition.
     44 */
     45typedef struct ext4_instance {
     46        link_t link;
     47        service_id_t service_id;
     48        ext4_filesystem_t *filesystem;
     49        unsigned int open_nodes_count;
     50} ext4_instance_t;
     51
     52/**
     53 * Type for wrapping common fs_node and add some useful pointers.
     54 */
     55typedef struct ext4_node {
     56        ext4_instance_t *instance;
     57        ext4_inode_ref_t *inode_ref;
     58        fs_node_t *fs_node;
     59        ht_link_t link;
     60        unsigned int references;
     61} ext4_node_t;
     62
     63#define EXT4_NODE(node) \
     64        ((node) ? (ext4_node_t *) (node)->data : NULL)
    5365
    5466#endif
Note: See TracChangeset for help on using the changeset viewer.