The NetBSD Project

CVS log for src/sbin/raidctl/rf_configure.c

[BACK] Up to [cvs.NetBSD.org] / src / sbin / raidctl

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.37 / (download) - annotate - [select for diffs], Thu Jul 21 09:19:53 2022 UTC (19 months, 2 weeks ago) by kre
Branch: MAIN
CVS Tags: triaxx-drm, netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)


PR bin/56917

If getfsspecname() fails that will usually mean that a NAME=wedge or
ROOT.x partition is unabailable.   raidframe specified unavailable
partitions as "absent" so in this case, pass "absent" rather than the
unaltered NAME= or ROOT.x string, which the kernel has no clue what
do do with, and doesn't configure the raid at all.

Revision 1.36 / (download) - annotate - [select for diffs], Tue Jun 14 08:06:13 2022 UTC (20 months, 3 weeks ago) by kre
Branch: MAIN
Changes since 1.35: +19 -2 lines
Diff to previous 1.35 (colored)

Fix some config file parsing.

First, and what got me started on this set of cleanups, the queue
length in the "queue" section (START queue) is limited to what will
fit in a char without losing accuracy (I tried setting it to 200,
rather than the more common (universal?) 100 and found that the
value configured into the array was -56 instead.

Why the value needs to be passed through a char variable I have no
idea (it is an int in the filesystem raidframe headers) - but that's
the way it is done, and changing it would be an ABI change I believe
(and so need versioning to alter) and that isn't worth it for this
(or not now, IMO).

Instead check that the value in the char is the same value as was
read from the config file, and complain if not.   Those of you with
unsigned chars will be able to have queue lengths up to 255, the
rest of us are limited to 127.

While looking at that, I noticed some code that obviously fails to
understand that scanf("%s") will never return a string containing
spaces, and proceeded to attempt to remove trailing spaces from the
result ... amusingly, after having used the result for its intended
purpose (non existent trailing spaces unremoved), after which that
buffer was never used again.   That code is now gone (but for now,
just #if 0'd rather than actually deleted - it should be cleaned up
sometime).

Then I saw some other issues with how the config was parsed - a
simple (unbounded) scanf("%s") into a buffer, which hypothetically
might not be large enough (not a security issue really, raidctl has
no special privs, and it isn't likely that root could easily be
tricked into running it on a bogus config file - or not without
looking first anyway, and a huge long string would rather stand
out).   Bound the string length to something reasonable, and
assert() that the buffer is big enough to contain it.

Lastly, in the event of one particular detected error in the
config file, the code would write a warning, but then just go
ahead and use the bad data (or nothing perhaps) anyway - a
failure of logic flow (unlikely to have ever happened, everyone
seems to simply copy the sample config from the man page, and
make minor adjustments as needed).

If any of these changes make any difference to anyone (except
me with my attempt to make longer queues - for no particularly
well thought out reason), I'd be very surprised.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jun 14 08:06:07 2022 UTC (20 months, 3 weeks ago) by kre
Branch: MAIN
Changes since 1.34: +6 -6 lines
Diff to previous 1.34 (colored)

In the previous (and some earlier) version(s) of raidctl.c
the following comment appeared:

	/*
	 * After NetBSD 9, convert this to not output the numRow's value,
	 * which is no longer required or ever used.
	 */

We are after NetBSD 9 (well after).   The change requested in that
comment is made here, and the comment is thus removed.

A couple of places in rf_configure.c where a value for the "rows"
parameter was output in an error message (always simply as the
constant 0) have also been updated (those messages will no longer
include "row 0", which they always said previously).   One of them
was also slightly reworded to be clearer what problem it was
experiencing (when it said 'unable to get device file' it meant
it was unable to locate the name for the device in the config file,
not that it was found, and there was some other problem with it).

Revision 1.34 / (download) - annotate - [select for diffs], Sun Sep 6 05:31:46 2020 UTC (3 years, 5 months ago) by mrg
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

avoid trying to printf() a NULL as %s.  fixes likely bug.

Revision 1.26.8.1 / (download) - annotate - [select for diffs], Mon Sep 10 17:56:00 2018 UTC (5 years, 5 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.26: +203 -144 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1019):

	sbin/raidctl/rf_configure.h: revision 1.2
	sbin/raidctl/rf_configure.c: revision 1.27
	sbin/raidctl/rf_configure.c: revision 1.28
	sbin/raidctl/rf_configure.c: revision 1.29
	sbin/raidctl/raidctl.8: revision 1.73
	sbin/raidctl/rf_configure.c: revision 1.30
	sbin/raidctl/rf_configure.c: revision 1.31
	sbin/raidctl/rf_configure.c: revision 1.32

support NAME=<wedge name> syntax for disks and spares

 -

stop using magic constants
wrap long lines
use warn{,x}
make static
knf

 -

White space and comment formatting.   NFC.

 -

With char bug[SIZE]  using sizeof(bug[0]) is kind of boring, use
sizeof(bug) instead...

 -

Avoid needless pointer calisthenics: &foo[0] -> foo

 -

Several more cleanups:
1. Don't force use of "for" when "while" works better.
2. No need to check c != '\0' when we also check (c == ' ' || c == '\t')
3. Use the size of the buffer we're using, rather than a different one
   (not really a concern, they're the same size)
4. Don't use fscanf() to read file data, use fgets() & sscanf().
5. After using a pointer as a char *, validate alignment before switching
   to int * (can only fail if kernel #define gets set stupidly)   Or #6...
6. Validate sparemap file name isn't too long for assigned space.
7. recognise that strlen() returns size_t - don't shove it into an int.
8. On out of mem, be more clear which allocation failed in warning msg.

ATF tests all pass.   But I don't think they use sparemap files.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Jan 18 00:32:49 2018 UTC (6 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp
Changes since 1.32: +37 -31 lines
Diff to previous 1.32 (colored)

implement 32-bit compat support for raidframe.

convert several raidframe ioctls to be bitsize idempotent so that
they work the same in 32 and 64 bit worlds, allowing netbsd32 to
configure and query raid properly.  remove useless 'row' in a few
places.  add COMPAT_80 and put the old ioctls there.

raidframeio.h:
  RAIDFRAME_TEST_ACC
  - remove, unused
  RAIDFRAME_GET_COMPONENT_LABEL
  - convert to label not pointer to label
  RAIDFRAME_CHECK_RECON_STATUS_EXT
  RAIDFRAME_CHECK_PARITYREWRITE_STATUS_EXT
  RAIDFRAME_CHECK_COPYBACK_STATUS_EXT
  - convert to progress info not pointer to info
  RAIDFRAME_GET_INFO
  - version entirely.
raidframevar.h:
  - rf_recon_req{} has row, flags and raidPtr removed (they're
    not a useful part of this interface.)
  - RF_Config_s{} and RF_DeviceConfig_s{} have numRow/rows removed.
  - RF_RaidDisk_s{} is re-ordered slightly to fix alignment
    padding - the actual data was already OK.
  - InstallSpareTable() loses row argument

rf_compat32.c has code for RF_Config_s{} in 32 bit mode, used
by RAIDFRAME_CONFIGURE and RAIDFRAME_GET_INFO32.

rf_compat80.c has code for rf_recon_req{}, RF_RaidDisk_s{} and
RF_DeviceConfig_s{} to handle RAIDFRAME_FAIL_DISK,
RAIDFRAME_GET_COMPONENT_LABEL, RAIDFRAME_CHECK_RECON_STATUS_EXT,
RAIDFRAME_CHECK_PARITYREWRITE_STATUS_EXT,
RAIDFRAME_CHECK_COPYBACK_STATUS_EXT, RAIDFRAME_GET_INFO.

move several of the per-ioctl code blocks into separate functions.

add rf_recon_req_internal{} to replace old usage of global
rf_recon_req{} that had unused void * in the structure, ruining
it's 32/64 bit ABI.

add missing case for RAIDFRAME_GET_INFO50.

adjust raid tests to use the new .conf format, and add a case to
test the old method as well.

raidctl:
deal with lack of 'row' members in a couple of places.
fail request no longer takes row.
handle "START array" sections with just "numCol numSpare", ie
no "numRow" specified.  for now, generate old-style configuration
but update raidctl.8 to specify the new style (keeping reference
to the old style.)

note that: RF_ComponentLabel_s::{row,num_rows} and
RF_SingleComponent_s::row are obsolete but not removed yet.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Nov 22 00:31:31 2017 UTC (6 years, 3 months ago) by kre
Branch: MAIN
Changes since 1.31: +37 -17 lines
Diff to previous 1.31 (colored)

Several more cleanups:
1. Don't force use of "for" when "while" works better.
2. No need to check c != '\0' when we also check (c == ' ' || c == '\t')
3. Use the size of the buffer we're using, rather than a different one
   (not really a concern, they're the same size)
4. Don't use fscanf() to read file data, use fgets() & sscanf().
5. After using a pointer as a char *, validate alignment before switching
   to int * (can only fail if kernel #define gets set stupidly)   Or #6...
6. Validate sparemap file name isn't too long for assigned space.
7. recognise that strlen() returns size_t - don't shove it into an int.
8. On out of mem, be more clear which allocation failed in warning msg.

ATF tests all pass.   But I don't think they use sparemap files.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Nov 21 16:31:37 2017 UTC (6 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.30: +5 -5 lines
Diff to previous 1.30 (colored)

Avoid needless pointer calisthenics: &foo[0] -> foo

Revision 1.30 / (download) - annotate - [select for diffs], Tue Nov 21 16:19:31 2017 UTC (6 years, 3 months ago) by kre
Branch: MAIN
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored)


With char bug[SIZE]  using sizeof(bug[0]) is kind of boring, use
sizeof(bug) instead...

Revision 1.29 / (download) - annotate - [select for diffs], Mon Nov 20 22:16:23 2017 UTC (6 years, 3 months ago) by kre
Branch: MAIN
Changes since 1.28: +33 -26 lines
Diff to previous 1.28 (colored)


White space and comment formatting.   NFC.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Nov 20 19:10:45 2017 UTC (6 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.27: +129 -123 lines
Diff to previous 1.27 (colored)

stop using magic constants
wrap long lines
use warn{,x}
make static
knf

Revision 1.27 / (download) - annotate - [select for diffs], Mon Nov 20 18:37:56 2017 UTC (6 years, 3 months ago) by kardel
Branch: MAIN
Changes since 1.26: +31 -5 lines
Diff to previous 1.26 (colored)

support NAME=<wedge name> syntax for disks and spares

Revision 1.26 / (download) - annotate - [select for diffs], Wed Mar 9 19:53:32 2016 UTC (7 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.25: +26 -22 lines
Diff to previous 1.25 (colored)

PR/50921: David Binderman: Fix memory leak

Revision 1.25 / (download) - annotate - [select for diffs], Wed Jan 27 18:34:02 2010 UTC (14 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Changes since 1.24: +8 -9 lines
Diff to previous 1.24 (colored)

use warn/err appropriately.

Revision 1.23.30.1 / (download) - annotate - [select for diffs], Wed May 13 19:19:05 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.24 / (download) - annotate - [select for diffs], Mon Apr 6 12:47:20 2009 UTC (14 years, 11 months ago) by lukem
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

fix sign-compare issue

Revision 1.23 / (download) - annotate - [select for diffs], Sun Mar 19 01:57:11 2006 UTC (17 years, 11 months ago) by dan
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, mjf-devfs, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: jym-xensuspend
Changes since 1.22: +14 -5 lines
Diff to previous 1.22 (colored)

close fp in several error paths, closing Coverity CIDs 1690, 1692.

"go" by go.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Feb 9 14:21:37 2005 UTC (19 years ago) by xtraeme
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.21: +8 -26 lines
Diff to previous 1.21 (colored)

Kill __P(), use ANSI function declarations; WARNS=3.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Oct 26 22:46:27 2004 UTC (19 years, 4 months ago) by oster
Branch: MAIN
Changes since 1.20: +19 -27 lines
Diff to previous 1.20 (colored)

Cleanup a bit by nuking RF_Malloc macro, and add in some error
checking for the case where we can't allocate memory.  (Not like
anyone uses this part of the code anyway.)

Revision 1.20 / (download) - annotate - [select for diffs], Tue Oct 26 19:52:21 2004 UTC (19 years, 4 months ago) by oster
Branch: MAIN
Changes since 1.19: +8 -2 lines
Diff to previous 1.19 (colored)

Strip off trailing \n's and spaces from configuration file lines.
Makes RAIDframe more forgiving if you accidentally add a space after
things like device names.  Fixed at long last after a reminder over
the weekend.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Oct 26 19:23:19 2004 UTC (19 years, 4 months ago) by oster
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

How about we use the 'len' parameter to rf_get_next_nonblank_line()
instead of assuming all buffers are 256 bytes.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jul 13 07:37:02 2003 UTC (20 years, 7 months ago) by itojun
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.17: +7 -6 lines
Diff to previous 1.17 (colored)

use bouded string ops

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jun 23 11:53:41 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.16: +7 -1 lines
Diff to previous 1.16 (colored)

Add NetBSD RCS Ids.

Revision 1.16 / (download) - annotate - [select for diffs], Sat May 17 01:05:03 2003 UTC (20 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

sscanf overrun

Revision 1.15 / (download) - annotate - [select for diffs], Thu Oct 4 16:02:08 2001 UTC (22 years, 5 months ago) by oster
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, fvdl_fs64_base
Changes since 1.14: +15 -15 lines
Diff to previous 1.14 (colored)

rf_configure.c
 - remove dependence on stuff in sys/dev/raidframe
 - now rely on <dev/raidframe/*>
 - bring in some needed prototypes for local functions
 - nuke RF_ASSERT's.
 - drag in some needed RF_ERRORMSG's

raidctl.c
 - rely on <dev/raidframe/*>
 - welcome to the New Way of doing RAIDframe #includes.

(No functional changes.)

Revision 1.14 / (download) - annotate - [select for diffs], Sun Feb 4 21:05:42 2001 UTC (23 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.13: +1 -5 lines
Diff to previous 1.13 (colored)

remove redundant prototypes.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jan 27 19:32:47 2001 UTC (23 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.12: +58 -7 lines
Diff to previous 1.12 (colored)

Move parts of a RAID type mapping table from rf_layout.c to rf_configure.c.
This means we don't need to compile or link with rf_layout.c here.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Dec 31 01:58:03 2000 UTC (23 years, 2 months ago) by wiz
Branch: MAIN
Changes since 1.11: +5 -2 lines
Diff to previous 1.11 (colored)

Check return value of fgets. Approved by Greg Oster.

Revision 1.10.4.1 / (download) - annotate - [select for diffs], Wed Oct 18 00:39:47 2000 UTC (23 years, 4 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Pullup sbin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Tue Oct 10 22:24:11 2000 UTC (23 years, 4 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Pull up revision 1.11 (via patch, requested by is):
  Format string cleanup.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Oct 10 20:24:53 2000 UTC (23 years, 4 months ago) by is
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Format string cleanups by Bill Sommerfeld.

Revision 1.10 / (download) - annotate - [select for diffs], Tue May 23 01:03:05 2000 UTC (23 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.9: +380 -334 lines
Diff to previous 1.9 (colored)

Apply indent.

Revision 1.9 / (download) - annotate - [select for diffs], Tue May 23 00:46:53 2000 UTC (23 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.8: +9 -9 lines
Diff to previous 1.8 (colored)

Build with WARNS=2.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Aug 13 03:37:42 1999 UTC (24 years, 6 months ago) by oster
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.7: +1 -2 lines
Diff to previous 1.7 (colored)

No need to include rf_sys.h.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Aug 7 23:48:11 1999 UTC (24 years, 7 months ago) by oster
Branch: MAIN
Changes since 1.6: +20 -2 lines
Diff to previous 1.6 (colored)

Move two functions from rf_strutils.c into rf_configure.c, removing
the need for rf_strutils.c.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Mar 26 00:45:01 1999 UTC (24 years, 11 months ago) by oster
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Branch point for: netbsd-1-4
Changes since 1.5: +1 -62 lines
Diff to previous 1.5 (colored)

Nuke unused code.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Feb 4 14:50:31 1999 UTC (25 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.4: +1 -0 lines
Diff to previous 1.4 (colored)

Add missing NetBSD RCS ID's!  Thanks to SAITOH Masanobu (msaitoh@netbsd.org)
for pointing this out.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jan 26 02:40:02 1999 UTC (25 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.3: +4 -94 lines
Diff to previous 1.3 (colored)

Take care of a few minor things due to the major RAIDframe cleanup.

Again, no functionality changes.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jan 12 22:58:10 1999 UTC (25 years, 1 month ago) by mjacob
Branch: MAIN
Changes since 1.2: +4 -0 lines
Diff to previous 1.2 (colored)

recover from errno.h changes

Revision 1.2 / (download) - annotate - [select for diffs], Mon Nov 23 00:18:40 1998 UTC (25 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.1: +10 -1 lines
Diff to previous 1.1 (colored)

fix compile errors on the alpha.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Nov 13 04:34:02 1998 UTC (25 years, 3 months ago) by oster
Branch: MAIN

RAIDframe, version 1.1, from the Parallel Data Laboratory at
Carnegie Mellon University.  Full RAID implementation, including
levels 0, 1, 4, 5, 6, parity logging, and a few other goodies.
Ported to NetBSD by Greg Oster.

raidctl is our userland configuration tool for RAIDframe.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>