Changeset 1433ecda in mainline for uspace/srv/fs/exfat


Ignore:
Timestamp:
2018-04-04T15:42:37Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

Location:
uspace/srv/fs/exfat
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/exfat/exfat.h

    r47b2d7e3 r1433ecda  
    8181                uint8_t minor;
    8282                uint8_t major;
    83         } __attribute__ ((packed)) version;
     83        } __attribute__((packed)) version;
    8484        uint16_t volume_flags;                  /* 0x6A volume state flags */
    8585        uint8_t bytes_per_sector;               /* 0x6C sector size as (1 << n) */
  • uspace/srv/fs/exfat/exfat_bitmap.c

    r47b2d7e3 r1433ecda  
    167167        clst = firstc;
    168168
    169         while (clst < firstc + count ) {
     169        while (clst < firstc + count) {
    170170                rc = exfat_bitmap_set_cluster(bs, service_id, clst);
    171171                if (rc != EOK) {
     
    211211                                endc++;
    212212                }
    213                 startc = endc+1;
     213                startc = endc + 1;
    214214        }
    215215        return ENOSPC;
     
    229229                clst = lastc + 1;
    230230                while (exfat_bitmap_is_free(bs, nodep->idx->service_id, clst) == EOK) {
    231                         if (clst - lastc == count){
     231                        if (clst - lastc == count) {
    232232                                return exfat_bitmap_set_clusters(bs, nodep->idx->service_id,
    233233                                    lastc + 1, count);
  • uspace/srv/fs/exfat/exfat_dentry.h

    r47b2d7e3 r1433ecda  
    6464        uint16_t        label[11];
    6565        uint8_t         _reserved[8];
    66 } __attribute__ ((packed)) exfat_vollabel_dentry_t;
     66} __attribute__((packed)) exfat_vollabel_dentry_t;
    6767
    6868typedef struct {
     
    7171        uint32_t        firstc;
    7272        uint64_t        size;
    73 } __attribute__ ((packed)) exfat_bitmap_dentry_t;
     73} __attribute__((packed)) exfat_bitmap_dentry_t;
    7474
    7575typedef struct {
     
    7979        uint32_t        firstc;
    8080        uint64_t        size;
    81 } __attribute__ ((packed)) exfat_uctable_dentry_t;
     81} __attribute__((packed)) exfat_uctable_dentry_t;
    8282
    8383typedef struct {
     
    8787        uint8_t         guid[16];
    8888        uint8_t         _reserved[10];
    89 } __attribute__ ((packed)) exfat_guid_dentry_t;
     89} __attribute__((packed)) exfat_guid_dentry_t;
    9090
    9191typedef struct {
     
    103103        uint8_t         atime_tz;
    104104        uint8_t         _reserved2[7];
    105 } __attribute__ ((packed)) exfat_file_dentry_t;
     105} __attribute__((packed)) exfat_file_dentry_t;
    106106
    107107typedef struct {
     
    115115        uint32_t        firstc;
    116116        uint64_t        data_size;
    117 } __attribute__ ((packed)) exfat_stream_dentry_t;
     117} __attribute__((packed)) exfat_stream_dentry_t;
    118118
    119119typedef struct {
    120120        uint8_t         flags;
    121121        uint16_t        name[EXFAT_NAME_PART_LEN];
    122 } __attribute__ ((packed)) exfat_name_dentry_t;
     122} __attribute__((packed)) exfat_name_dentry_t;
    123123
    124124
     
    134134                exfat_name_dentry_t     name;
    135135        };
    136 } __attribute__ ((packed)) exfat_dentry_t;
     136} __attribute__((packed)) exfat_dentry_t;
    137137
    138138
Note: See TracChangeset for help on using the changeset viewer.