mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Make kernel to update LUN size from the backing storage on configuration
reload also if that size was not specified in the new configuration. Previously it happened only if size was explicitly changed in config. MFC after: 3 days
This commit is contained in:
parent
08be57e51c
commit
8cf98331b0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271797
@ -1413,7 +1413,8 @@ conf_apply(struct conf *oldconf, struct conf *newconf)
|
||||
if (oldtarg != NULL) {
|
||||
oldlun = lun_find(oldtarg, newlun->l_lun);
|
||||
if (oldlun != NULL) {
|
||||
if (newlun->l_size != oldlun->l_size) {
|
||||
if (newlun->l_size != oldlun->l_size ||
|
||||
newlun->l_size == 0) {
|
||||
log_debugx("resizing lun %d, "
|
||||
"target %s, CTL lun %d",
|
||||
newlun->l_lun,
|
||||
|
Loading…
Reference in New Issue
Block a user