Changeset 8b863a62 in mainline for uspace/srv/fs/udf/udf_ops.c
- Timestamp:
- 2014-04-16T17:14:06Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f857e8b
- Parents:
- dba3e2c (diff), 70b570c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/udf/udf_ops.c
rdba3e2c r8b863a62 50 50 #include <assert.h> 51 51 #include <fibril_synch.h> 52 #include <sys/mman.h>53 52 #include <align.h> 54 53 #include <malloc.h> … … 247 246 248 247 return false; 248 } 249 250 static int udf_size_block(service_id_t service_id, uint32_t *size) 251 { 252 udf_instance_t *instance; 253 int rc = fs_instance_get(service_id, (void **) &instance); 254 if (rc != EOK) 255 return rc; 256 257 if (NULL == instance) 258 return ENOENT; 259 260 *size = instance->volumes[DEFAULT_VOL].logical_block_size; 261 262 return EOK; 263 } 264 265 static int udf_total_block_count(service_id_t service_id, uint64_t *count) 266 { 267 *count = 0; 268 269 return EOK; 270 } 271 272 static int udf_free_block_count(service_id_t service_id, uint64_t *count) 273 { 274 *count = 0; 275 276 return EOK; 249 277 } 250 278 … … 265 293 .is_directory = udf_is_directory, 266 294 .is_file = udf_is_file, 267 .service_get = udf_service_get 295 .service_get = udf_service_get, 296 .size_block = udf_size_block, 297 .total_block_count = udf_total_block_count, 298 .free_block_count = udf_free_block_count 268 299 }; 269 300
Note:
See TracChangeset
for help on using the changeset viewer.