Changeset 9e45a41 in mainline
- Timestamp:
- 2019-12-15T12:07:48Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- eaf4e2fc
- Parents:
- cf78637
- Location:
- uspace/srv/volsrv
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/volsrv/part.c
rcf78637 r9e45a41 129 129 130 130 if (!already_known) { 131 log_msg(LOG_DEFAULT, LVL_ NOTE, "Found partition '%lu'",131 log_msg(LOG_DEFAULT, LVL_DEBUG, "Found partition '%lu'", 132 132 (unsigned long) svcs[i]); 133 133 rc = vol_part_add_locked(parts, svcs[i]); … … 155 155 156 156 if (!still_exists) { 157 log_msg(LOG_DEFAULT, LVL_ NOTE, "Partition '%zu' is gone",157 log_msg(LOG_DEFAULT, LVL_DEBUG, "Partition '%zu' is gone", 158 158 part->svc_id); 159 159 vol_part_remove_locked(part); … … 210 210 errno_t rc; 211 211 212 log_msg(LOG_DEFAULT, LVL_ NOTE, "Probe partition %s", part->svc_name);212 log_msg(LOG_DEFAULT, LVL_DEBUG, "Probe partition %s", part->svc_name); 213 213 214 214 assert(fibril_mutex_is_locked(&part->parts->lock)); … … 223 223 224 224 if (fst->name != NULL) { 225 log_msg(LOG_DEFAULT, LVL_ NOTE, "Found %s, label '%s'",225 log_msg(LOG_DEFAULT, LVL_DEBUG, "Found %s, label '%s'", 226 226 fst->name, info.label); 227 227 label = str_dup(info.label); … … 317 317 if (str_size(part->volume->mountp) > 0) { 318 318 cfg_mp = part->volume->mountp; 319 log_msg(LOG_DEFAULT, LVL_ NOTE, "Configured mount point '%s'",319 log_msg(LOG_DEFAULT, LVL_DEBUG, "Configured mount point '%s'", 320 320 cfg_mp); 321 321 } else { 322 322 cfg_mp = vol_part_def_mountp(part); 323 log_msg(LOG_DEFAULT, LVL_ NOTE, "Default mount point '%s'",323 log_msg(LOG_DEFAULT, LVL_DEBUG, "Default mount point '%s'", 324 324 cfg_mp); 325 325 } … … 334 334 } 335 335 336 log_msg(LOG_DEFAULT, LVL_ NOTE, "Determine MP label='%s'", part->label);336 log_msg(LOG_DEFAULT, LVL_DEBUG, "Determine MP label='%s'", part->label); 337 337 err = asprintf(&mp, "/vol/%s", part->label); 338 338 if (err < 0) { … … 378 378 if (mp_auto) { 379 379 /* Create directory for automatic mount point */ 380 log_msg(LOG_DEFAULT, LVL_ NOTE, "Create mount point '%s'", mp);380 log_msg(LOG_DEFAULT, LVL_DEBUG, "Create mount point '%s'", mp); 381 381 rc = vfs_link_path(mp, KIND_DIRECTORY, NULL); 382 382 if (rc != EOK) { … … 388 388 } 389 389 390 log_msg(LOG_DEFAULT, LVL_ NOTE, "Call vfs_mount_path mp='%s' fstype='%s' svc_name='%s'",390 log_msg(LOG_DEFAULT, LVL_DEBUG, "Call vfs_mount_path mp='%s' fstype='%s' svc_name='%s'", 391 391 mp, fstype_str(part->fstype), part->svc_name); 392 392 rc = vfs_mount_path(mp, fstype_str(part->fstype), 393 393 part->svc_name, "", 0, 0); 394 394 if (rc != EOK) { 395 log_msg(LOG_DEFAULT, LVL_NOTE, "Failed mounting to %s", mp); 396 } 397 log_msg(LOG_DEFAULT, LVL_NOTE, "Mount to %s -> %d\n", mp, rc); 395 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed mounting %s at %s to %s", 396 fstype_str(part->fstype), part->svc_name, mp); 397 } else { 398 log_msg(LOG_DEFAULT, LVL_NOTE, "Mounted %s at %s to %s\n", 399 fstype_str(part->fstype), part->svc_name, mp); 400 } 398 401 399 402 part->cur_mp = mp; … … 409 412 410 413 assert(fibril_mutex_is_locked(&parts->lock)); 411 log_msg(LOG_DEFAULT, LVL_ NOTE, "vol_part_add_locked(%zu)", sid);414 log_msg(LOG_DEFAULT, LVL_DEBUG, "vol_part_add_locked(%zu)", sid); 412 415 413 416 /* Check for duplicates */ … … 418 421 } 419 422 420 log_msg(LOG_DEFAULT, LVL_ NOTE, "partition %zu is new", sid);423 log_msg(LOG_DEFAULT, LVL_DEBUG, "partition %zu is new", sid); 421 424 422 425 part = vol_part_new(); … … 443 446 list_append(&part->lparts, &parts->parts); 444 447 445 log_msg(LOG_DEFAULT, LVL_ NOTE, "Added partition %zu", part->svc_id);448 log_msg(LOG_DEFAULT, LVL_DEBUG, "Added partition %zu", part->svc_id); 446 449 447 450 return EOK; … … 455 458 { 456 459 assert(fibril_mutex_is_locked(&part->parts->lock)); 457 log_msg(LOG_DEFAULT, LVL_ NOTE, "vol_part_remove_locked(%zu)",460 log_msg(LOG_DEFAULT, LVL_DEBUG, "vol_part_remove_locked(%zu)", 458 461 part->svc_id); 459 462 460 463 list_remove(&part->lparts); 461 464 462 log_msg(LOG_DEFAULT, LVL_ NOTE, "Removed partition.");465 log_msg(LOG_DEFAULT, LVL_DEBUG, "Removed partition."); 463 466 vol_part_del_ref(part); 464 467 } -
uspace/srv/volsrv/volsrv.c
rcf78637 r9e45a41 256 256 errno_t rc; 257 257 258 log_msg(LOG_DEFAULT, LVL_ NOTE, "vol_part_insert_by_path_srv()");258 log_msg(LOG_DEFAULT, LVL_DEBUG, "vol_part_insert_by_path_srv()"); 259 259 260 260 rc = async_data_write_accept((void **)&path, true, 0, VOL_MOUNTP_MAXLEN, … … 360 360 errno_t rc; 361 361 362 log_msg(LOG_DEFAULT, LVL_ NOTE, "vol_part_mkfs_srv()");362 log_msg(LOG_DEFAULT, LVL_DEBUG, "vol_part_mkfs_srv()"); 363 363 364 364 sid = ipc_get_arg1(icall); … … 373 373 374 374 if (label != NULL) { 375 log_msg(LOG_DEFAULT, LVL_ NOTE, "vol_part_mkfs_srv: label='%s'",375 log_msg(LOG_DEFAULT, LVL_DEBUG, "vol_part_mkfs_srv: label='%s'", 376 376 label); 377 377 } … … 385 385 386 386 if (mountp != NULL) { 387 log_msg(LOG_DEFAULT, LVL_ NOTE, "vol_part_mkfs_srv: mountp='%s'",387 log_msg(LOG_DEFAULT, LVL_DEBUG, "vol_part_mkfs_srv: mountp='%s'", 388 388 mountp); 389 389 } … … 422 422 errno_t rc; 423 423 424 log_msg(LOG_DEFAULT, LVL_ NOTE, "vol_part_set_mountp_srv()");424 log_msg(LOG_DEFAULT, LVL_DEBUG, "vol_part_set_mountp_srv()"); 425 425 426 426 sid = ipc_get_arg1(icall); … … 434 434 435 435 if (mountp != NULL) { 436 log_msg(LOG_DEFAULT, LVL_ NOTE,436 log_msg(LOG_DEFAULT, LVL_DEBUG, 437 437 "vol_part_set_mountp_srv: mountp='%s'", mountp); 438 438 } … … 464 464 errno_t rc; 465 465 466 log_msg(LOG_DEFAULT, LVL_ NOTE, "vol_get_volumes_srv()");466 log_msg(LOG_DEFAULT, LVL_DEBUG, "vol_get_volumes_srv()"); 467 467 468 468 if (!async_data_read_receive(&call, &size)) { -
uspace/srv/volsrv/volume.c
rcf78637 r9e45a41 96 96 static void vol_volume_delete(vol_volume_t *volume) 97 97 { 98 log_msg(LOG_DEFAULT, LVL_ NOTE, "Freeing volume %p", volume);98 log_msg(LOG_DEFAULT, LVL_DEBUG, "Freeing volume %p", volume); 99 99 100 100 free(volume->label); … … 219 219 { 220 220 assert(fibril_mutex_is_locked(&volumes->lock)); 221 log_msg(LOG_DEFAULT, LVL_ NOTE, "vol_volume_add_locked(%p)", volume);221 log_msg(LOG_DEFAULT, LVL_DEBUG, "vol_volume_add_locked(%p)", volume); 222 222 223 223 volume->volumes = volumes;
Note:
See TracChangeset
for help on using the changeset viewer.