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:
Alan Somers 2025-01-17 10:36:08 -07:00
parent f390c81498
commit f8b102d9bb
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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,