Changeset 7413683 in mainline


Ignore:
Timestamp:
2011-03-04T18:32:29Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
63ffffd
Parents:
eaf9794
Message:

Do not duplicate code, use symbolic lynks instead of copy-paste

Location:
uspace
Files:
3 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/mkminix/mkminix.c

    reaf9794 r7413683  
    4848#include <getopt.h>
    4949#include <mem.h>
    50 #include "mfs.h"
     50#include "mfs_const.h"
     51#include "mfs_inode.h"
     52#include "mfs_super.h"
    5153
    5254#define NAME    "mkminix"
     
    8486        size_t devblock_size;
    8587        unsigned long n_inodes = 0;
    86 
    87         struct mfs_superblock *sb;
    88         sb = (struct mfs_superblock *) malloc(sizeof(struct mfs_superblock));
    8988
    9089        if (argc == 1) {
  • uspace/srv/fs/minixfs/mfs.c

    reaf9794 r7413683  
    4646#include <stdio.h>
    4747#include <libfs.h>
    48 #include "../../vfs/vfs.h"
    49 #include "mfs_const.h"
     48#include "mfs.h"
    5049#include "mfs_super.h"
    5150
  • uspace/srv/fs/minixfs/mfs_const.h

    reaf9794 r7413683  
    3838#include <bool.h>
    3939
     40#define MFS_MAX_BLOCK_SIZE      4096
     41#define MFS_MIN_BLOCK_SIZE      1024
     42
    4043#define MFS_ROOT_INO            1
    4144#define MFS_SUPER_BLOCK         0
  • uspace/srv/fs/minixfs/mfs_super.c

    reaf9794 r7413683  
    3636#include <errno.h>
    3737#include <str.h>
     38#include "mfs.h"
    3839#include "mfs_super.h"
    3940#include "mfs_utils.h"
  • uspace/srv/fs/minixfs/mfs_super.h

    reaf9794 r7413683  
    3535
    3636#include "mfs_const.h"
    37 #include "../../vfs/vfs.h"
    3837
    3938#define MFS_MAGIC_V1            0x137F
     
    4645#define MFS_MAGIC_V3R           0x5A4D
    4746
     47/*V3 superblock data on disk*/
    4848struct mfs_superblock {
    4949        /*Total number of inodes on the device*/
     
    6666        /*Magic number used to recognize MinixFS and to detect on-disk endianness*/
    6767        int16_t         s_magic;
    68 
    69         /* The following fields are valid only for MinixFS V3 */
    70 
    7168        int16_t         s_pad2;
    7269        /*Filesystem block size expressed in bytes*/
     
    8279} mfs_version_t;
    8380
    84 void mfs_mounted(ipc_callid_t rid, ipc_call_t *request);
    85 
    8681#endif
    8782
Note: See TracChangeset for help on using the changeset viewer.