Changes in / [190c943:b741888] in mainline


Ignore:
Location:
uspace
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/isa/isa.ma

    r190c943 rb741888  
    1 9 pci/ven=8086&dev=7000
     19       pci/ven=8086&dev=7000
  • uspace/drv/bus/usb/ehci/ehci.ma

    r190c943 rb741888  
    1 10 pci/class=0c&subclass=03&progif=20
     110 pci/ven=1002&dev=4345
     210 pci/ven=1002&dev=4386
     310 pci/ven=1002&dev=4396
     410 pci/ven=1002&dev=4373
     510 pci/ven=1022&dev=7463
     610 pci/ven=1022&dev=7808
     710 pci/ven=102f&dev=01b5
     810 pci/ven=10cf&dev=1415
     910 pci/ven=10de&dev=00e8
     1010 pci/ven=10de&dev=055f
     1110 pci/ven=10de&dev=056a
     1210 pci/ven=10de&dev=077c
     1310 pci/ven=10de&dev=077e
     1410 pci/ven=10de&dev=0aa6
     1510 pci/ven=10de&dev=0aa9
     1610 pci/ven=10de&dev=0aaa
     1710 pci/ven=10de&dev=0d9d
     1810 pci/ven=1166&dev=0414
     1910 pci/ven=1166&dev=0416
     2010 pci/ven=1414&dev=5805
     2110 pci/ven=1414&dev=5807
     2210 pci/ven=15ad&dev=0770
     2310 pci/ven=17a0&dev=8084
     2410 pci/ven=8086&dev=24cd
     2510 pci/ven=8086&dev=24dd
     2610 pci/ven=8086&dev=265c
     2710 pci/ven=8086&dev=268c
     2810 pci/ven=8086&dev=27cc
     2910 pci/ven=8086&dev=2836
     3010 pci/ven=8086&dev=283a
     3110 pci/ven=8086&dev=293a
     3210 pci/ven=8086&dev=293c
     3310 pci/ven=8086&dev=3a3a
     3410 pci/ven=8086&dev=3a3c
     3510 pci/ven=8086&dev=3a6a
     3610 pci/ven=8086&dev=3a6c
     3710 pci/ven=8086&dev=8117
     3810 pci/ven=8086&dev=8807
     3910 pci/ven=8086&dev=880f
  • uspace/drv/bus/usb/ohci/ohci.ma

    r190c943 rb741888  
    1 10 pci/class=0c&subclass=03&progif=10
     110 pci/ven=106b&dev=0026
     210 pci/ven=106b&dev=003f
     310 pci/ven=10de&dev=0aa5
     4
     510 pci/ven=1002&dev=4374
     610 pci/ven=1002&dev=4375
     7
     810 pci/ven=1002&dev=4387
     910 pci/ven=1002&dev=4388
     1010 pci/ven=1002&dev=4389
     1110 pci/ven=1002&dev=438a
     1210 pci/ven=1002&dev=438b
     1310 pci/ven=1002&dev=4397
     1410 pci/ven=1002&dev=4398
     1510 pci/ven=1002&dev=4399
  • uspace/drv/bus/usb/uhci/uhci.ma

    r190c943 rb741888  
    1 10 pci/class=0c&subclass=03&progif=00
     110 pci/ven=8086&dev=7020
     210 pci/ven=8086&dev=7112
     3
     410 pci/ven=8086&dev=27c8
     510 pci/ven=8086&dev=27c9
     610 pci/ven=8086&dev=27ca
     710 pci/ven=8086&dev=27cb
     8
     910 pci/ven=8086&dev=2830
     1010 pci/ven=8086&dev=2831
     1110 pci/ven=8086&dev=2832
     1210 pci/ven=8086&dev=2834
     1310 pci/ven=8086&dev=2835
     14
     1510 pci/ven=8086&dev=2934
     1610 pci/ven=8086&dev=2935
     1710 pci/ven=8086&dev=2936
     1810 pci/ven=8086&dev=2937
     1910 pci/ven=8086&dev=2938
     2010 pci/ven=8086&dev=2939
     21
     2210 pci/ven=8086&dev=24c2
     2310 pci/ven=8086&dev=24c4
     2410 pci/ven=8086&dev=24c7
     25
     2610 pci/ven=8086&dev=2688
     2710 pci/ven=8086&dev=2689
     2810 pci/ven=8086&dev=268a
     2910 pci/ven=8086&dev=268b
  • uspace/drv/bus/usb/vhc/vhc.ma

    r190c943 rb741888  
    1110 usb&hc=vhc
     2
  • uspace/lib/minix/minix.h

    r190c943 rb741888  
    3939#define S_ISDIR(m)              (((m) & S_IFMT) == S_IFDIR)
    4040#define S_ISREG(m)              (((m) & S_IFMT) == S_IFREG)
    41 #define S_IFDIR                 0040000         /* Directory */
    42 #define S_IFREG                 0100000         /* Regular file */
     41#define S_IFDIR                 0040000         /*Directory*/
     42#define S_IFREG                 0100000         /*Regular file*/
    4343#define S_IFMT                  00170000
    4444
    45 /* The following block sizes are valid only on V3 filesystem */
     45/*The following block sizes are valid only on V3 filesystem*/
    4646#define MFS_MIN_BLOCKSIZE       1024
    4747#define MFS_MAX_BLOCKSIZE       4096
     
    8888#define MFS_ERROR_FS            0x0002
    8989
    90 /* MFS V1/V2 superblock data on disk */
     90/*MFS V1/V2 superblock data on disk*/
    9191struct mfs_superblock {
    92         /* Total number of inodes on the device */
     92        /*Total number of inodes on the device*/
    9393        uint16_t        s_ninodes;
    94         /* Total number of zones on the device */
     94        /*Total number of zones on the device*/
    9595        uint16_t        s_nzones;
    96         /* Number of inode bitmap blocks */
     96        /*Number of inode bitmap blocks*/
    9797        uint16_t        s_ibmap_blocks;
    98         /* Number of zone bitmap blocks */
     98        /*Number of zone bitmap blocks*/
    9999        uint16_t        s_zbmap_blocks;
    100         /* First data zone on device */
     100        /*First data zone on device*/
    101101        uint16_t        s_first_data_zone;
    102         /* Base 2 logarithm of the zone to block ratio */
     102        /*Base 2 logarithm of the zone to block ratio*/
    103103        uint16_t        s_log2_zone_size;
    104         /* Maximum file size expressed in bytes */
     104        /*Maximum file size expressed in bytes*/
    105105        uint32_t        s_max_file_size;
    106106        /*
     
    109109         */
    110110        uint16_t        s_magic;
    111         /* Flag used to detect FS errors*/
     111        /*Flag used to detect FS errors*/
    112112        uint16_t        s_state;
    113         /* Total number of zones on the device (V2 only) */
     113        /*Total number of zones on the device (V2 only)*/
    114114        uint32_t        s_nzones2;
    115115} __attribute__ ((packed));
    116116
    117117
    118 /* MFS V3 superblock data on disk */
     118/*MFS V3 superblock data on disk*/
    119119struct mfs3_superblock {
    120         /* Total number of inodes on the device */
     120        /*Total number of inodes on the device*/
    121121        uint32_t        s_ninodes;
    122122        uint16_t        s_pad0;
    123         /* Number of inode bitmap blocks */
     123        /*Number of inode bitmap blocks*/
    124124        int16_t         s_ibmap_blocks;
    125         /* Number of zone bitmap blocks */
     125        /*Number of zone bitmap blocks*/
    126126        int16_t         s_zbmap_blocks;
    127         /* First data zone on device */
     127        /*First data zone on device*/
    128128        uint16_t        s_first_data_zone;
    129         /* Base 2 logarithm of the zone to block ratio */
     129        /*Base 2 logarithm of the zone to block ratio*/
    130130        int16_t         s_log2_zone_size;
    131131        int16_t         s_pad1;
    132         /* Maximum file size expressed in bytes */
     132        /*Maximum file size expressed in bytes*/
    133133        uint32_t        s_max_file_size;
    134         /* Total number of zones on the device */
     134        /*Total number of zones on the device*/
    135135        uint32_t        s_nzones;
    136136        /*
     
    140140        int16_t         s_magic;
    141141        int16_t         s_pad2;
    142         /* Filesystem block size expressed in bytes */
     142        /*Filesystem block size expressed in bytes*/
    143143        uint16_t        s_block_size;
    144         /* Filesystem disk format version */
     144        /*Filesystem disk format version*/
    145145        int8_t          s_disk_version;
    146146} __attribute__ ((packed));
    147147
    148 /* MinixFS V1 inode structure as it is on disk */
     148/*MinixFS V1 inode structure as it is on disk*/
    149149struct mfs_inode {
    150150        uint16_t        i_mode;
     
    154154        uint8_t         i_gid;
    155155        uint8_t         i_nlinks;
    156         /* Block numbers for direct zones */
     156        /*Block numbers for direct zones*/
    157157        uint16_t        i_dzone[V1_NR_DIRECT_ZONES];
    158         /* Block numbers for indirect zones */
     158        /*Block numbers for indirect zones*/
    159159        uint16_t        i_izone[V1_NR_INDIRECT_ZONES];
    160160} __attribute__ ((packed));
    161161
    162 /* MinixFS V2 inode structure as it is on disk (also valid for V3). */
     162/*MinixFS V2 inode structure as it is on disk (also valid for V3).*/
    163163struct mfs2_inode {
    164164        uint16_t        i_mode;
     
    170170        int32_t         i_mtime;
    171171        int32_t         i_ctime;
    172         /* Block numbers for direct zones */
     172        /*Block numbers for direct zones*/
    173173        uint32_t        i_dzone[V2_NR_DIRECT_ZONES];
    174         /* Block numbers for indirect zones */
     174        /*Block numbers for indirect zones*/
    175175        uint32_t        i_izone[V2_NR_INDIRECT_ZONES];
    176176} __attribute__ ((packed));
    177177
    178 /* MinixFS V1/V2 directory entry on-disk structure */
     178/*MinixFS V1/V2 directory entry on-disk structure*/
    179179struct mfs_dentry {
    180180        uint16_t d_inum;
     
    182182};
    183183
    184 /* MinixFS V3 directory entry on-disk structure */
     184/*MinixFS V3 directory entry on-disk structure*/
    185185struct mfs3_dentry {
    186186        uint32_t d_inum;
  • uspace/srv/fs/mfs/mfs.h

    r190c943 rb741888  
    4848#define NAME            "mfs"
    4949
    50 /* #define DEBUG_MODE */
     50//#define DEBUG_MODE
    5151
    5252#define min(a, b)       ((a) < (b) ? (a) : (b))
     
    7171} mfs_version_t;
    7272
    73 /* Generic MinixFS superblock */
     73/*Generic MinixFS superblock*/
    7474struct mfs_sb_info {
    7575        uint32_t ninodes;
     
    8484        uint16_t state;
    8585
    86         /* The following fields do not exist on disk but only in memory */
     86        /*The following fields do not exist on disk but only in memory*/
    8787        unsigned long itable_size;
    8888        mfs_version_t fs_version;
     
    9797};
    9898
    99 /* Generic MinixFS inode */
     99/*Generic MinixFS inode*/
    100100struct mfs_ino_info {
    101101        uint16_t        i_mode;
     
    107107        int32_t         i_mtime;
    108108        int32_t         i_ctime;
    109         /* Block numbers for direct zones */
     109        /*Block numbers for direct zones*/
    110110        uint32_t        i_dzone[V2_NR_DIRECT_ZONES];
    111         /* Block numbers for indirect zones */
     111        /*Block numbers for indirect zones*/
    112112        uint32_t        i_izone[V2_NR_INDIRECT_ZONES];
    113113
    114         /* The following fields do not exist on disk but only in memory */
     114        /*The following fields do not exist on disk but only in memory*/
    115115        bool dirty;
    116116        fs_index_t index;
    117117};
    118118
    119 /* Generic MFS directory entry */
     119/*Generic MFS directory entry*/
    120120struct mfs_dentry_info {
    121121        uint32_t d_inum;
    122122        char d_name[MFS3_MAX_NAME_LEN + 1];
    123123
    124         /* The following fields do not exist on disk but only in memory */
    125 
    126         /* Index of the dentry in the list */
     124        /*The following fields do not exist on disk but only in memory*/
     125
     126        /*Index of the dentry in the list*/
    127127        unsigned index;
    128         /* Pointer to the node at witch the dentry belongs */
     128        /*Pointer to the node at witch the dentry belongs*/
    129129        struct mfs_node *node;
    130130};
     
    136136};
    137137
    138 /* MinixFS node in core */
     138/*MinixFS node in core*/
    139139struct mfs_node {
    140140        struct mfs_ino_info *ino_i;
     
    145145};
    146146
    147 /* mfs_ops.c */
     147/*mfs_ops.c*/
    148148extern vfs_out_ops_t mfs_ops;
    149149extern libfs_ops_t mfs_libfs_ops;
     
    152152mfs_global_init(void);
    153153
    154 /* mfs_inode.c */
     154/*mfs_inode.c*/
    155155extern int
    156156mfs_get_inode(struct mfs_instance *inst, struct mfs_ino_info **ino_i,
    157     fs_index_t index);
     157          fs_index_t index);
    158158
    159159extern int
     
    163163mfs_inode_shrink(struct mfs_node *mnode, size_t size_shrink);
    164164
    165 /* mfs_rw.c */
     165/*mfs_rw.c*/
    166166extern int
    167167mfs_read_map(uint32_t *b, const struct mfs_node *mnode, const uint32_t pos);
     
    169169extern int
    170170mfs_write_map(struct mfs_node *mnode, uint32_t pos, uint32_t new_zone,
    171     uint32_t *old_zone);
     171          uint32_t *old_zone);
    172172
    173173extern int
    174174mfs_prune_ind_zones(struct mfs_node *mnode, size_t new_size);
    175175
    176 /* mfs_dentry.c */
     176/*mfs_dentry.c*/
    177177extern int
    178178mfs_read_dentry(struct mfs_node *mnode,
    179     struct mfs_dentry_info *d_info, unsigned index);
     179                     struct mfs_dentry_info *d_info, unsigned index);
    180180
    181181extern int
     
    188188mfs_insert_dentry(struct mfs_node *mnode, const char *d_name, fs_index_t d_inum);
    189189
    190 /* mfs_balloc.c */
     190/*mfs_balloc.c*/
    191191extern int
    192192mfs_alloc_inode(struct mfs_instance *inst, uint32_t *inum);
     
    201201mfs_free_zone(struct mfs_instance *inst, uint32_t zone);
    202202
    203 /* mfs_utils.c */
     203/*mfs_utils.c*/
    204204extern uint16_t
    205205conv16(bool native, uint16_t n);
  • uspace/srv/fs/mfs/mfs_balloc.c

    r190c943 rb741888  
    198198                limit = sbi->nzones - sbi->firstdatazone - 1;
    199199        } else {
    200                 /* bid == BMAP_INODE */
     200                /*bid == BMAP_INODE*/
    201201                search = &sbi->isearch;
    202202                start_block = 2;
     
    212212        for (i = *search / bits_per_block; i < nblocks; ++i) {
    213213                r = block_get(&b, inst->service_id, i + start_block,
    214                     BLOCK_FLAGS_NONE);
     214                              BLOCK_FLAGS_NONE);
    215215
    216216                if (r != EOK)
  • uspace/srv/fs/mfs/mfs_dentry.c

    r190c943 rb741888  
    168168                return ENAMETOOLONG;
    169169
    170         /* Search the directory entry to be removed */
     170        /*Search the directory entry to be removed*/
    171171        unsigned i;
    172172        for (i = 0; i < mnode->ino_i->i_size / sbi->dirsize ; ++i) {
  • uspace/srv/fs/mfs/mfs_inode.c

    r190c943 rb741888  
    235235
    236236        r = block_get(&b, mnode->instance->service_id,
    237             itable_off + inum / sbi->ino_per_block,
    238             BLOCK_FLAGS_NONE);
     237                      itable_off + inum / sbi->ino_per_block,
     238                      BLOCK_FLAGS_NONE);
    239239
    240240        if (r != EOK)
     
    278278
    279279        r = block_get(&b, mnode->instance->service_id,
    280             itable_off + inum / sbi->ino_per_block,
    281             BLOCK_FLAGS_NONE);
     280                      itable_off + inum / sbi->ino_per_block,
     281                      BLOCK_FLAGS_NONE);
    282282
    283283        if (r != EOK)
  • uspace/srv/fs/mfs/mfs_ops.c

    r190c943 rb741888  
    664664        struct mfs_node *child = cfn->data;
    665665        struct mfs_sb_info *sbi = parent->instance->sbi;
    666         bool destroy_dentry = false;
    667666
    668667        mfsdebug("%s()\n", __FUNCTION__);
     
    673672        int r = mfs_insert_dentry(parent, name, child->ino_i->index);
    674673        if (r != EOK)
    675                 return r;
     674                goto exit_error;
     675
     676        child->ino_i->i_nlinks++;
     677        child->ino_i->dirty = true;
    676678
    677679        if (S_ISDIR(child->ino_i->i_mode)) {
    678                 if (child->ino_i->i_nlinks != 1) {
    679                         /* It's not possible to hardlink directories in MFS */
    680                         destroy_dentry = true;
    681                         r = EMLINK;
    682                         goto exit;
    683                 }
    684680                r = mfs_insert_dentry(child, ".", child->ino_i->index);
    685                 if (r != EOK) {
    686                         destroy_dentry = true;
    687                         goto exit;
    688                 }
     681                if (r != EOK)
     682                        goto exit_error;
    689683
    690684                r = mfs_insert_dentry(child, "..", parent->ino_i->index);
    691                 if (r != EOK) {
    692                         destroy_dentry = true;
    693                         goto exit;
    694                 }
     685                if (r != EOK)
     686                        goto exit_error;
    695687
    696688                parent->ino_i->i_nlinks++;
     
    698690        }
    699691
    700 exit:
    701         if (destroy_dentry) {
    702                 int r2 = mfs_remove_dentry(parent, name);
    703                 if (r2 != EOK)
    704                         r = r2;
    705         } else {
    706                 child->ino_i->i_nlinks++;
    707                 child->ino_i->dirty = true;
    708         }
     692exit_error:
    709693        return r;
    710694}
     
    837821found:
    838822                async_data_read_finalize(callid, d_info.d_name,
    839                     str_size(d_info.d_name) + 1);
     823                                        str_size(d_info.d_name) + 1);
    840824                bytes = ((pos - spos) + 1);
    841825        } else {
  • uspace/srv/fs/mfs/mfs_rw.c

    r190c943 rb741888  
    147147                                ino_i->dirty = true;
    148148                        } else {
    149                                 /* Sparse block */
     149                                /*Sparse block*/
    150150                                *b = 0;
    151151                                return EOK;
     
    233233}
    234234
    235 /**Free unused indirect zones from a MINIX inode according to its new size.
     235/**Free unused indirect zones from a MINIX inode according to it's new size.
    236236 *
    237237 * @param mnode         Pointer to a generic MINIX inode in memory.
Note: See TracChangeset for help on using the changeset viewer.