zfs: switch root filesystem from UFS to ZFS, silence fmcd ioctl spam
Change GATEWAY kernel config from UFS root to ZFS root (pool0/ROOT/default). ZFS is compiled into the kernel since booti direct boot has no FreeBSD loader to load modules. Disable kern.geom.label.disk_ident.enable so GPT labels work cleanly with ZFS. Remove printf from fman chardev ioctl default cases. ZFS GEOM probes all character devices with DIOCGMEDIASIZE (0x40086481) at boot, generating ~32 spurious "unknown ioctl" messages. ENOTTY is the correct response and the printf serves no diagnostic purpose.
This commit is contained in:
parent
c6e1ba22d8
commit
cfc080ef72
2 changed files with 9 additions and 5 deletions
|
|
@ -34,8 +34,15 @@ options TCP_SIGNATURE
|
|||
# Platform
|
||||
options SOC_NXP_LS
|
||||
|
||||
# Root filesystem (label set by opnsense-build arm.sh)
|
||||
options ROOTDEVNAME=\"ufs:/dev/ufs/OPNsense_ARM\"
|
||||
# ZFS (compiled in -- no FreeBSD loader with booti)
|
||||
options ZFS
|
||||
|
||||
# Root filesystem (ZFS pool "pool0")
|
||||
options ROOTDEVNAME=\"zfs:pool0/ROOT/default\"
|
||||
|
||||
# Disable diskid labels so GPT labels (/dev/gpt/*) work with ZFS
|
||||
# (diskid provider prevents GPT from attaching to the raw device)
|
||||
envvar kern.geom.label.disk_ident.enable="0"
|
||||
|
||||
# Early printf for debugging
|
||||
options SOCDEV_PA=0x2000000
|
||||
|
|
|
|||
|
|
@ -1606,7 +1606,6 @@ fmcd_pcd_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag,
|
|||
/* HC is already configured by fman.c — just accept */
|
||||
return (0);
|
||||
default:
|
||||
printf("fmcd: unknown PCD ioctl 0x%lx\n", cmd);
|
||||
return (ENOTTY);
|
||||
}
|
||||
}
|
||||
|
|
@ -1624,7 +1623,6 @@ fmcd_fm_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag,
|
|||
case FM_IOC_GET_API_VERSION:
|
||||
return (fmcd_ioc_get_api_version(sc, data));
|
||||
default:
|
||||
printf("fmcd: unknown FM ioctl 0x%lx\n", cmd);
|
||||
return (ENOTTY);
|
||||
}
|
||||
}
|
||||
|
|
@ -1654,7 +1652,6 @@ fmcd_port_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag,
|
|||
case FM_PORT_IOC_DISABLE:
|
||||
return (fmcd_ioc_port_disable(sc, h_port));
|
||||
default:
|
||||
printf("fmcd: unknown PORT ioctl 0x%lx\n", cmd);
|
||||
return (ENOTTY);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue