Re: kern/159281: [PATCH] Linux-like /proc/swaps for linprocfs

2011-08-02 Thread Robert Millan
2011/7/31 Kostik Belousov : > Below is the hopefully final patch after Bruce Evans' comments incorporated. > If nobody speaks, I will send this to re tomorrow. I notice it's been committed already, and tested latest HEAD. It's working fine, thank yo

Re: kern/159281: [PATCH] Linux-like /proc/swaps for linprocfs

2011-07-31 Thread Robert Millan
pdated your patch, hopefully fixing the issues. Do you have comments > or objections ? No. Thanks for fixing those problems. -- Robert Millan ___ freebsd-emulation@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-emulatio

Re: kern/159281: [PATCH] Linux-like /proc/swaps for linprocfs

2011-07-29 Thread Robert Millan
ction that returns swap information by index. Here's a patch with the changes you requested. -- Robert Millan --- a/sys/compat/linprocfs/linprocfs.c +++ b/sys/compat/linprocfs/linprocfs.c @@ -502,6 +502,32 @@ return (0); } +static int +linprocfs_doswaps(PFS_FILL_ARGS) +{ + struct xswdev xsw

[PATCH] Linux-like /proc/swaps for linprocfs

2011-07-28 Thread Robert Millan
Please consider this patch, it implements Linux-like /proc/swaps for linprocfs. E.g. $ cat /proc/swaps FilenameTypeSizeUsedPriority /dev/zvol/dimoni/swap unknown 2097152 0 -1 -- Robert Millan --- a/sys/compat