Changeset aab85d90 in mainline for uspace/lib/ext4/include


Ignore:
Timestamp:
2018-08-27T14:17:14Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c606e33, e43d658
Parents:
8867cf6
git-author:
Jiri Svoboda <jiri@…> (2018-08-26 17:15:23)
git-committer:
Jiri Svoboda <jiri@…> (2018-08-27 14:17:14)
Message:

Basic Ext4 filesystem creation (can only create Ext2-old, 1K blocks).

Location:
uspace/lib/ext4/include/ext4
Files:
4 edited

Legend:

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

    r8867cf6 raab85d90  
    11/*
     2 * Copyright (c) 2018 Jiri Svoboda
    23 * Copyright (c) 2011 Martin Sucha
    34 * Copyright (c) 2012 Frantisek Princ
     
    4041
    4142extern errno_t ext4_filesystem_probe(service_id_t);
     43extern errno_t ext4_filesystem_create(service_id_t);
    4244extern errno_t ext4_filesystem_open(ext4_instance_t *, service_id_t,
    4345    enum cache_mode, aoff64_t *, ext4_filesystem_t **);
     
    6769uint32_t ext4_filesystem_bg_get_backup_blocks(ext4_block_group_ref_t *bg);
    6870uint32_t ext4_filesystem_bg_get_itable_size(ext4_superblock_t *sb,
    69     ext4_block_group_ref_t *bg_ref);
     71    uint32_t);
    7072
    7173#endif
  • uspace/lib/ext4/include/ext4/ialloc.h

    r8867cf6 raab85d90  
    11/*
     2 * Copyright (c) 2018 Jiri Svoboda
    23 * Copyright (c) 2012 Frantisek Princ
    34 * All rights reserved.
     
    3839extern errno_t ext4_ialloc_free_inode(ext4_filesystem_t *, uint32_t, bool);
    3940extern errno_t ext4_ialloc_alloc_inode(ext4_filesystem_t *, uint32_t *, bool);
     41extern errno_t ext4_ialloc_alloc_this_inode(ext4_filesystem_t *, uint32_t,
     42    bool);
     43
    4044
    4145#endif
  • uspace/lib/ext4/include/ext4/superblock.h

    r8867cf6 raab85d90  
    11/*
     2 * Copyright (c) 2018 Jiri Svoboda
    23 * Copyright (c) 2011 Martin Sucha
    34 * Copyright (c) 2012 Frantisek Princ
     
    3738#include <block.h>
    3839#include <stdint.h>
     40#include <uuid.h>
    3941#include "ext4/types.h"
    4042
     
    113115    uint32_t);
    114116
    115 extern const uint8_t *ext4_superblock_get_uuid(ext4_superblock_t *);
    116 extern void ext4_superblock_set_uuid(ext4_superblock_t *, const uint8_t *);
     117extern void ext4_superblock_get_uuid(ext4_superblock_t *, uuid_t *);
     118extern void ext4_superblock_set_uuid(ext4_superblock_t *, uuid_t *);
    117119extern const char *ext4_superblock_get_volume_name(ext4_superblock_t *);
    118120extern void ext4_superblock_set_volume_name(ext4_superblock_t *, const char *);
     
    162164extern uint32_t ext4_superblock_get_inodes_in_group(ext4_superblock_t *,
    163165    uint32_t);
     166extern errno_t ext4_superblock_create(size_t, uint64_t, ext4_superblock_t **);
     167extern uint32_t ext4_superblock_get_group_backup_blocks(ext4_superblock_t *,
     168    uint32_t);
    164169
    165170#endif
  • uspace/lib/ext4/include/ext4/types.h

    r8867cf6 raab85d90  
    11/*
     2 * Copyright (c) 2018 Jiri Svoboda
    23 * Copyright (c) 2011 Martin Sucha
    34 * Copyright (c) 2012 Frantisek Princ
     
    143144
    144145
     146#define EXT4_GOOD_OLD_REV 0
     147#define EXT4_DYNAMIC_REV 1
     148
    145149#define EXT4_SUPERBLOCK_MAGIC   0xEF53
    146150#define EXT4_SUPERBLOCK_SIZE    1024
     
    276280#define EXT4_MAX_BLOCK_SIZE   65536  /* 64 KiB */
    277281#define EXT4_REV0_INODE_SIZE  128
     282#define EXT4_REV0_FIRST_INO   11
    278283
    279284#define EXT4_INODE_BLOCK_SIZE  512
Note: See TracChangeset for help on using the changeset viewer.