Changeset 4f30222 in mainline
- Timestamp:
- 2017-05-16T21:58:20Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3ec2acc
- Parents:
- dde4689
- Location:
- uspace
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/src/ops.c
rdde4689 r4f30222 920 920 * @param index Output value - index of root node 921 921 * @param size Output value - size of root node 922 * @param lnkcnt Output value - link count of root node923 922 * 924 923 * @return Error code … … 926 925 */ 927 926 static int ext4_mounted(service_id_t service_id, const char *opts, 928 fs_index_t *index, aoff64_t *size , unsigned *lnkcnt)927 fs_index_t *index, aoff64_t *size) 929 928 { 930 929 ext4_filesystem_t *fs; … … 962 961 *index = EXT4_INODE_ROOT_INDEX; 963 962 *size = rnsize; 964 *lnkcnt = 1;965 963 966 964 return EOK; -
uspace/lib/fs/libfs.c
rdde4689 r4f30222 123 123 fs_index_t index; 124 124 aoff64_t size; 125 unsigned lnkcnt; 126 rc = vfs_out_ops->mounted(service_id, opts, &index, &size, &lnkcnt); 125 rc = vfs_out_ops->mounted(service_id, opts, &index, &size); 127 126 128 127 if (rc == EOK) 129 async_answer_4(rid, EOK, index, LOWER32(size), UPPER32(size), 130 lnkcnt); 128 async_answer_3(rid, EOK, index, LOWER32(size), UPPER32(size)); 131 129 else 132 130 async_answer_0(rid, rc); -
uspace/lib/fs/libfs.h
rdde4689 r4f30222 44 44 typedef struct { 45 45 int (* fsprobe)(service_id_t, vfs_fs_probe_info_t *); 46 int (* mounted)(service_id_t, const char *, fs_index_t *, aoff64_t *, 47 unsigned *); 46 int (* mounted)(service_id_t, const char *, fs_index_t *, aoff64_t *); 48 47 int (* unmounted)(service_id_t); 49 48 int (* read)(service_id_t, fs_index_t, aoff64_t, size_t *); -
uspace/srv/fs/cdfs/cdfs_ops.c
rdde4689 r4f30222 1119 1119 1120 1120 static int cdfs_mounted(service_id_t service_id, const char *opts, 1121 fs_index_t *index, aoff64_t *size , unsigned int *lnkcnt)1121 fs_index_t *index, aoff64_t *size) 1122 1122 { 1123 1123 /* Initialize the block layer */ … … 1176 1176 *index = root->index; 1177 1177 *size = root->size; 1178 *lnkcnt = root->lnkcnt;1179 1178 1180 1179 return EOK; -
uspace/srv/fs/exfat/exfat_ops.c
rdde4689 r4f30222 1081 1081 static int 1082 1082 exfat_mounted(service_id_t service_id, const char *opts, fs_index_t *index, 1083 aoff64_t *size , unsigned *linkcnt)1083 aoff64_t *size) 1084 1084 { 1085 1085 int rc; … … 1259 1259 *index = rootp->idx->index; 1260 1260 *size = rootp->size; 1261 *linkcnt = rootp->lnkcnt;1262 1261 1263 1262 return EOK; -
uspace/srv/fs/fat/fat_ops.c
rdde4689 r4f30222 956 956 static int 957 957 fat_mounted(service_id_t service_id, const char *opts, fs_index_t *index, 958 aoff64_t *size , unsigned *linkcnt)958 aoff64_t *size) 959 959 { 960 960 enum cache_mode cmode = CACHE_MODE_WB; … … 1105 1105 *index = ridxp->index; 1106 1106 *size = rootp->size; 1107 *linkcnt = rootp->lnkcnt;1108 1107 1109 1108 return EOK; -
uspace/srv/fs/locfs/locfs_ops.c
rdde4689 r4f30222 461 461 462 462 static int locfs_mounted(service_id_t service_id, const char *opts, 463 fs_index_t *index, aoff64_t *size , unsigned *lnkcnt)463 fs_index_t *index, aoff64_t *size) 464 464 { 465 465 *index = 0; 466 466 *size = 0; 467 *lnkcnt = 0;468 467 return EOK; 469 468 } -
uspace/srv/fs/mfs/mfs_ops.c
rdde4689 r4f30222 296 296 static int 297 297 mfs_mounted(service_id_t service_id, const char *opts, fs_index_t *index, 298 aoff64_t *size , unsigned *linkcnt)298 aoff64_t *size) 299 299 { 300 300 enum cache_mode cmode; … … 353 353 *index = mroot->ino_i->index; 354 354 *size = mroot->ino_i->i_size; 355 *linkcnt = 1;356 355 357 356 return mfs_node_put(fn); -
uspace/srv/fs/tmpfs/tmpfs_ops.c
rdde4689 r4f30222 427 427 428 428 static int 429 tmpfs_mounted(service_id_t service_id, const char *opts, 430 fs_index_t *index, aoff64_t *size, unsigned *lnkcnt)429 tmpfs_mounted(service_id_t service_id, const char *opts, fs_index_t *index, 430 aoff64_t *size) 431 431 { 432 432 fs_node_t *rootfn; … … 454 454 *index = rootp->index; 455 455 *size = rootp->size; 456 *lnkcnt = rootp->lnkcnt;457 456 458 457 return EOK; -
uspace/srv/fs/udf/udf_ops.c
rdde4689 r4f30222 305 305 306 306 static int udf_mounted(service_id_t service_id, const char *opts, 307 fs_index_t *index, aoff64_t *size , unsigned *linkcnt)307 fs_index_t *index, aoff64_t *size) 308 308 { 309 309 enum cache_mode cmode; … … 411 411 *index = instance->volumes[DEFAULT_VOL].root_dir; 412 412 *size = node->data_size; 413 *linkcnt = node->link_cnt;414 413 415 414 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.