Date: Fri, 19 Jan 2001 09:20:22 +0100 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Matt Dillon <dillon@earth.backplane.com> Cc: Mike Smith <msmith@FreeBSD.ORG>, Tony Finch <dot@dotat.at>, arch@FreeBSD.ORG Subject: Re: dynamic vs static sysctls? Message-ID: <76032.979892422@critter> In-Reply-To: Your message of "Thu, 18 Jan 2001 16:13:14 PST." <200101190013.f0J0DEb88324@earth.backplane.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <200101190013.f0J0DEb88324@earth.backplane.com>, Matt Dillon writes: >:> Why not an ioctl on the disk device? You could arrange to pass in an >:> array of free blocks to reduce the number of syscalls. >: >:Because there's no linkage between the disk device and the filesystem. >:An ioctl on the mountpoint might make (a little) more sense. > > The sysctl scares me... it's a massively unportable idea. I'd much > prefer running an ioctl through the filesystem. An ioctl would end up on the device, which should know nothing about filesystems. If fcntl was extensible like ioctl, opening the rootdir of the filesystem and doing an fcntl would be the right way. Lacking that, a sysctl directly into the filesystem sounds like a pretty good solution to me. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?76032.979892422>