[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#644669: freebsd-utils: Consider importing iostat from upstream



Package: freebsd-utils
Version: 8.2+ds2-5
Severity: wishlist
Tags: patch

Please consider including FreeBSD's own "iostat" in this package.
Until I have finished writing the addition of "diskstats" to linprocfs,
the package "netstat" produces an executable "iostat" which gives no
information at all about diskstatus for GNU/kFreeBSD; hence this
solution to bring into action a known utility.

The present patch takes the upstream code and deposits the
executable as

    /lib/freebsd/iostat

in order to avoid the conflict with "sysstat". However, the
corresponding manual page is not installed by the patch.
Personally I would prefer to have it as

    iostat.bsd (8)

Best regards,
  Mats Erik Andersson, DM
Index: debian/patches/series
===================================================================
--- debian/patches/series	(revision 3725)
+++ debian/patches/series	(arbetskopia)
@@ -37,3 +37,4 @@
 038_jail.diff
 039_geom.diff
 040_kdump_multiarch.diff
+041_iostat.diff
Index: debian/patches/041_iostat.diff
===================================================================
--- debian/patches/041_iostat.diff	(revision 0)
+++ debian/patches/041_iostat.diff	(revision 0)
@@ -0,0 +1,18 @@
+--- freebsd-utils-8.2+ds2/usr.sbin/iostat/iostat.c.orig
++++ freebsd-utils-8.2+ds2/usr.sbin/iostat/iostat.c
+@@ -104,6 +104,7 @@
+ #include <sys/errno.h>
+ #include <sys/resource.h>
+ #include <sys/sysctl.h>
++#include <sys/ioctl.h>
+ 
+ #include <err.h>
+ #include <ctype.h>
+@@ -118,6 +119,7 @@
+ #include <limits.h>
+ #include <devstat.h>
+ #include <math.h>
++#include <signal.h>
+ 
+ struct nlist namelist[] = {
+ #define X_TK_NIN	0
Index: debian/rules
===================================================================
--- debian/rules	(revision 3725)
+++ debian/rules	(arbetskopia)
@@ -78,6 +78,7 @@
 		 include/rpcsvc/nlm_prot.x include/rpcsvc/mount.x \
 		 sys/kgssapi/gssd.x \
 		 usr.bin/showmount \
+		 usr.sbin/iostat \
 	; do \
 	    svn export $(SVN)/$$i $(ORIGDIR)/$$i ; \
 	done
@@ -126,6 +127,7 @@
 	$(PMAKE) -C usr.bin/ktrace
 	$(PMAKE) -C usr.bin/mkuzip
 	$(PMAKE) -C usr.sbin/acpi/acpiconf
+	$(PMAKE) -C usr.sbin/iostat
 	$(PMAKE) -C usr.sbin/rpc.umntall
 	$(PMAKE) -C usr.sbin/jail
 	touch $@
@@ -231,6 +233,7 @@
 	$(PMAKE) -C usr.bin/ktrace clean
 	$(PMAKE) -C usr.bin/mkuzip clean
 	$(PMAKE) -C usr.sbin/acpi/acpiconf clean
+	$(PMAKE) -C usr.sbin/iostat clean
 	$(PMAKE) -C usr.sbin/rpc.umntall clean
 	$(PMAKE) -C usr.sbin/jail clean
 
Index: debian/freebsd-utils.install
===================================================================
--- debian/freebsd-utils.install	(revision 3725)
+++ debian/freebsd-utils.install	(arbetskopia)
@@ -4,6 +4,8 @@
 sbin/umount/umount			/lib/freebsd
 sbin/sysctl/sysctl			/lib/freebsd
 
+usr.sbin/iostat/iostat			/lib/freebsd
+
 usr.bin/kdump/kdump	    		/usr/bin
 usr.bin/ktrace/ktrace    		/usr/bin
 usr.bin/mkuzip/mkuzip			/usr/bin

Reply to: