| Summary: | kernel path needs to be changed in -current manual pages | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Documentation | Reporter: | Hiten Pandya <hiten> | ||||
| Component: | Books & Articles | Assignee: | freebsd-doc (Nobody) <doc> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Hiten Pandya
2002-03-27 18:20:00 UTC
On 2002-03-27 18:12, Hiten Pandya wrote: > >Description: > > Some manual pages in -current need to be changed which refer to > the /kernel file patch. Good catch :) I just did the following: % cd /usr/src % find . -name '*.[0-9]' | xargs grep /kernel | grep -v /boot/kernel and the files that were caught by the greps are shown below (just in case you want to attack them one by one, and submit patches for those that need to be changed/updated). This is a lot more work that it initially seems though. One needs to check if the manpage describes what the code does. There might be utilities left that use /kernel, instead of the currently used /boot/kernel/kernel, to find the kernel. This means that before the manpage is changed, the appropriate source files need to be checked, to make sure that the manpage reflects what really happens in the programs themselves. We don't want to blindly substitute /boot/kernel/kernel for all the instances of /kernel, and make the manpages inconsistent with the source, right? But, enough with the words. Here is the file list: src/bin/ps/ps.1 src/lib/libc/gen/getbootfile.3 src/sbin/nextboot/nextboot.8 src/sbin/reboot/boot_i386.8 src/sbin/savecore/savecore.8 src/share/man/man4/vinum.4 src/share/man/man8/crash.8 src/share/man/man9/DECLARE_MODULE.9 src/share/man/man9/DEV_MODULE.9 src/share/man/man9/DRIVER_MODULE.9 src/share/man/man9/SYSCALL_MODULE.9 src/share/man/man9/VFS_SET.9 src/share/man/man9/domain.9 src/share/man/man9/module.9 src/share/man/man9/taskqueue.9 src/share/man/man9/uio.9 src/sys/boot/common/loader.8 src/sys/boot/forth/loader.conf.5 src/usr.bin/fstat/fstat.1 src/usr.bin/ipcs/ipcs.1 src/usr.bin/nfsstat/nfsstat.1 src/usr.bin/symorder/symorder.1 src/usr.bin/systat/systat.1 src/usr.bin/vmstat/vmstat.8 src/usr.bin/w/uptime.1 src/usr.bin/w/w.1 src/usr.sbin/getextattr/getextattr.8 src/usr.sbin/iostat/iostat.8 src/usr.sbin/kernbb/kernbb.8 src/usr.sbin/kgmon/kgmon.8 src/usr.sbin/pstat/pstat.8 src/usr.sbin/rwhod/rwhod.8 src/usr.sbin/setextattr/setextattr.8 src/usr.sbin/trpt/trpt.8 --- Giorgos Keramidas <keramida@freebsd.org> wrote: > Good catch :) > I just did the following: > > % cd /usr/src > % find . -name '*.[0-9]' | xargs grep /kernel | grep -v /boot/kernel > > and the files that were caught by the greps are shown below (just in case > you want to attack them one by one, and submit patches for those that need > to be changed/updated). This is a lot more work that it initially seems > though. One needs to check if the manpage describes what the code does. > There might be utilities left that use /kernel, instead of the currently > used /boot/kernel/kernel, to find the kernel. This means that before the > manpage is changed, the appropriate source files need to be checked, to > make sure that the manpage reflects what really happens in the programs > themselves. We don't want to blindly substitute /boot/kernel/kernel for > all the instances of /kernel, and make the manpages inconsistent with the > source, right? Yup, you are absolutely right, but I according to my limited knowledge, I think it doesn't matter if the file is /kernel or /boot/kernel/kernel, as nothing is actually hard-coded which points directly to /kernel.. although I may be wrong... maybe someone superior than me has some input to make on this issue.. 8-) > [ .. snip .. snip .. ] src/usr.sbin/kgmon/kgmon.8 - This one is done. All it needs is the patch attached in this PR to be committed as I have checked this in my system as, and probably so can you... you will need the "profile" option in your kernel and you can do the following on a -CURRENT system if you are unsure about my change: %su [..magic password..] #kgmon -B (or -b) -N /boot/kernel/kernel The above will work fine with a profile kernel, so in a nutshell, my attached patch will not hurt this utility. For the rest in the list you gave me, I am sure it will not take more than two to three days to get it sorted, as I am having holidays... :) I am working on the list you have provided, and patches should be seen on this PR in a few days. :) Btw, thanks for the list. Thanks, -- Hiten Pandya -- <hiten@uk.FreeBSD.org> __________________________________________________ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ State Changed From-To: open->closed This has been fixed already, and joe committed the rest 2 days ago. |