Changeset 18c3658 in mainline


Ignore:
Timestamp:
2025-04-21T12:26:28Z (4 weeks ago)
Author:
Miroslav Cimerman <mc@…>
Children:
80c760e
Parents:
f09b75b
Message:

hr: raid{0,1,5}.c: unusable volume creation message

Location:
uspace/srv/bd/hr
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/hr/raid0.c

    rf09b75b r18c3658  
    9393
    9494        hr_raid0_update_vol_status(new_volume);
    95         if (new_volume->status != HR_VOL_ONLINE)
     95        if (new_volume->status != HR_VOL_ONLINE) {
     96                HR_NOTE("\"%s\": unusable state, not creating\n",
     97                    new_volume->devname);
    9698                return EINVAL;
     99        }
    97100
    98101        bd_srvs_init(&new_volume->hr_bds);
  • uspace/srv/bd/hr/raid1.c

    rf09b75b r18c3658  
    115115        hr_vol_status_t state = new_volume->status;
    116116        fibril_rwlock_read_unlock(&new_volume->states_lock);
    117         if (state == HR_VOL_FAULTY || state == HR_VOL_NONE)
     117        if (state == HR_VOL_FAULTY || state == HR_VOL_NONE) {
     118                HR_NOTE("\"%s\": unusable state, not creating\n",
     119                    new_volume->devname);
    118120                return EINVAL;
     121        }
    119122
    120123        return EOK;
  • uspace/srv/bd/hr/raid5.c

    rf09b75b r18c3658  
    107107        errno_t rc = hr_raid5_update_vol_status(new_volume);
    108108        if (rc != EOK) {
     109                HR_NOTE("\"%s\": unusable state, not creating\n",
     110                    new_volume->devname);
    109111                fibril_rwlock_write_unlock(&new_volume->states_lock);
    110112                return rc;
Note: See TracChangeset for help on using the changeset viewer.