Changeset 09ab0a9a in mainline for uspace/srv/fs
- Timestamp:
- 2018-09-13T12:05:53Z (7 years ago)
- 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)
- Location:
- uspace/srv/fs
- Files:
-
- 23 edited
-
exfat/exfat.c (modified) (1 diff)
-
exfat/exfat.h (modified) (2 diffs)
-
exfat/exfat_bitmap.c (modified) (5 diffs)
-
exfat/exfat_bitmap.h (modified) (1 diff)
-
exfat/exfat_dentry.h (modified) (5 diffs)
-
exfat/exfat_directory.c (modified) (2 diffs)
-
exfat/exfat_directory.h (modified) (2 diffs)
-
exfat/exfat_fat.c (modified) (3 diffs)
-
exfat/exfat_ops.c (modified) (5 diffs)
-
fat/fat_directory.h (modified) (1 diff)
-
fat/fat_fat.c (modified) (1 diff)
-
fat/fat_ops.c (modified) (1 diff)
-
locfs/locfs.c (modified) (2 diffs)
-
mfs/mfs.c (modified) (1 diff)
-
mfs/mfs.h (modified) (2 diffs)
-
mfs/mfs_balloc.c (modified) (2 diffs)
-
mfs/mfs_dentry.c (modified) (1 diff)
-
mfs/mfs_inode.c (modified) (1 diff)
-
mfs/mfs_ops.c (modified) (3 diffs)
-
mfs/mfs_rw.c (modified) (2 diffs)
-
mfs/mfs_utils.c (modified) (1 diff)
-
tmpfs/tmpfs_ops.c (modified) (1 diff)
-
udf/udf_volume.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat.c
rb2aaaa0 r09ab0a9a 101 101 } 102 102 103 104 103 /** 105 104 * @} -
uspace/srv/fs/exfat/exfat.h
rb2aaaa0 r09ab0a9a 164 164 } exfat_node_t; 165 165 166 167 166 extern vfs_out_ops_t exfat_ops; 168 167 extern libfs_ops_t exfat_libfs_ops; … … 185 184 extern errno_t exfat_uctable_get(fs_node_t **, service_id_t); 186 185 187 188 186 #endif 189 187 -
uspace/srv/fs/exfat/exfat_bitmap.c
rb2aaaa0 r09ab0a9a 47 47 #include <mem.h> 48 48 49 50 49 errno_t exfat_bitmap_is_free(exfat_bs_t *bs, service_id_t service_id, 51 50 exfat_cluster_t clst) … … 216 215 } 217 216 218 219 217 errno_t exfat_bitmap_append_clusters(exfat_bs_t *bs, exfat_node_t *nodep, 220 218 exfat_cluster_t count) … … 239 237 } 240 238 241 242 239 errno_t exfat_bitmap_free_clusters(exfat_bs_t *bs, exfat_node_t *nodep, 243 240 exfat_cluster_t count) … … 249 246 return exfat_bitmap_clear_clusters(bs, nodep->idx->service_id, lastc + 1, count); 250 247 } 251 252 248 253 249 errno_t exfat_bitmap_replicate_clusters(exfat_bs_t *bs, exfat_node_t *nodep) … … 267 263 } 268 264 269 270 271 265 /** 272 266 * @} -
uspace/srv/fs/exfat/exfat_bitmap.h
rb2aaaa0 r09ab0a9a 60 60 exfat_cluster_t, exfat_cluster_t); 61 61 62 63 62 #endif 64 63 -
uspace/srv/fs/exfat/exfat_dentry.h
rb2aaaa0 r09ab0a9a 57 57 #define EXFAT_ATTR_SUBDIR 0x10 58 58 #define EXFAT_ATTR_ARCHIVE 0x20 59 60 59 61 60 /* All dentry structs should have 31 byte size */ … … 122 121 } __attribute__((packed)) exfat_name_dentry_t; 123 122 124 125 123 typedef struct { 126 124 uint8_t type; … … 136 134 } __attribute__((packed)) exfat_dentry_t; 137 135 138 139 136 typedef enum { 140 137 EXFAT_DENTRY_SKIP, … … 149 146 EXFAT_DENTRY_NAME 150 147 } exfat_dentry_clsf_t; 151 152 148 153 149 extern exfat_dentry_clsf_t exfat_classify_dentry(const exfat_dentry_t *); … … 165 161 extern size_t exfat_utf16_length(const uint16_t *); 166 162 167 168 163 #endif 169 164 -
uspace/srv/fs/exfat/exfat_directory.c
rb2aaaa0 r09ab0a9a 211 211 } 212 212 213 214 213 errno_t exfat_directory_read_file(exfat_directory_t *di, char *name, size_t size, 215 214 exfat_file_dentry_t *df, exfat_stream_dentry_t *ds) … … 557 556 } 558 557 559 560 558 /** 561 559 * @} -
uspace/srv/fs/exfat/exfat_directory.h
rb2aaaa0 r09ab0a9a 53 53 } exfat_directory_t; 54 54 55 56 55 extern void exfat_directory_init(exfat_directory_t *); 57 56 extern errno_t exfat_directory_open(exfat_node_t *, exfat_directory_t *); … … 77 76 extern errno_t exfat_directory_erase_file(exfat_directory_t *, aoff64_t); 78 77 79 80 78 extern errno_t exfat_directory_expand(exfat_directory_t *); 81 79 extern errno_t exfat_directory_lookup_free(exfat_directory_t *, size_t); 82 80 extern errno_t exfat_directory_print(exfat_directory_t *); 83 84 81 85 82 #endif -
uspace/srv/fs/exfat/exfat_fat.c
rb2aaaa0 r09ab0a9a 52 52 #include <str.h> 53 53 54 55 54 /** 56 55 * The fat_alloc_lock mutex protects all copies of the File Allocation Table … … 218 217 return rc; 219 218 } 220 221 219 222 220 /** Get cluster from the FAT. … … 533 531 } 534 532 535 536 533 /** Perform basic sanity checks on the file system. 537 534 * -
uspace/srv/fs/exfat/exfat_ops.c
rb2aaaa0 r09ab0a9a 283 283 } 284 284 285 286 285 /** Internal version of exfat_node_get(). 287 286 * … … 487 486 } 488 487 489 490 488 /* 491 489 * EXFAT libfs operations. … … 506 504 return exfat_node_get(rfn, service_id, EXFAT_UCTABLE_IDX); 507 505 } 508 509 506 510 507 errno_t exfat_match(fs_node_t **rfn, fs_node_t *pfn, const char *component) … … 885 882 } 886 883 887 888 884 fs_index_t exfat_index_get(fs_node_t *fn) 889 885 { … … 1232 1228 block_fini(service_id); 1233 1229 } 1234 1235 1230 1236 1231 /* -
uspace/srv/fs/fat/fat_directory.h
rb2aaaa0 r09ab0a9a 51 51 } fat_directory_t; 52 52 53 54 53 extern errno_t fat_directory_open(fat_node_t *, fat_directory_t *); 55 54 extern errno_t fat_directory_close(fat_directory_t *); -
uspace/srv/fs/fat/fat_fat.c
rb2aaaa0 r09ab0a9a 412 412 return rc; 413 413 } 414 415 414 416 415 /** Get cluster from the first FAT. -
uspace/srv/fs/fat/fat_ops.c
rb2aaaa0 r09ab0a9a 811 811 return EOK; 812 812 } 813 814 813 815 814 fs_index_t fat_index_get(fs_node_t *fn) -
uspace/srv/fs/locfs/locfs.c
rb2aaaa0 r09ab0a9a 73 73 } 74 74 75 76 75 if (!locfs_init()) { 77 76 printf("%s: failed to initialize locfs\n", NAME); … … 104 103 * @} 105 104 */ 106 -
uspace/srv/fs/mfs/mfs.c
rb2aaaa0 r09ab0a9a 106 106 * @} 107 107 */ 108 -
uspace/srv/fs/mfs/mfs.h
rb2aaaa0 r09ab0a9a 229 229 mfs_count_free_inodes(struct mfs_instance *inst, uint32_t *inodes); 230 230 231 232 231 /* mfs_utils.c */ 233 232 extern uint16_t … … 245 244 * @} 246 245 */ 247 -
uspace/srv/fs/mfs/mfs_balloc.c
rb2aaaa0 r09ab0a9a 47 47 mfs_count_free_bits(struct mfs_instance *inst, bmap_id_t bid, uint32_t *free); 48 48 49 50 49 /**Allocate a new inode. 51 50 * … … 408 407 * @} 409 408 */ 410 -
uspace/srv/fs/mfs/mfs_dentry.c
rb2aaaa0 r09ab0a9a 264 264 } 265 265 266 267 266 /** 268 267 * @} 269 268 */ 270 -
uspace/srv/fs/mfs/mfs_inode.c
rb2aaaa0 r09ab0a9a 380 380 * @} 381 381 */ 382 -
uspace/srv/fs/mfs/mfs_ops.c
rb2aaaa0 r09ab0a9a 38 38 #include <str.h> 39 39 #include "mfs.h" 40 41 40 42 41 static bool check_magic_number(uint16_t magic, bool *native, … … 278 277 } 279 278 280 281 279 static errno_t mfs_fsprobe(service_id_t service_id, vfs_fs_probe_info_t *info) 282 280 { … … 1275 1273 * @} 1276 1274 */ 1277 -
uspace/srv/fs/mfs/mfs_rw.c
rb2aaaa0 r09ab0a9a 50 50 write_ind_zone(struct mfs_instance *inst, uint32_t zone, uint32_t *ind_zone); 51 51 52 53 52 /**Given the position in the file expressed in 54 53 * bytes, this function returns the on-disk block … … 405 404 } 406 405 407 408 406 /** 409 407 * @} 410 408 */ 411 -
uspace/srv/fs/mfs/mfs_utils.c
rb2aaaa0 r09ab0a9a 64 64 * @} 65 65 */ 66 -
uspace/srv/fs/tmpfs/tmpfs_ops.c
rb2aaaa0 r09ab0a9a 668 668 * @} 669 669 */ 670 -
uspace/srv/fs/udf/udf_volume.h
rb2aaaa0 r09ab0a9a 118 118 } __attribute__((packed)) udf_primary_volume_descriptor_t; 119 119 120 121 120 /* Partition Descriptor (ECMA 167 3/10.5) */ 122 121 typedef struct udf_partition_descriptor {
Note:
See TracChangeset
for help on using the changeset viewer.
