Changeset 1cfa162 in mainline


Ignore:
Timestamp:
2024-11-04T17:05:27Z (6 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
52af125
Parents:
cf28ffd3
Message:

hr: assert block size to be a multiple of 512

File:
1 edited

Legend:

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

    rcf28ffd3 r1cfa162  
    170170        }
    171171
     172        if ((bsize % 512) != 0) {
     173                log_msg(LOG_DEFAULT, LVL_ERROR,
     174                    "block size not multiple of 512");
     175                return EINVAL;
     176        }
     177
    172178        if (rblkno != NULL)
    173179                *rblkno = total_blocks;
Note: See TracChangeset for help on using the changeset viewer.