Deleted Added
full compact
geom_slice.c (106101) geom_slice.c (107116)
1/*-
2 * Copyright (c) 2002 Poul-Henning Kamp
3 * Copyright (c) 2002 Networks Associates Technology, Inc.
4 * All rights reserved.
5 *
6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp
7 * and NAI Labs, the Security Research Division of Network Associates, Inc.
8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the

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

27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
1/*-
2 * Copyright (c) 2002 Poul-Henning Kamp
3 * Copyright (c) 2002 Networks Associates Technology, Inc.
4 * All rights reserved.
5 *
6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp
7 * and NAI Labs, the Security Research Division of Network Associates, Inc.
8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the

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

27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * $FreeBSD: head/sys/geom/geom_slice.c 106101 2002-10-28 22:43:54Z phk $
35 * $FreeBSD: head/sys/geom/geom_slice.c 107116 2002-11-20 20:12:52Z phk $
36 */
37
38
39#include <sys/param.h>
40#include <sys/stdint.h>
41#ifndef _KERNEL
42#include <stdio.h>
43#include <unistd.h>

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

274 gsp->nprovider--;
275 return (0);
276 }
277 if (pp != NULL) {
278 if (bootverbose)
279 printf("GEOM: Reconfigure %s, start %jd length %jd end %jd\n",
280 pp->name, (intmax_t)offset, (intmax_t)length,
281 (intmax_t)(offset + length - 1));
36 */
37
38
39#include <sys/param.h>
40#include <sys/stdint.h>
41#ifndef _KERNEL
42#include <stdio.h>
43#include <unistd.h>

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

274 gsp->nprovider--;
275 return (0);
276 }
277 if (pp != NULL) {
278 if (bootverbose)
279 printf("GEOM: Reconfigure %s, start %jd length %jd end %jd\n",
280 pp->name, (intmax_t)offset, (intmax_t)length,
281 (intmax_t)(offset + length - 1));
282 pp->mediasize = gsl->length;
282 return (0);
283 }
284 va_start(ap, fmt);
285 sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND);
286 sbuf_vprintf(sb, fmt, ap);
287 sbuf_finish(sb);
288 pp = g_new_providerf(gp, sbuf_data(sb));
289 if (bootverbose)

--- 107 unchanged lines hidden ---
283 return (0);
284 }
285 va_start(ap, fmt);
286 sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND);
287 sbuf_vprintf(sb, fmt, ap);
288 sbuf_finish(sb);
289 pp = g_new_providerf(gp, sbuf_data(sb));
290 if (bootverbose)

--- 107 unchanged lines hidden ---