Changeset 09ab0a9a in mainline for uspace/srv/fs


Ignore:
Timestamp:
2018-09-13T12:05:53Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cc74cb5
Parents:
b2aaaa0
git-author:
Jiri Svoboda <jiri@…> (2018-09-13 07:09:46)
git-committer:
Jiri Svoboda <jiri@…> (2018-09-13 12:05:53)
Message:

Fix vertical spacing with new Ccheck revision.

Location:
uspace/srv/fs
Files:
23 edited

Legend:

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

    rb2aaaa0 r09ab0a9a  
    101101}
    102102
    103 
    104103/**
    105104 * @}
  • uspace/srv/fs/exfat/exfat.h

    rb2aaaa0 r09ab0a9a  
    164164} exfat_node_t;
    165165
    166 
    167166extern vfs_out_ops_t exfat_ops;
    168167extern libfs_ops_t exfat_libfs_ops;
     
    185184extern errno_t exfat_uctable_get(fs_node_t **, service_id_t);
    186185
    187 
    188186#endif
    189187
  • uspace/srv/fs/exfat/exfat_bitmap.c

    rb2aaaa0 r09ab0a9a  
    4747#include <mem.h>
    4848
    49 
    5049errno_t exfat_bitmap_is_free(exfat_bs_t *bs, service_id_t service_id,
    5150    exfat_cluster_t clst)
     
    216215}
    217216
    218 
    219217errno_t exfat_bitmap_append_clusters(exfat_bs_t *bs, exfat_node_t *nodep,
    220218    exfat_cluster_t count)
     
    239237}
    240238
    241 
    242239errno_t exfat_bitmap_free_clusters(exfat_bs_t *bs, exfat_node_t *nodep,
    243240    exfat_cluster_t count)
     
    249246        return exfat_bitmap_clear_clusters(bs, nodep->idx->service_id, lastc + 1, count);
    250247}
    251 
    252248
    253249errno_t exfat_bitmap_replicate_clusters(exfat_bs_t *bs, exfat_node_t *nodep)
     
    267263}
    268264
    269 
    270 
    271265/**
    272266 * @}
  • uspace/srv/fs/exfat/exfat_bitmap.h

    rb2aaaa0 r09ab0a9a  
    6060    exfat_cluster_t, exfat_cluster_t);
    6161
    62 
    6362#endif
    6463
  • uspace/srv/fs/exfat/exfat_dentry.h

    rb2aaaa0 r09ab0a9a  
    5757#define EXFAT_ATTR_SUBDIR       0x10
    5858#define EXFAT_ATTR_ARCHIVE      0x20
    59 
    6059
    6160/* All dentry structs should have 31 byte size */
     
    122121} __attribute__((packed)) exfat_name_dentry_t;
    123122
    124 
    125123typedef struct {
    126124        uint8_t type;
     
    136134} __attribute__((packed)) exfat_dentry_t;
    137135
    138 
    139136typedef enum {
    140137        EXFAT_DENTRY_SKIP,
     
    149146        EXFAT_DENTRY_NAME
    150147} exfat_dentry_clsf_t;
    151 
    152148
    153149extern exfat_dentry_clsf_t exfat_classify_dentry(const exfat_dentry_t *);
     
    165161extern size_t exfat_utf16_length(const uint16_t *);
    166162
    167 
    168163#endif
    169164
  • uspace/srv/fs/exfat/exfat_directory.c

    rb2aaaa0 r09ab0a9a  
    211211}
    212212
    213 
    214213errno_t exfat_directory_read_file(exfat_directory_t *di, char *name, size_t size,
    215214    exfat_file_dentry_t *df, exfat_stream_dentry_t *ds)
     
    557556}
    558557
    559 
    560558/**
    561559 * @}
  • uspace/srv/fs/exfat/exfat_directory.h

    rb2aaaa0 r09ab0a9a  
    5353} exfat_directory_t;
    5454
    55 
    5655extern void exfat_directory_init(exfat_directory_t *);
    5756extern errno_t exfat_directory_open(exfat_node_t *, exfat_directory_t *);
     
    7776extern errno_t exfat_directory_erase_file(exfat_directory_t *, aoff64_t);
    7877
    79 
    8078extern errno_t exfat_directory_expand(exfat_directory_t *);
    8179extern errno_t exfat_directory_lookup_free(exfat_directory_t *, size_t);
    8280extern errno_t exfat_directory_print(exfat_directory_t *);
    83 
    8481
    8582#endif
  • uspace/srv/fs/exfat/exfat_fat.c

    rb2aaaa0 r09ab0a9a  
    5252#include <str.h>
    5353
    54 
    5554/**
    5655 * The fat_alloc_lock mutex protects all copies of the File Allocation Table
     
    218217        return rc;
    219218}
    220 
    221219
    222220/** Get cluster from the FAT.
     
    533531}
    534532
    535 
    536533/** Perform basic sanity checks on the file system.
    537534 *
  • uspace/srv/fs/exfat/exfat_ops.c

    rb2aaaa0 r09ab0a9a  
    283283}
    284284
    285 
    286285/** Internal version of exfat_node_get().
    287286 *
     
    487486}
    488487
    489 
    490488/*
    491489 * EXFAT libfs operations.
     
    506504        return exfat_node_get(rfn, service_id, EXFAT_UCTABLE_IDX);
    507505}
    508 
    509506
    510507errno_t exfat_match(fs_node_t **rfn, fs_node_t *pfn, const char *component)
     
    885882}
    886883
    887 
    888884fs_index_t exfat_index_get(fs_node_t *fn)
    889885{
     
    12321228        block_fini(service_id);
    12331229}
    1234 
    12351230
    12361231/*
  • uspace/srv/fs/fat/fat_directory.h

    rb2aaaa0 r09ab0a9a  
    5151} fat_directory_t;
    5252
    53 
    5453extern errno_t fat_directory_open(fat_node_t *, fat_directory_t *);
    5554extern errno_t fat_directory_close(fat_directory_t *);
  • uspace/srv/fs/fat/fat_fat.c

    rb2aaaa0 r09ab0a9a  
    412412        return rc;
    413413}
    414 
    415414
    416415/** Get cluster from the first FAT.
  • uspace/srv/fs/fat/fat_ops.c

    rb2aaaa0 r09ab0a9a  
    811811        return EOK;
    812812}
    813 
    814813
    815814fs_index_t fat_index_get(fs_node_t *fn)
  • uspace/srv/fs/locfs/locfs.c

    rb2aaaa0 r09ab0a9a  
    7373        }
    7474
    75 
    7675        if (!locfs_init()) {
    7776                printf("%s: failed to initialize locfs\n", NAME);
     
    104103 * @}
    105104 */
    106 
  • uspace/srv/fs/mfs/mfs.c

    rb2aaaa0 r09ab0a9a  
    106106 * @}
    107107 */
    108 
  • uspace/srv/fs/mfs/mfs.h

    rb2aaaa0 r09ab0a9a  
    229229mfs_count_free_inodes(struct mfs_instance *inst, uint32_t *inodes);
    230230
    231 
    232231/* mfs_utils.c */
    233232extern uint16_t
     
    245244 * @}
    246245 */
    247 
  • uspace/srv/fs/mfs/mfs_balloc.c

    rb2aaaa0 r09ab0a9a  
    4747mfs_count_free_bits(struct mfs_instance *inst, bmap_id_t bid, uint32_t *free);
    4848
    49 
    5049/**Allocate a new inode.
    5150 *
     
    408407 * @}
    409408 */
    410 
  • uspace/srv/fs/mfs/mfs_dentry.c

    rb2aaaa0 r09ab0a9a  
    264264}
    265265
    266 
    267266/**
    268267 * @}
    269268 */
    270 
  • uspace/srv/fs/mfs/mfs_inode.c

    rb2aaaa0 r09ab0a9a  
    380380 * @}
    381381 */
    382 
  • uspace/srv/fs/mfs/mfs_ops.c

    rb2aaaa0 r09ab0a9a  
    3838#include <str.h>
    3939#include "mfs.h"
    40 
    4140
    4241static bool check_magic_number(uint16_t magic, bool *native,
     
    278277}
    279278
    280 
    281279static errno_t mfs_fsprobe(service_id_t service_id, vfs_fs_probe_info_t *info)
    282280{
     
    12751273 * @}
    12761274 */
    1277 
  • uspace/srv/fs/mfs/mfs_rw.c

    rb2aaaa0 r09ab0a9a  
    5050write_ind_zone(struct mfs_instance *inst, uint32_t zone, uint32_t *ind_zone);
    5151
    52 
    5352/**Given the position in the file expressed in
    5453 * bytes, this function returns the on-disk block
     
    405404}
    406405
    407 
    408406/**
    409407 * @}
    410408 */
    411 
  • uspace/srv/fs/mfs/mfs_utils.c

    rb2aaaa0 r09ab0a9a  
    6464 * @}
    6565 */
    66 
  • uspace/srv/fs/tmpfs/tmpfs_ops.c

    rb2aaaa0 r09ab0a9a  
    668668 * @}
    669669 */
    670 
  • uspace/srv/fs/udf/udf_volume.h

    rb2aaaa0 r09ab0a9a  
    118118} __attribute__((packed)) udf_primary_volume_descriptor_t;
    119119
    120 
    121120/* Partition Descriptor (ECMA 167 3/10.5) */
    122121typedef struct udf_partition_descriptor {
Note: See TracChangeset for help on using the changeset viewer.