Changeset 1433ecda in mainline for uspace/srv/fs


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
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/cdfs/cdfs_endian.h

    r47b2d7e3 r1433ecda  
    3737
    3838#if !(defined(__BE__) ^ defined(__LE__))
    39         #error The architecture must be either big-endian or little-endian.
     39#error The architecture must be either big-endian or little-endian.
    4040#endif
    4141
  • 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
  • uspace/srv/fs/fat/fat.h

    r47b2d7e3 r1433ecda  
    105105                        /** Boot sector signature. */
    106106                        uint16_t        signature;
    107                 } __attribute__ ((packed));
     107                } __attribute__((packed));
    108108                struct {
    109109                        /* FAT32 only */
     
    136136                        /** Signature. */
    137137                        uint16_t        signature;
    138                 } __attribute__ ((packed)) fat32;
     138                } __attribute__((packed)) fat32;
    139139        };
    140 } __attribute__ ((packed)) fat_bs_t;
     140} __attribute__((packed)) fat_bs_t;
    141141
    142142#define FAT32_FSINFO_SIG1       "RRaA"
     
    152152        uint8_t res2[12];
    153153        uint8_t sig3[4];
    154 } __attribute__ ((packed)) fat32_fsinfo_t;
     154} __attribute__((packed)) fat32_fsinfo_t;
    155155
    156156typedef enum {
  • uspace/srv/fs/fat/fat_dentry.c

    r47b2d7e3 r1433ecda  
    382382{
    383383        wchar_t ch;
    384         size_t offset=0;
     384        size_t offset = 0;
    385385        bool result = true;
    386386
  • uspace/srv/fs/fat/fat_dentry.h

    r47b2d7e3 r1433ecda  
    117117                        uint16_t        eaidx;          /* FAT12/FAT16 */
    118118                        uint16_t        firstc_hi;      /* FAT32 */
    119                 } __attribute__ ((packed));
     119                } __attribute__((packed));
    120120                uint16_t        mtime;
    121121                uint16_t        mdate;
     
    123123                        uint16_t        firstc;         /* FAT12/FAT16 */
    124124                        uint16_t        firstc_lo;      /* FAT32 */
    125                 } __attribute__ ((packed));
     125                } __attribute__((packed));
    126126                uint32_t        size;
    127         } __attribute__ ((packed));
     127        } __attribute__((packed));
    128128        struct {
    129129                uint8_t         order;
     
    135135                uint16_t        firstc_lo; /* MUST be 0 */
    136136                uint16_t        part3[FAT_LFN_PART3_SIZE];
    137         } __attribute__ ((packed)) lfn;
    138 } __attribute__ ((packed)) fat_dentry_t;
     137        } __attribute__((packed)) lfn;
     138} __attribute__((packed)) fat_dentry_t;
    139139
    140140extern int fat_dentry_namecmp(char *, const char *);
  • uspace/srv/fs/fat/fat_directory.c

    r47b2d7e3 r1433ecda  
    383383                /* Copy number */
    384384                size_t offset;
    385                 if (str_size(name)+str_size(number) + 1 > FAT_NAME_LEN)
     385                if (str_size(name) + str_size(number) + 1 > FAT_NAME_LEN)
    386386                        offset = FAT_NAME_LEN - str_size(number) - 1;
    387387                else
  • uspace/srv/fs/udf/udf_file.h

    r47b2d7e3 r1433ecda  
    104104        uint8_t implementation_use[0];
    105105        udf_dstring file_id[0];
    106 }__attribute__((packed)) udf_file_identifier_descriptor_t;
     106} __attribute__((packed)) udf_file_identifier_descriptor_t;
    107107
    108108/* ICB tag - Information Control Block  (ECMA 167 4/14.6) */
     
    184184        uint32_t ad_lenght;
    185185        uint8_t allocation_descriptors[0];
    186 }__attribute__((packed)) udf_unallocated_space_entry_descriptor_t;
     186} __attribute__((packed)) udf_unallocated_space_entry_descriptor_t;
    187187
    188188/* Space Bitmap Descriptor format (ECMA 167 4/14.12) */
     
    192192        uint32_t byts_number;
    193193        uint8_t bitmap[0];
    194 }__attribute__((packed)) udf_space_bitmap_descriptor_t;
     194} __attribute__((packed)) udf_space_bitmap_descriptor_t;
    195195
    196196extern errno_t udf_node_get_core(udf_node_t *);
Note: See TracChangeset for help on using the changeset viewer.