Changes in uspace/srv/fs/udf/udf_ops.c [48e3190:781408e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/udf/udf_ops.c
r48e3190 r781408e 249 249 } 250 250 251 static int udf_size_block(service_id_t service_id, uint32_t *size) 252 { 253 udf_instance_t *instance; 254 int rc = fs_instance_get(service_id, (void **) &instance); 255 if (rc != EOK) 256 return rc; 257 258 if (NULL == instance) 259 return ENOENT; 260 261 *size = instance->volumes[DEFAULT_VOL].logical_block_size; 262 263 return EOK; 264 } 265 266 static int udf_total_block_count(service_id_t service_id, uint64_t *count) 267 { 268 *count = 0; 269 270 return EOK; 271 } 272 273 static int udf_free_block_count(service_id_t service_id, uint64_t *count) 274 { 275 *count = 0; 276 277 return EOK; 278 } 279 251 280 libfs_ops_t udf_libfs_ops = { 252 281 .root_get = udf_root_get, … … 265 294 .is_directory = udf_is_directory, 266 295 .is_file = udf_is_file, 267 .service_get = udf_service_get 296 .service_get = udf_service_get, 297 .size_block = udf_size_block, 298 .total_block_count = udf_total_block_count, 299 .free_block_count = udf_free_block_count 268 300 }; 269 301 … … 311 343 rc = udf_volume_recongnition(service_id); 312 344 if (rc != EOK) { 313 log_msg(L VL_NOTE, "VRS failed");345 log_msg(LOG_DEFAULT, LVL_NOTE, "VRS failed"); 314 346 fs_instance_destroy(service_id); 315 347 free(instance); … … 322 354 rc = udf_get_anchor_volume_descriptor(service_id, &avd); 323 355 if (rc != EOK) { 324 log_msg(L VL_NOTE, "Anchor read failed");356 log_msg(LOG_DEFAULT, LVL_NOTE, "Anchor read failed"); 325 357 fs_instance_destroy(service_id); 326 358 free(instance); … … 329 361 } 330 362 331 log_msg(L VL_DEBUG,363 log_msg(LOG_DEFAULT, LVL_DEBUG, 332 364 "Volume: Anchor volume descriptor found. Sector size=%" PRIu32, 333 365 instance->sector_size); 334 log_msg(L VL_DEBUG,366 log_msg(LOG_DEFAULT, LVL_DEBUG, 335 367 "Anchor: main sequence [length=%" PRIu32 " (bytes), start=%" 336 368 PRIu32 " (sector)]", avd.main_extent.length, 337 369 avd.main_extent.location); 338 log_msg(L VL_DEBUG,370 log_msg(LOG_DEFAULT, LVL_DEBUG, 339 371 "Anchor: reserve sequence [length=%" PRIu32 " (bytes), start=%" 340 372 PRIu32 " (sector)]", avd.reserve_extent.length, … … 353 385 rc = udf_read_volume_descriptor_sequence(service_id, avd.main_extent); 354 386 if (rc != EOK) { 355 log_msg(L VL_NOTE, "Volume Descriptor Sequence read failed");387 log_msg(LOG_DEFAULT, LVL_NOTE, "Volume Descriptor Sequence read failed"); 356 388 fs_instance_destroy(service_id); 357 389 free(instance); … … 364 396 rc = udf_node_get(&rfn, service_id, instance->volumes[DEFAULT_VOL].root_dir); 365 397 if (rc != EOK) { 366 log_msg(L VL_NOTE, "Can't create root node");398 log_msg(LOG_DEFAULT, LVL_NOTE, "Can't create root node"); 367 399 fs_instance_destroy(service_id); 368 400 free(instance);
Note:
See TracChangeset
for help on using the changeset viewer.