Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jan 2006 08:39:23 +0100 (CET)
From:      Soeren Straarup <xride@x12.dk>
To:        freebsd-geom@freebsd.org
Subject:   Geom version/generation sysctl
Message-ID:  <20060122081830.M49688@x12.dk>

next in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--0-872256273-1137915563=:49688
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE


Hi

I'm looking for a way to have a version/generation sysctl value.
one way i could do this is:
sysct -b kern.geom.confxml > file_a

sleep for some time
sysct -b kern.geom.confxml > file_b
diff file_a file_b | wc -l

If the last line is zero then do nothing. And then repeat it.

What i'm looking for a cheap way to get around this, with a version/
generation number that i test on.

Would something like that be hard to implement?

vbr S=F8ren

Soeren Straarup   | aka OZ2DAK aka Xride
FreeBSD wannabe   | FreeBSD since 2.2.6-R
   Incorrect documentation is often worse than no documentation.
   - Bertrand Meyer
--0-872256273-1137915563=:49688--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060122081830.M49688>