mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
ctld: correctly parse LUN size on 32-bit arches
Disk offset values must always be 64-bit, not size_t. PR: 214874 Submitted by: pprocacci@gmail.com Event: January 2025 Bug-busting session (cherry picked from commit f26fe2c6669d56621ac85f5279aa85503cbf59bc)
This commit is contained in:
parent
f390c81498
commit
f8b102d9bb
2 changed files with 2 additions and 2 deletions
|
|
@ -1569,7 +1569,7 @@ lun_set_serial(struct lun *lun, const char *value)
|
|||
}
|
||||
|
||||
void
|
||||
lun_set_size(struct lun *lun, size_t value)
|
||||
lun_set_size(struct lun *lun, int64_t value)
|
||||
{
|
||||
|
||||
lun->l_size = value;
|
||||
|
|
|
|||
|
|
@ -349,7 +349,7 @@ void lun_set_device_id(struct lun *lun, const char *value);
|
|||
void lun_set_path(struct lun *lun, const char *value);
|
||||
void lun_set_scsiname(struct lun *lun, const char *value);
|
||||
void lun_set_serial(struct lun *lun, const char *value);
|
||||
void lun_set_size(struct lun *lun, size_t value);
|
||||
void lun_set_size(struct lun *lun, int64_t value);
|
||||
void lun_set_ctl_lun(struct lun *lun, uint32_t value);
|
||||
|
||||
struct option *option_new(struct options *os,
|
||||
|
|
|
|||
Loading…
Reference in a new issue