Changeset d2c8533 in mainline for uspace/lib/c/generic/vfs/vfs.c
- Timestamp:
- 2017-05-08T20:38:47Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f066a87
- Parents:
- 582a0b8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/vfs/vfs.c
r582a0b8 rd2c8533 347 347 return loc_service_connect(stat.service, iface, 0); 348 348 } 349 350 /** Determine if a device contains the specified file system type. If so, 351 * return identification information. 352 * 353 * @param fs_name File system name 354 * @param serv Service representing the mountee 355 * @param info Place to store volume identification information 356 * 357 * @return EOK on success or a negative error code 358 */ 359 int vfs_fsprobe(const char *fs_name, service_id_t serv, 360 vfs_fs_probe_info_t *info) 361 { 362 sysarg_t rc; 363 364 ipc_call_t answer; 365 async_exch_t *exch = vfs_exchange_begin(); 366 aid_t req = async_send_1(exch, VFS_IN_FSPROBE, serv, &answer); 367 368 rc = async_data_write_start(exch, (void *) fs_name, 369 str_size(fs_name)); 370 371 async_wait_for(req, &rc); 372 373 if (rc != EOK) { 374 vfs_exchange_end(exch); 375 return rc; 376 } 377 378 rc = async_data_read_start(exch, info, sizeof(*info)); 379 vfs_exchange_end(exch); 380 381 return rc; 382 } 383 349 384 350 385 /** Return a list of currently available file system types
Note:
See TracChangeset
for help on using the changeset viewer.