Deleted Added
full compact
tr_raid5.c (254271) tr_raid5.c (254275)
1/*-
2 * Copyright (c) 2012 Alexander Motin <mav@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2012 Alexander Motin <mav@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/geom/raid/tr_raid5.c 254271 2013-08-13 06:25:34Z mav $");
28__FBSDID("$FreeBSD: head/sys/geom/raid/tr_raid5.c 254275 2013-08-13 07:56:40Z mav $");
29
30#include <sys/param.h>
31#include <sys/bio.h>
32#include <sys/endian.h>
33#include <sys/kernel.h>
34#include <sys/kobj.h>
35#include <sys/limits.h>
36#include <sys/lock.h>

--- 143 unchanged lines hidden (view full) ---

180
181static int
182g_raid_tr_start_raid5(struct g_raid_tr_object *tr)
183{
184 struct g_raid_tr_raid5_object *trs;
185 struct g_raid_volume *vol;
186
187 trs = (struct g_raid_tr_raid5_object *)tr;
29
30#include <sys/param.h>
31#include <sys/bio.h>
32#include <sys/endian.h>
33#include <sys/kernel.h>
34#include <sys/kobj.h>
35#include <sys/limits.h>
36#include <sys/lock.h>

--- 143 unchanged lines hidden (view full) ---

180
181static int
182g_raid_tr_start_raid5(struct g_raid_tr_object *tr)
183{
184 struct g_raid_tr_raid5_object *trs;
185 struct g_raid_volume *vol;
186
187 trs = (struct g_raid_tr_raid5_object *)tr;
188 vol = tr->tro_volume;
189 trs->trso_starting = 0;
188 trs->trso_starting = 0;
189 vol = tr->tro_volume;
190 vol->v_read_only = 1;
190 g_raid_tr_update_state_raid5(vol, NULL);
191 return (0);
192}
193
194static int
195g_raid_tr_stop_raid5(struct g_raid_tr_object *tr)
196{
197 struct g_raid_tr_raid5_object *trs;

--- 228 unchanged lines hidden ---
191 g_raid_tr_update_state_raid5(vol, NULL);
192 return (0);
193}
194
195static int
196g_raid_tr_stop_raid5(struct g_raid_tr_object *tr)
197{
198 struct g_raid_tr_raid5_object *trs;

--- 228 unchanged lines hidden ---