Home
last modified time | relevance | path

Searched refs:sectors (Results 1 – 25 of 80) sorted by relevance

1234

/freebsd/tests/sys/geom/class/eli/
H A Donetime_test.sh14 atf_check dd if=rnd of=/dev/${md}.eli bs=${secsize} count=${sectors} status=none
16 md_rnd=`dd if=rnd bs=${secsize} count=${sectors} status=none | md5`
18 md_ddev=`dd if=/dev/${md}.eli bs=${secsize} count=${sectors} status=none | md5`
20 md_edev=`dd if=/dev/${md} bs=${secsize} count=${sectors} status=none | md5`
41 sectors=100
43 dd if=/dev/random of=rnd bs=${MAX_SECSIZE} count=${sectors} status=none
62 atf_check dd if=rnd of=/dev/${md}.eli bs=${secsize} count=${sectors} status=none
64 md_rnd=`dd if=rnd bs=${secsize} count=${sectors} status=none | md5`
66 md_ddev=`dd if=/dev/${md}.eli bs=${secsize} count=${sectors} status=none | md5`
84 sectors=8
[all …]
H A Dsetkey_test.sh15 sectors=100
16 attach_md md -t malloc -s `expr $sectors + 1`
18 atf_check dd if=/dev/random of=rnd bs=512 count=${sectors} status=none
19 hash1=`dd if=rnd bs=512 count=${sectors} status=none | md5`
31 dd if=rnd of=/dev/${md}.eli bs=512 count=${sectors} status=none
32 hash2=`dd if=/dev/${md}.eli bs=512 count=${sectors} 2>/dev/null | md5`
45 hash3=`dd if=/dev/${md}.eli bs=512 count=${sectors} 2>/dev/null | md5`
54 hash4=`dd if=/dev/${md}.eli bs=512 count=${sectors} 2>/dev/null | md5`
67 hash5=`dd if=/dev/${md}.eli bs=512 count=${sectors} 2>/dev/null | md5`
80 hash6=`dd if=/dev/${md}.eli bs=512 count=${sectors} 2>/dev/null | md5`
[all …]
H A Dattach_test.sh14 sectors=100
15 attach_md md -t malloc -s `expr $sectors + 1`
52 sectors=1000
53 attach_md md -t malloc -s `expr $sectors + 1`
80 sectors=100
81 attach_md md -t malloc -s `expr $sectors + 1`
108 sectors=100
109 attach_md md0 -t malloc -s `expr $sectors + 1`
110 attach_md md1 -t malloc -s `expr $sectors + 1`
111 attach_md md2 -t malloc -s `expr $sectors + 1`
[all …]
H A Dinit_test.sh17 atf_check dd if=rnd of=/dev/${md}.eli bs=${secsize} count=${sectors} \
20 md_rnd=`dd if=rnd bs=${secsize} count=${sectors} status=none | md5`
22 md_ddev=`dd if=/dev/${md}.eli bs=${secsize} count=${sectors} status=none | md5`
24 md_edev=`dd if=/dev/${md} bs=${secsize} count=${sectors} status=none | md5`
45 sectors=32
48 atf_check dd if=/dev/random of=rnd bs=$MAX_SECSIZE count=${sectors} \
67 sectors=100
71 attach_md md -t malloc -s $sectors
120 sectors=100
121 attach_md md -t malloc -s `expr $sectors + 1`
[all …]
H A Dkill_test.sh14 sectors=100
15 attach_md md -t malloc -s `expr $sectors + 1`
78 sectors=100
79 attach_md md -t malloc -s `expr $sectors + 1`
H A Dintegrity_test.sh57 sectors=2
60 dd if=/dev/random of=rnd bs=${MAX_SECSIZE} count=${sectors} status=none
103 sectors=2
106 dd if=/dev/random of=rnd bs=${MAX_SECSIZE} count=${sectors} status=none
147 sectors=2
150 dd if=/dev/random of=rnd bs=${MAX_SECSIZE} count=${sectors} status=none
H A Ddelkey_test.sh15 sectors=100
16 attach_md md -t malloc -s `expr $sectors + 1`
93 sectors=100
94 attach_md md -t malloc -s `expr $sectors + 1`
H A Ddetach_test.sh14 sectors=100
15 attach_md md -t malloc -s `expr $sectors + 1`
H A Dconfigure_test.sh14 sectors=100
15 attach_md md -t malloc -s `expr $sectors + 1`
H A Dconf.sh29 bytes=`expr $osecsize \* $sectors + 512`b
62 bytes=`expr $MAX_SECSIZE \* $sectors + 512`b
/freebsd/tools/regression/geom/MdLoad/
H A DMdLoad.c54 LIST_ENTRY(sector) sectors;
63 LIST_HEAD(,sector) sectors;
78 if (LIST_EMPTY(&sc->sectors)) { in g_simdisk_insertsector()
79 LIST_INSERT_HEAD(&sc->sectors, dsp, sectors); in g_simdisk_insertsector()
83 LIST_FOREACH(dsp2, &sc->sectors, sectors) { in g_simdisk_insertsector()
86 LIST_INSERT_BEFORE(dsp2, dsp, sectors); in g_simdisk_insertsector()
90 LIST_INSERT_AFTER(dsp3, dsp, sectors); in g_simdisk_insertsector()
210 LIST_INIT(&sc->sectors); in g_simdisk_xml_load()
261 LIST_FOREACH(dsp, &sc->sectors, sectors) { in main()
/freebsd/sys/geom/part/
H A Dg_part_mbr.c215 uint32_t sectors; in mbr_align() local
219 sectors = basetable->gpt_sectors; in mbr_align()
220 if (*size < sectors) in mbr_align()
222 if (start != NULL && (*start % sectors)) { in mbr_align()
223 *size += (*start % sectors) - sectors; in mbr_align()
224 *start -= (*start % sectors) - sectors; in mbr_align()
226 if (*size % sectors) in mbr_align()
227 *size -= (*size % sectors); in mbr_align()
228 if (*size < sectors) in mbr_align()
480 u_int sectors, heads; in g_part_mbr_read() local
[all …]
H A Dg_part_ebr.c228 uint32_t sectors; in ebr_align() local
230 sectors = basetable->gpt_sectors; in ebr_align()
231 if (*size < 2 * sectors) in ebr_align()
233 if (*start % sectors) { in ebr_align()
234 *size += (*start % sectors) - sectors; in ebr_align()
235 *start -= (*start % sectors) - sectors; in ebr_align()
237 if (*size % sectors) in ebr_align()
238 *size -= (*size % sectors); in ebr_align()
239 if (*size < 2 * sectors) in ebr_align()
H A Dg_part_bsd.c391 u_int sectors, heads; in g_part_bsd_read() local
406 sectors = le32dec(buf + 44); in g_part_bsd_read()
407 if (sectors < 1 || sectors > 255) in g_part_bsd_read()
409 if (sectors != basetable->gpt_sectors && !basetable->gpt_fixgeom) { in g_part_bsd_read()
410 g_part_geometry_heads(msize, sectors, &chs, &heads); in g_part_bsd_read()
412 basetable->gpt_sectors = sectors; in g_part_bsd_read()
/freebsd/usr.bin/mkimg/
H A Dvhd.c63 uint8_t sectors; member
127 geom->sectors = nsecs; in vhd_geometry()
136 geom->sectors = 255; in vhd_geometry()
139 geom->sectors = 17; in vhd_geometry()
146 geom->sectors = 31; in vhd_geometry()
151 geom->sectors = 63; in vhd_geometry()
177 geom.sectors * VHD_SECTOR_SIZE; in vhd_resize()
180 newsz += geom.heads * geom.sectors * VHD_SECTOR_SIZE; in vhd_resize()
/freebsd/sys/dev/mfi/
H A Dmfi_disk.c97 uint64_t sectors; in mfi_disk_attach() local
111 sectors = ld_info->size; in mfi_disk_attach()
145 sectors / (1024 * 1024 / secsize), sectors, state); in mfi_disk_attach()
149 sectors / (1024 * 1024 / secsize), sectors, in mfi_disk_attach()
164 sc->ld_disk->d_mediasize = sectors * secsize; in mfi_disk_attach()
H A Dmfi_syspd.c101 uint64_t sectors; in mfi_syspd_attach() local
113 sectors = pd_info->raw_size; in mfi_syspd_attach()
126 sectors / (1024 * 1024 / secsize), sectors, sc->pd_id); in mfi_syspd_attach()
138 sc->pd_disk->d_mediasize = sectors * secsize; in mfi_syspd_attach()
/freebsd/contrib/netbsd-tests/sbin/gpt/
H A Dgpt.disklabel7 sectors/track: 63
9 sectors/cylinder: 1000
11 total sectors: 10000
/freebsd/sys/contrib/openzfs/cmd/zed/
H A Dzed_disk_event.c189 const char *action, *type, *part, *sectors; in zed_udev_monitor() local
264 sectors = udev_device_get_property_value(dev, in zed_udev_monitor()
266 if (sectors == NULL) in zed_udev_monitor()
267 sectors = udev_device_get_sysattr_value(dev, "size"); in zed_udev_monitor()
268 if (sectors != NULL && in zed_udev_monitor()
269 strtoull(sectors, NULL, 10) < MINIMUM_SECTORS) { in zed_udev_monitor()
274 sectors, MINIMUM_SECTORS); in zed_udev_monitor()
/freebsd/stand/common/
H A Dpart.c76 uint64_t sectors; member
254 phdr = gpt_checkhdr((struct gpt_hdr *)buf, 1, table->sectors - 1, in ptable_gptread()
263 table->sectors - 1) == 0) { in ptable_gptread()
268 offset = pri ? hdr.hdr_lba_alt: table->sectors - 1; in ptable_gptread()
274 table->sectors - 1, table->sectorsize); in ptable_gptread()
297 table->sectors - 1) == 0) { in ptable_gptread()
321 table->sectors = hdr.hdr_lba_alt + 1; in ptable_gptread()
403 if (offset >= table->sectors) in ptable_ebrread()
544 entry->part.end = table->sectors; in ptable_iso9660read()
557 ptable_open(void *dev, uint64_t sectors, uint16_t sectorsize, in ptable_open() argument
[all …]
/freebsd/contrib/dialog/samples/install/
H A DFDISK.TEST2 Disk /dev/hda: 14 heads, 62 sectors, 1018 cylinders
11 Disk /dev/sda: 64 heads, 32 sectors, 511 cylinders
18 Disk /dev/sdb: 64 heads, 32 sectors, 4106 cylinders
/freebsd/stand/i386/boot2/
H A Dboot1.S64 .byte 0 # sectors/clustor
65 .word 0 # reserved sectors
68 .word 0 # small sectors
70 .word 0 # sectors/fat
71 .word 18 # sectors per track (T)
73 .long 0 # hidden sectors (W)
74 .long 0 # large sectors
302 xor %edx,%edx # sectors
369 .byte 0x50, 0xc3, 0x00, 0x00 # 50000 sectors long, bleh
/freebsd/sys/dev/hpt27xx/
H A Dwj.h40 void *wj_add_entry(PVBUS vbus, PVDEV vd, HPT_LBA lba, HPT_U16 sectors);
48 #define wj_add_entry(vbus, vd, lba, sectors) 0 argument
/freebsd/sys/dev/hptnr/
H A Dwj.h41 void *wj_add_entry(PVBUS vbus, PVDEV vd, HPT_LBA lba, HPT_U16 sectors);
49 #define wj_add_entry(vbus, vd, lba, sectors) 0
/freebsd/usr.sbin/bhyve/
H A Dblock_if.c923 off_t sectors; /* total sectors of the block dev */ in blockif_chs() local
930 sectors = bc->bc_size / bc->bc_sectsz; in blockif_chs()
933 if (sectors > 65535L * 16 * 255) in blockif_chs()
934 sectors = 65535L * 16 * 255; in blockif_chs()
936 if (sectors >= 65536L * 16 * 63) { in blockif_chs()
939 hcyl = sectors / secpt; in blockif_chs()
942 hcyl = sectors / secpt; in blockif_chs()
951 hcyl = sectors / secpt; in blockif_chs()
956 hcyl = sectors / secpt; in blockif_chs()

1234