s/entires/entries/diff -r1.20 -r1.21 src/sys/arch/mips/cavium/dev/octeon_gmx.c
(andvar)
--- src/sys/arch/mips/cavium/dev/octeon_gmx.c 2021/08/07 16:18:59 1.20
+++ src/sys/arch/mips/cavium/dev/octeon_gmx.c 2022/05/04 07:32:50 1.21
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: octeon_gmx.c,v 1.20 2021/08/07 16:18:59 thorpej Exp $ */ | 1 | /* $NetBSD: octeon_gmx.c,v 1.21 2022/05/04 07:32:50 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 2007 Internet Initiative Japan, Inc. | 4 | * Copyright (c) 2007 Internet Initiative Japan, Inc. | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * Redistribution and use in source and binary forms, with or without | 7 | * Redistribution and use in source and binary forms, with or without | |
8 | * modification, are permitted provided that the following conditions | 8 | * modification, are permitted provided that the following conditions | |
9 | * are met: | 9 | * are met: | |
10 | * 1. Redistributions of source code must retain the above copyright | 10 | * 1. Redistributions of source code must retain the above copyright | |
11 | * notice, this list of conditions and the following disclaimer. | 11 | * notice, this list of conditions and the following disclaimer. | |
12 | * 2. Redistributions in binary form must reproduce the above copyright | 12 | * 2. Redistributions in binary form must reproduce the above copyright | |
13 | * notice, this list of conditions and the following disclaimer in the | 13 | * notice, this list of conditions and the following disclaimer in the | |
14 | * documentation and/or other materials provided with the distribution. | 14 | * documentation and/or other materials provided with the distribution. | |
@@ -17,27 +17,27 @@ | @@ -17,27 +17,27 @@ | |||
17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
18 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 18 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | 19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | |
20 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | 20 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
21 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | 21 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
22 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 22 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
23 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 23 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
24 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 24 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
25 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 25 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
26 | * SUCH DAMAGE. | 26 | * SUCH DAMAGE. | |
27 | */ | 27 | */ | |
28 | 28 | |||
29 | #include <sys/cdefs.h> | 29 | #include <sys/cdefs.h> | |
30 | __KERNEL_RCSID(0, "$NetBSD: octeon_gmx.c,v 1.20 2021/08/07 16:18:59 thorpej Exp $"); | 30 | __KERNEL_RCSID(0, "$NetBSD: octeon_gmx.c,v 1.21 2022/05/04 07:32:50 andvar Exp $"); | |
31 | 31 | |||
32 | #include <sys/param.h> | 32 | #include <sys/param.h> | |
33 | #include <sys/systm.h> | 33 | #include <sys/systm.h> | |
34 | #include <sys/bus.h> | 34 | #include <sys/bus.h> | |
35 | #include <sys/cpu.h> | 35 | #include <sys/cpu.h> | |
36 | #include <sys/device.h> | 36 | #include <sys/device.h> | |
37 | #include <sys/lock.h> | 37 | #include <sys/lock.h> | |
38 | #include <sys/cdefs.h> | 38 | #include <sys/cdefs.h> | |
39 | #include <sys/kmem.h> | 39 | #include <sys/kmem.h> | |
40 | #include <sys/syslog.h> | 40 | #include <sys/syslog.h> | |
41 | 41 | |||
42 | #include <mips/locore.h> | 42 | #include <mips/locore.h> | |
43 | #include <mips/include/cpuregs.h> | 43 | #include <mips/include/cpuregs.h> | |
@@ -583,27 +583,27 @@ octgmx_set_filter(struct octgmx_port_sof | @@ -583,27 +583,27 @@ octgmx_set_filter(struct octgmx_port_sof | |||
583 | if (ISSET(ifp->if_flags, IFF_BROADCAST)) { | 583 | if (ISSET(ifp->if_flags, IFF_BROADCAST)) { | |
584 | dprintf("accept broadcast\n"); | 584 | dprintf("accept broadcast\n"); | |
585 | SET(ctl, RXN_ADR_CTL_BCST); | 585 | SET(ctl, RXN_ADR_CTL_BCST); | |
586 | } | 586 | } | |
587 | if (ISSET(ifp->if_flags, IFF_PROMISC)) { | 587 | if (ISSET(ifp->if_flags, IFF_PROMISC)) { | |
588 | dprintf("promiscas(reject cam)\n"); | 588 | dprintf("promiscas(reject cam)\n"); | |
589 | CLR(ctl, RXN_ADR_CTL_CAM_MODE); | 589 | CLR(ctl, RXN_ADR_CTL_CAM_MODE); | |
590 | } else { | 590 | } else { | |
591 | dprintf("not promiscas(accept cam)\n"); | 591 | dprintf("not promiscas(accept cam)\n"); | |
592 | SET(ctl, RXN_ADR_CTL_CAM_MODE); | 592 | SET(ctl, RXN_ADR_CTL_CAM_MODE); | |
593 | } | 593 | } | |
594 | 594 | |||
595 | /* | 595 | /* | |
596 | * Note first entry is self MAC address; other 7 entires are available | 596 | * Note first entry is self MAC address; other 7 entries are available | |
597 | * for multicast addresses. | 597 | * for multicast addresses. | |
598 | */ | 598 | */ | |
599 | 599 | |||
600 | ETHER_LOCK(ec); | 600 | ETHER_LOCK(ec); | |
601 | ETHER_FIRST_MULTI(step, ec, enm); | 601 | ETHER_FIRST_MULTI(step, ec, enm); | |
602 | while (enm != NULL) { | 602 | while (enm != NULL) { | |
603 | int i; | 603 | int i; | |
604 | 604 | |||
605 | dprintf("%d: lo(%02x:%02x:%02x:%02x:%02x:%02x) - " | 605 | dprintf("%d: lo(%02x:%02x:%02x:%02x:%02x:%02x) - " | |
606 | "hi(%02x:%02x:%02x:%02x:%02x:%02x)\n", | 606 | "hi(%02x:%02x:%02x:%02x:%02x:%02x)\n", | |
607 | multi + 1, | 607 | multi + 1, | |
608 | enm->enm_addrlo[0], enm->enm_addrlo[1], | 608 | enm->enm_addrlo[0], enm->enm_addrlo[1], | |
609 | enm->enm_addrlo[2], enm->enm_addrlo[3], | 609 | enm->enm_addrlo[2], enm->enm_addrlo[3], |
--- src/sys/dev/ic/aic6915reg.h 2019/08/01 15:21:09 1.6
+++ src/sys/dev/ic/aic6915reg.h 2022/05/04 07:32:50 1.7
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: aic6915reg.h,v 1.6 2019/08/01 15:21:09 msaitoh Exp $ */ | 1 | /* $NetBSD: aic6915reg.h,v 1.7 2022/05/04 07:32:50 andvar Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 2001 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 2001 The NetBSD Foundation, Inc. | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * This code is derived from software contributed to The NetBSD Foundation | 7 | * This code is derived from software contributed to The NetBSD Foundation | |
8 | * by Jason R. Thorpe. | 8 | * by Jason R. Thorpe. | |
9 | * | 9 | * | |
10 | * Redistribution and use in source and binary forms, with or without | 10 | * Redistribution and use in source and binary forms, with or without | |
11 | * modification, are permitted provided that the following conditions | 11 | * modification, are permitted provided that the following conditions | |
12 | * are met: | 12 | * are met: | |
13 | * 1. Redistributions of source code must retain the above copyright | 13 | * 1. Redistributions of source code must retain the above copyright | |
14 | * notice, this list of conditions and the following disclaimer. | 14 | * notice, this list of conditions and the following disclaimer. | |
@@ -214,27 +214,27 @@ struct sf_tcd { | @@ -214,27 +214,27 @@ struct sf_tcd { | |||
214 | #define TCD_PauseTx (1U << 27) | 214 | #define TCD_PauseTx (1U << 27) | |
215 | #define TCD_TxPaused (1U << 28) | 215 | #define TCD_TxPaused (1U << 28) | |
216 | 216 | |||
217 | /* | 217 | /* | |
218 | * The Tx indices are in units of 8 bytes, and since we are using | 218 | * The Tx indices are in units of 8 bytes, and since we are using | |
219 | * Tx descriptors that are 128 bytes long, we need to divide by 16 | 219 | * Tx descriptors that are 128 bytes long, we need to divide by 16 | |
220 | * to get the actual index that we care about. | 220 | * to get the actual index that we care about. | |
221 | */ | 221 | */ | |
222 | #define SF_TXDINDEX_TO_HOST(x) ((x) >> 4) | 222 | #define SF_TXDINDEX_TO_HOST(x) ((x) >> 4) | |
223 | #define SF_TXDINDEX_TO_CHIP(x) ((x) << 4) | 223 | #define SF_TXDINDEX_TO_CHIP(x) ((x) << 4) | |
224 | 224 | |||
225 | /* | 225 | /* | |
226 | * To make matters worse, the manual lies about the indices in the | 226 | * To make matters worse, the manual lies about the indices in the | |
227 | * completion queue entires. It claims they are in 8-byte units, | 227 | * completion queue entries. It claims they are in 8-byte units, | |
228 | * but they're actually *BYTES*, which means we need to divide by | 228 | * but they're actually *BYTES*, which means we need to divide by | |
229 | * 128 to get the actual index. | 229 | * 128 to get the actual index. | |
230 | */ | 230 | */ | |
231 | #define SF_TCD_INDEX_TO_HOST(x) ((x) >> 7) | 231 | #define SF_TCD_INDEX_TO_HOST(x) ((x) >> 7) | |
232 | 232 | |||
233 | /* | 233 | /* | |
234 | * PCI configuration space addresses. | 234 | * PCI configuration space addresses. | |
235 | */ | 235 | */ | |
236 | #define SF_PCI_MEMBA (PCI_MAPREG_START + 0x00) | 236 | #define SF_PCI_MEMBA (PCI_MAPREG_START + 0x00) | |
237 | #define SF_PCI_IOBA (PCI_MAPREG_START + 0x08) | 237 | #define SF_PCI_IOBA (PCI_MAPREG_START + 0x08) | |
238 | 238 | |||
239 | #define SF_GENREG_OFFSET 0x50000 | 239 | #define SF_GENREG_OFFSET 0x50000 | |
240 | #define SF_FUNCREG_SIZE 0x100 | 240 | #define SF_FUNCREG_SIZE 0x100 |
--- src/sys/dev/ic/aic6915var.h 2012/10/27 17:18:19 1.4
+++ src/sys/dev/ic/aic6915var.h 2022/05/04 07:32:50 1.5
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: aic6915var.h,v 1.4 2012/10/27 17:18:19 chs Exp $ */ | 1 | /* $NetBSD: aic6915var.h,v 1.5 2022/05/04 07:32:50 andvar Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 2001 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 2001 The NetBSD Foundation, Inc. | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * This code is derived from software contributed to The NetBSD Foundation | 7 | * This code is derived from software contributed to The NetBSD Foundation | |
8 | * by Jason R. Thorpe. | 8 | * by Jason R. Thorpe. | |
9 | * | 9 | * | |
10 | * Redistribution and use in source and binary forms, with or without | 10 | * Redistribution and use in source and binary forms, with or without | |
11 | * modification, are permitted provided that the following conditions | 11 | * modification, are permitted provided that the following conditions | |
12 | * are met: | 12 | * are met: | |
13 | * 1. Redistributions of source code must retain the above copyright | 13 | * 1. Redistributions of source code must retain the above copyright | |
14 | * notice, this list of conditions and the following disclaimer. | 14 | * notice, this list of conditions and the following disclaimer. | |
@@ -69,27 +69,27 @@ | @@ -69,27 +69,27 @@ | |||
69 | 69 | |||
70 | /* | 70 | /* | |
71 | * Control structures are DMA to the Starfire chip. We allocate them in | 71 | * Control structures are DMA to the Starfire chip. We allocate them in | |
72 | * a single clump that maps to a single DMA segment to make several things | 72 | * a single clump that maps to a single DMA segment to make several things | |
73 | * easier. | 73 | * easier. | |
74 | */ | 74 | */ | |
75 | struct sf_control_data { | 75 | struct sf_control_data { | |
76 | /* | 76 | /* | |
77 | * The transmit descriptors. | 77 | * The transmit descriptors. | |
78 | */ | 78 | */ | |
79 | struct sf_txdesc0 scd_txdescs[SF_NTXDESC]; | 79 | struct sf_txdesc0 scd_txdescs[SF_NTXDESC]; | |
80 | 80 | |||
81 | /* | 81 | /* | |
82 | * The transmit completion queue entires. | 82 | * The transmit completion queue entries. | |
83 | */ | 83 | */ | |
84 | struct sf_tcd scd_txcomp[SF_NTCD]; | 84 | struct sf_tcd scd_txcomp[SF_NTCD]; | |
85 | 85 | |||
86 | /* | 86 | /* | |
87 | * The receive buffer descriptors. | 87 | * The receive buffer descriptors. | |
88 | */ | 88 | */ | |
89 | struct sf_rbd32 scd_rxbufdescs[SF_NRXDESC]; | 89 | struct sf_rbd32 scd_rxbufdescs[SF_NRXDESC]; | |
90 | 90 | |||
91 | /* | 91 | /* | |
92 | * The receive completion queue entries. | 92 | * The receive completion queue entries. | |
93 | */ | 93 | */ | |
94 | struct sf_rcd_full scd_rxcomp[SF_NRCD]; | 94 | struct sf_rcd_full scd_rxcomp[SF_NRCD]; | |
95 | }; | 95 | }; |
--- src/usr.sbin/arp/arp.4 2016/10/16 05:32:30 1.14
+++ src/usr.sbin/arp/arp.4 2022/05/04 07:32:50 1.15
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | .\" $NetBSD: arp.4,v 1.14 2016/10/16 05:32:30 wiz Exp $ | 1 | .\" $NetBSD: arp.4,v 1.15 2022/05/04 07:32:50 andvar Exp $ | |
2 | .\" | 2 | .\" | |
3 | .\" Copyright (c) 1985, 1986, 1988, 1994 | 3 | .\" Copyright (c) 1985, 1986, 1988, 1994 | |
4 | .\" The Regents of the University of California. All rights reserved. | 4 | .\" The Regents of the University of California. All rights reserved. | |
5 | .\" | 5 | .\" | |
6 | .\" Redistribution and use in source and binary forms, with or without | 6 | .\" Redistribution and use in source and binary forms, with or without | |
7 | .\" modification, are permitted provided that the following conditions | 7 | .\" modification, are permitted provided that the following conditions | |
8 | .\" are met: | 8 | .\" are met: | |
9 | .\" 1. Redistributions of source code must retain the above copyright | 9 | .\" 1. Redistributions of source code must retain the above copyright | |
10 | .\" notice, this list of conditions and the following disclaimer. | 10 | .\" notice, this list of conditions and the following disclaimer. | |
11 | .\" 2. Redistributions in binary form must reproduce the above copyright | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright | |
12 | .\" notice, this list of conditions and the following disclaimer in the | 12 | .\" notice, this list of conditions and the following disclaimer in the | |
13 | .\" documentation and/or other materials provided with the distribution. | 13 | .\" documentation and/or other materials provided with the distribution. | |
14 | .\" 3. Neither the name of the University nor the names of its contributors | 14 | .\" 3. Neither the name of the University nor the names of its contributors | |
@@ -55,27 +55,27 @@ mapping request; | @@ -55,27 +55,27 @@ mapping request; | |||
55 | only the most recently ``transmitted'' packet is kept. | 55 | only the most recently ``transmitted'' packet is kept. | |
56 | If the target host does not respond after several requests, | 56 | If the target host does not respond after several requests, | |
57 | the host is considered to be down for a short period (normally 20 seconds), | 57 | the host is considered to be down for a short period (normally 20 seconds), | |
58 | allowing an error to be returned to transmission attempts during this | 58 | allowing an error to be returned to transmission attempts during this | |
59 | interval. | 59 | interval. | |
60 | The error is | 60 | The error is | |
61 | .Er EHOSTDOWN | 61 | .Er EHOSTDOWN | |
62 | for a non-responding destination host, and | 62 | for a non-responding destination host, and | |
63 | .Er EHOSTUNREACH | 63 | .Er EHOSTUNREACH | |
64 | for a non-responding router. | 64 | for a non-responding router. | |
65 | .Pp | 65 | .Pp | |
66 | Each ARP cache entry is stored in a network interface which a response | 66 | Each ARP cache entry is stored in a network interface which a response | |
67 | of ARP comes in. | 67 | of ARP comes in. | |
68 | ARP cache entires time out periodically (normally 20 minutes after validated; | 68 | ARP cache entries time out periodically (normally 20 minutes after validated; | |
69 | entries are not validated when not in use). | 69 | entries are not validated when not in use). | |
70 | .Pp | 70 | .Pp | |
71 | ARP entries may be added, deleted or changed with the | 71 | ARP entries may be added, deleted or changed with the | |
72 | .Xr arp 8 | 72 | .Xr arp 8 | |
73 | utility. | 73 | utility. | |
74 | Manually-added entries may be temporary or permanent, | 74 | Manually-added entries may be temporary or permanent, | |
75 | and may be | 75 | and may be | |
76 | .Dq published , | 76 | .Dq published , | |
77 | in which case the system will respond to ARP requests for that host | 77 | in which case the system will respond to ARP requests for that host | |
78 | as if it were the target of the request. | 78 | as if it were the target of the request. | |
79 | .Pp | 79 | .Pp | |
80 | In the past, | 80 | In the past, | |
81 | ARP was used to negotiate the use of a trailer encapsulation. | 81 | ARP was used to negotiate the use of a trailer encapsulation. |
--- src/usr.sbin/sysinst/bsddisklabel.c 2022/04/16 18:15:23 1.60
+++ src/usr.sbin/sysinst/bsddisklabel.c 2022/05/04 07:32:50 1.61
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: bsddisklabel.c,v 1.60 2022/04/16 18:15:23 andvar Exp $ */ | 1 | /* $NetBSD: bsddisklabel.c,v 1.61 2022/05/04 07:32:50 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright 1997 Piermont Information Systems Inc. | 4 | * Copyright 1997 Piermont Information Systems Inc. | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * Based on code written by Philip A. Nelson for Piermont Information | 7 | * Based on code written by Philip A. Nelson for Piermont Information | |
8 | * Systems Inc. | 8 | * Systems Inc. | |
9 | * | 9 | * | |
10 | * Redistribution and use in source and binary forms, with or without | 10 | * Redistribution and use in source and binary forms, with or without | |
11 | * modification, are permitted provided that the following conditions | 11 | * modification, are permitted provided that the following conditions | |
12 | * are met: | 12 | * are met: | |
13 | * 1. Redistributions of source code must retain the above copyright | 13 | * 1. Redistributions of source code must retain the above copyright | |
14 | * notice, this list of conditions and the following disclaimer. | 14 | * notice, this list of conditions and the following disclaimer. | |
@@ -1230,27 +1230,27 @@ sort_and_sync_parts(struct partition_usa | @@ -1230,27 +1230,27 @@ sort_and_sync_parts(struct partition_usa | |||
1230 | for (i = 0; i < pset->num; i++) { | 1230 | for (i = 0; i < pset->num; i++) { | |
1231 | if (pset->infos[i].size == 0) | 1231 | if (pset->infos[i].size == 0) | |
1232 | continue; | 1232 | continue; | |
1233 | if (pset->infos[i].cur_part_id != NO_PART) | 1233 | if (pset->infos[i].cur_part_id != NO_PART) | |
1234 | continue; | 1234 | continue; | |
1235 | no++; | 1235 | no++; | |
1236 | } | 1236 | } | |
1237 | 1237 | |||
1238 | /* allocate new infos */ | 1238 | /* allocate new infos */ | |
1239 | infos = calloc(no, sizeof *infos); | 1239 | infos = calloc(no, sizeof *infos); | |
1240 | if (infos == NULL) | 1240 | if (infos == NULL) | |
1241 | return; | 1241 | return; | |
1242 | 1242 | |||
1243 | /* pre-initialize the first entires as dummy entries */ | 1243 | /* pre-initialize the first entries as dummy entries */ | |
1244 | for (i = 0; i < pset->parts->num_part; i++) { | 1244 | for (i = 0; i < pset->parts->num_part; i++) { | |
1245 | infos[i].cur_part_id = NO_PART; | 1245 | infos[i].cur_part_id = NO_PART; | |
1246 | infos[i].cur_flags = PTI_PSCHEME_INTERNAL; | 1246 | infos[i].cur_flags = PTI_PSCHEME_INTERNAL; | |
1247 | } | 1247 | } | |
1248 | /* | 1248 | /* | |
1249 | * Now copy over eveything from our old entries that points to | 1249 | * Now copy over eveything from our old entries that points to | |
1250 | * a real partition. | 1250 | * a real partition. | |
1251 | */ | 1251 | */ | |
1252 | for (i = 0; i < pset->num; i++) { | 1252 | for (i = 0; i < pset->num; i++) { | |
1253 | pno = pset->infos[i].cur_part_id; | 1253 | pno = pset->infos[i].cur_part_id; | |
1254 | if (pno == NO_PART) | 1254 | if (pno == NO_PART) | |
1255 | continue; | 1255 | continue; | |
1256 | if (pset->parts != pset->infos[i].parts) | 1256 | if (pset->parts != pset->infos[i].parts) | |
@@ -1274,27 +1274,27 @@ sort_and_sync_parts(struct partition_usa | @@ -1274,27 +1274,27 @@ sort_and_sync_parts(struct partition_usa | |||
1274 | if (!pset->parts->pscheme->get_part_info(pset->parts, pno, | 1274 | if (!pset->parts->pscheme->get_part_info(pset->parts, pno, | |
1275 | &info)) | 1275 | &info)) | |
1276 | continue; | 1276 | continue; | |
1277 | 1277 | |||
1278 | infos[pno].parts = pset->parts; | 1278 | infos[pno].parts = pset->parts; | |
1279 | infos[pno].cur_part_id = pno; | 1279 | infos[pno].cur_part_id = pno; | |
1280 | infos[pno].cur_flags = info.flags; | 1280 | infos[pno].cur_flags = info.flags; | |
1281 | infos[pno].size = info.size; | 1281 | infos[pno].size = info.size; | |
1282 | infos[pno].type = info.nat_type->generic_ptype; | 1282 | infos[pno].type = info.nat_type->generic_ptype; | |
1283 | infos[pno].cur_start = info.start; | 1283 | infos[pno].cur_start = info.start; | |
1284 | infos[pno].fs_type = info.fs_type; | 1284 | infos[pno].fs_type = info.fs_type; | |
1285 | infos[pno].fs_version = info.fs_sub_type; | 1285 | infos[pno].fs_version = info.fs_sub_type; | |
1286 | } | 1286 | } | |
1287 | /* Add the non-partition entires after that */ | 1287 | /* Add the non-partition entries after that */ | |
1288 | j = pset->parts->num_part; | 1288 | j = pset->parts->num_part; | |
1289 | for (i = 0; i < pset->num; i++) { | 1289 | for (i = 0; i < pset->num; i++) { | |
1290 | if (j >= no) | 1290 | if (j >= no) | |
1291 | break; | 1291 | break; | |
1292 | if (pset->infos[i].size == 0) | 1292 | if (pset->infos[i].size == 0) | |
1293 | continue; | 1293 | continue; | |
1294 | if (pset->infos[i].cur_part_id != NO_PART) | 1294 | if (pset->infos[i].cur_part_id != NO_PART) | |
1295 | continue; | 1295 | continue; | |
1296 | memcpy(infos+j, pset->infos+i, sizeof(*infos)); | 1296 | memcpy(infos+j, pset->infos+i, sizeof(*infos)); | |
1297 | j++; | 1297 | j++; | |
1298 | } | 1298 | } | |
1299 | 1299 | |||
1300 | /* done, replace infos */ | 1300 | /* done, replace infos */ |