Changes in uspace/srv/fs/udf/udf_ops.c [781408e:48e3190] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/udf/udf_ops.c
r781408e r48e3190 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 280 251 libfs_ops_t udf_libfs_ops = { 281 252 .root_get = udf_root_get, … … 294 265 .is_directory = udf_is_directory, 295 266 .is_file = udf_is_file, 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 267 .service_get = udf_service_get 300 268 }; 301 269 … … 343 311 rc = udf_volume_recongnition(service_id); 344 312 if (rc != EOK) { 345 log_msg(L OG_DEFAULT, LVL_NOTE, "VRS failed");313 log_msg(LVL_NOTE, "VRS failed"); 346 314 fs_instance_destroy(service_id); 347 315 free(instance); … … 354 322 rc = udf_get_anchor_volume_descriptor(service_id, &avd); 355 323 if (rc != EOK) { 356 log_msg(L OG_DEFAULT, LVL_NOTE, "Anchor read failed");324 log_msg(LVL_NOTE, "Anchor read failed"); 357 325 fs_instance_destroy(service_id); 358 326 free(instance); … … 361 329 } 362 330 363 log_msg(L OG_DEFAULT, LVL_DEBUG,331 log_msg(LVL_DEBUG, 364 332 "Volume: Anchor volume descriptor found. Sector size=%" PRIu32, 365 333 instance->sector_size); 366 log_msg(L OG_DEFAULT, LVL_DEBUG,334 log_msg(LVL_DEBUG, 367 335 "Anchor: main sequence [length=%" PRIu32 " (bytes), start=%" 368 336 PRIu32 " (sector)]", avd.main_extent.length, 369 337 avd.main_extent.location); 370 log_msg(L OG_DEFAULT, LVL_DEBUG,338 log_msg(LVL_DEBUG, 371 339 "Anchor: reserve sequence [length=%" PRIu32 " (bytes), start=%" 372 340 PRIu32 " (sector)]", avd.reserve_extent.length, … … 385 353 rc = udf_read_volume_descriptor_sequence(service_id, avd.main_extent); 386 354 if (rc != EOK) { 387 log_msg(L OG_DEFAULT, LVL_NOTE, "Volume Descriptor Sequence read failed");355 log_msg(LVL_NOTE, "Volume Descriptor Sequence read failed"); 388 356 fs_instance_destroy(service_id); 389 357 free(instance); … … 396 364 rc = udf_node_get(&rfn, service_id, instance->volumes[DEFAULT_VOL].root_dir); 397 365 if (rc != EOK) { 398 log_msg(L OG_DEFAULT, LVL_NOTE, "Can't create root node");366 log_msg(LVL_NOTE, "Can't create root node"); 399 367 fs_instance_destroy(service_id); 400 368 free(instance);
Note:
See TracChangeset
for help on using the changeset viewer.