OpenBSD CVS

CVS log for src/sys/dev/softraid_concat.c


[BACK] Up to [local] / src / sys / dev

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.27 / (download) - annotate - [select for diffs], Sat Apr 25 14:37:43 2020 UTC (4 years, 1 month ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, HEAD
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored)

Reduce minimum allowed number of chunks in a CONCAT volume from 2 to
1.

This increases the number of volumes that can be created on a single disk
from 7 to 15. i.e. a disk can be sliced into a maximum of 225
(15 * 15) filesystems instead of a mere 105 (7 * 15).

ok deraadt@

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Wed May 3 02:43:11 2017 UTC (7 years, 1 month ago) by jsg
Branch: OPENBSD_6_0
Changes since 1.25: +9 -1 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

OpenBSD 6.0 errata 21, May 1, 2017

softraid(4) was unable to create usable concat volumes because
it always set the size of the volume to zero sectors.

Revision 1.25.6.1 / (download) - annotate - [select for diffs], Wed May 3 02:36:29 2017 UTC (7 years, 1 month ago) by jsg
Branch: OPENBSD_6_1
Changes since 1.25: +9 -1 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

OpenBSD 6.1 errata 004, May 2, 2017

softraid(4) was unable to create usable concat volumes because
it always set the size of the volume to zero sectors.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Apr 28 23:33:07 2017 UTC (7 years, 1 month ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.25: +9 -1 lines
Diff to previous 1.25 (colored)

Restore calculation of volume size. Accidentally removed in
r1.25. Fixes creation of concat volumes.

Noticed by and diff from Thordur I. Bjornsson via tech@

ok jsing@

Revision 1.25 / (download) - annotate - [select for diffs], Tue Apr 12 16:26:54 2016 UTC (8 years, 2 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_0_BASE
Branch point for: OPENBSD_6_1, OPENBSD_6_0
Changes since 1.24: +1 -14 lines
Diff to previous 1.24 (colored)

No need to rescan chunks in each discipline to find appropriate
volume sector size.  Determine volume sector size in sr_meta_init().

Pointed out, tweaked and ok jsing@

Revision 1.24 / (download) - annotate - [select for diffs], Mon Apr 4 18:48:39 2016 UTC (8 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.23: +8 -2 lines
Diff to previous 1.23 (colored)

Enable creation of softraid volumes using disks with non-512 byte
sectors. Volumes created will present a sector size equal to the
largest sector size of the constituent disks.

Softraid Metadata version cranks to 6 due to new field.

ok jsing@ with tweaks that will follow soon.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Jul 21 03:30:51 2015 UTC (8 years, 10 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.22: +14 -14 lines
Diff to previous 1.22 (colored)

A few more daddr_t fixes. Rename 'phys_off' variables to 'offset'
since they are now relative to chunks. Use 'blkno' as normal variable
name for daddr_t items rather than mix of 'blkno, blk, offset.
Change field name ssd_data_offset to ssd_data_blkno since it is a
block and not byte quantity.

No intentional functional change.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jul 19 17:04:31 2015 UTC (8 years, 10 months ago) by krw
Branch: MAIN
Changes since 1.21: +1 -2 lines
Diff to previous 1.21 (colored)

Stop adding and subtracting data offset. Just keep to chunk relative
block offsets until actual i/o is constructed and needs the physical
offset. Eliminate a number of <<DEV_BSIZE shifts as a bonus.

No intentional functional change.

Fixed and ok jsing@

Revision 1.21 / (download) - annotate - [select for diffs], Fri Nov 22 03:47:07 2013 UTC (10 years, 6 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Stray missing (long long) on a daddr_t variable being printed.

ok jsing@

Revision 1.20 / (download) - annotate - [select for diffs], Thu Nov 21 16:54:46 2013 UTC (10 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.19: +2 -4 lines
Diff to previous 1.19 (colored)

Don't cast int64_t variables to (long long) when using %lld.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Nov 21 16:34:50 2013 UTC (10 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.18: +5 -4 lines
Diff to previous 1.18 (colored)

Change a bunch of daddr_t variables that don't (obviously) contain
512-byte-block information to int64_t, the underlying type of
daddr_t at the moment. No change to .o files. Removal of now
unneeded (long long) casts is next.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Nov 1 17:36:19 2013 UTC (10 years, 7 months ago) by krw
Branch: MAIN
Changes since 1.17: +4 -2 lines
Diff to previous 1.17 (colored)

Sprinkle (long long) casts where %lld is being used to print daddr_t
variables. Some random whitespace/knf repairs encountered on the way.

ok miod@ on inspection, feedback & more suggestions from millert@

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jun 11 16:42:13 2013 UTC (11 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (colored)

final removal of daddr64_t.  daddr_t has been 64 bit for a long enough
test period; i think 3 years ago the last bugs fell out.
ok otto beck others

Revision 1.16 / (download) - annotate - [select for diffs], Tue May 21 15:01:53 2013 UTC (11 years ago) by jsing
Branch: MAIN
Changes since 1.15: +3 -7 lines
Diff to previous 1.15 (colored)

Provide a function that handles the scheduling of work units. This
simplifies the discipline code, avoids code duplication and moves the
scheduling logic into a single location.

ok krw@

Revision 1.15 / (download) - annotate - [select for diffs], Sun Mar 31 15:44:52 2013 UTC (11 years, 2 months ago) by jsing
Branch: MAIN
Changes since 1.14: +3 -2 lines
Diff to previous 1.14 (colored)

Use consistent error handling when validating the number of chunks
provided.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Mar 31 13:31:44 2013 UTC (11 years, 2 months ago) by jsing
Branch: MAIN
Changes since 1.13: +10 -4 lines
Diff to previous 1.13 (colored)

More runtime value initialisation functions.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Mar 31 11:12:06 2013 UTC (11 years, 2 months ago) by jsing
Branch: MAIN
Changes since 1.12: +1 -38 lines
Diff to previous 1.12 (colored)

Provide default resource allocation and free functions. Convert all
disciplines except for AOE and CRYPTO, which require custom handlers.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Mar 30 02:02:14 2013 UTC (11 years, 2 months ago) by jsing
Branch: MAIN
Changes since 1.11: +1 -23 lines
Diff to previous 1.11 (colored)

Provide a default discipline interrupt handling function and migrate all of
the disciplines that now have the same interrupt code.

ok krw@

Revision 1.11 / (download) - annotate - [select for diffs], Sat Mar 2 12:50:01 2013 UTC (11 years, 3 months ago) by jsing
Branch: MAIN
Changes since 1.10: +1 -8 lines
Diff to previous 1.10 (colored)

sr_alloc_resources() and sr_free_resources() can never be called without
a valid struct sr_discipline. Remove redundant NULL pointer checks.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Mar 2 12:25:55 2013 UTC (11 years, 3 months ago) by jsing
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Unbreak softraid compilation with debug enabled.

Prompted by Dmitry Bogdan.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jan 18 11:14:48 2013 UTC (11 years, 4 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.8: +12 -40 lines
Diff to previous 1.8 (colored)

Convert softraid concat to new workunit completion functions.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jan 18 02:09:50 2013 UTC (11 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.7: +20 -30 lines
Diff to previous 1.7 (colored)

Clean up and rework workunit completion for concat. Ensure that we remove
the workunit from the pending queue and restart deferred workunits, even
in error conditions.

ok krw@

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jan 17 02:43:50 2013 UTC (11 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.6: +8 -63 lines
Diff to previous 1.6 (colored)

Convert softraid concat to the new ccb functions.

ok krw@

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jan 16 06:42:22 2013 UTC (11 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.5: +1 -2 lines
Diff to previous 1.5 (colored)

Set resid to zero if the scsi transfer completed without error.

ok krw@

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jan 15 09:28:29 2013 UTC (11 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.4: +2 -4 lines
Diff to previous 1.4 (colored)

Always initialise the discipline name, not just when we are doing a create.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jan 15 04:03:01 2013 UTC (11 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

Keep a function pointer to the per-discipline I/O interrupt handler in the
discipline data structure. To be used with an upcoming diff.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Oct 8 14:22:41 2012 UTC (11 years, 8 months ago) by jsing
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Provide a mechanism for the kernel to pass data through to the discipline
during volume assembly.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jan 22 11:13:32 2012 UTC (12 years, 4 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.1: +3 -1 lines
Diff to previous 1.1 (colored)

Convert softraid(4) to new bio(4) status interface. This allows bioctl(8)
to provide useful feedback, rather than reporting an ioctl failure and
leaving the user to consult dmesg. For now we continue to print most things
to the console, even if the message is a result of an ioctl.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Dec 31 17:06:10 2011 UTC (12 years, 5 months ago) by jsing
Branch: MAIN

Implement a concatenating discipline for softraid.

Many thanks to Marco Peereboom for his assistance with testing and
debugging. Thanks also to Josh Grosse and Chris Jackman for testing.

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.