Searched defs:blocksize (Results 26 - 50 of 53) sorted by relevance

123

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dbpobj.c38 bpobj_alloc_empty(objset_t *os, int blocksize, dmu_tx_t *tx) argument
57 return (bpobj_alloc(os, blocksize, tx));
78 bpobj_alloc(objset_t *os, int blocksize, dmu_tx_t *tx) argument
89 return (dmu_object_alloc(os, DMU_OT_BPOBJ, blocksize,
H A Dzfs_replay.c667 uint64_t blocksize = BP_GET_LSIZE(&lr->lr_blkptr); local
668 if (length < blocksize) {
669 offset -= offset % blocksize;
670 length = blocksize;
H A Ddnode.c533 dnode_allocate(dnode_t *dn, dmu_object_type_t ot, int blocksize, int ibs, argument
538 ASSERT3U(blocksize, <=,
540 if (blocksize == 0)
541 blocksize = 1 << zfs_default_bs;
543 blocksize = P2ROUNDUP(blocksize, SPA_MINBLOCKSIZE);
550 dprintf("os=%p obj=%llu txg=%llu blocksize=%d ibs=%d\n", dn->dn_objset,
551 dn->dn_object, tx->tx_txg, blocksize, ibs);
585 dnode_setdblksz(dn, blocksize);
616 dnode_reallocate(dnode_t *dn, dmu_object_type_t ot, int blocksize, argument
[all...]
H A Ddbuf.c2269 int blocksize = local
2271 db->db.db_size = blocksize;
2272 db->db.db_offset = db->db_blkid * blocksize;
H A Dsa.c495 uint32_t blocksize; local
498 blocksize = SPA_MINBLOCKSIZE;
503 blocksize = P2ROUNDUP_TYPED(size, SPA_MINBLOCKSIZE, uint32_t);
506 error = dbuf_spill_set_blksz(hdl->sa_spill, blocksize, tx);
H A Dzvol.c182 zvol_check_volsize(uint64_t volsize, uint64_t blocksize) argument
187 if (volsize % blocksize != 0)
409 uint64_t blocksize = BP_GET_LSIZE(&lr->lr_blkptr); local
410 if (length < blocksize) {
411 offset -= offset % blocksize;
412 length = blocksize;
554 /* get and cache the blocksize */
1059 uint32_t blocksize = zv->zv_volblocksize; local
1083 if (blocksize > immediate_write_sz && !slogging &&
1084 resid >= blocksize
[all...]
/illumos-gate/usr/src/lib/libfsmgt/common/
H A Dfs_mounts.c137 unsigned long long blocksize; local
149 blocksize = stvfs.f_bsize;
155 return (blocksize);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dtftp.c95 int blocksize = SEGSIZE; /* Number of data bytes in a DATA packet */ variable
168 /* Can't read-ahead first block as OACK may change blocksize */
228 } while (size == blocksize || count == 1);
304 n = recvfrom(f, dp, blocksize + 4, 0,
375 } while (size == blocksize);
443 blocksize = SEGSIZE;
495 blocksize = value;
/illumos-gate/usr/src/cmd/backup/lib/
H A Drmtlib.c104 rmthost(char *host, uint_t blocksize) argument
129 ntrec = blocksize;
/illumos-gate/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_diskmgt.c47 const char *name, uint32_t blocksize, int *error);
49 const char *name, uint32_t blocksize, int *in_use, int *error);
51 uint64_t *size, uint32_t *blocksize, int *error);
55 dm_descriptor_t slice, uint32_t blocksize, int *error);
135 &(dp->size), &(dp->blocksize),
142 dp->blocksize,
258 get_disk_slices(dm_descriptor_t media, const char *name, uint32_t blocksize, argument
278 get_slice(slices[j], blocksize, error);
363 uint32_t blocksize, int *in_use, int *error)
365 dmgt_slice_t **slices = get_disk_slices(media, name, blocksize, erro
362 get_disk_usable_slices(dm_descriptor_t media, const char *name, uint32_t blocksize, int *in_use, int *error) argument
441 get_disk_size(dm_descriptor_t media, char *name, uint64_t *size, uint32_t *blocksize, int *error) argument
541 get_slice(dm_descriptor_t slice, uint32_t blocksize, int *error) argument
[all...]
/illumos-gate/usr/src/cmd/od/
H A Dod.c53 static size_t blocksize = 16; variable
310 blocksize = lcm;
311 while (blocksize < 16)
312 blocksize *= 2;
355 while ((input != NULL) && (b->navail < (2 * blocksize))) {
366 want = blocksize;
370 zero = blocksize;
718 buffer.mask = (1 << (ffs(blocksize * 3) + 1)) - 1;
869 if ((!first) && (buffer.navail >= blocksize) && (!doall)) {
871 k = j - blocksize;
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/common/
H A Dkcmd.c469 size_t blocksize; local
512 &blocksize);
519 encivec_o[0].length = encivec_o[1].length = blocksize;
531 (void) memset(encivec_i[0].data, amclient, blocksize);
532 (void) memset(encivec_o[0].data, 1 - amclient, blocksize);
533 (void) memset(encivec_i[1].data, 2 | amclient, blocksize);
534 (void) memset(encivec_o[1].data, 2 | (1 - amclient), blocksize);
/illumos-gate/usr/src/cmd/lp/filter/postscript/postio/
H A Dpostio.c177 int blocksize = BLOCKSIZE; /* and its size in bytes */ variable
354 if ((blocksize = atoi(optarg)) <= 0)
355 blocksize = BLOCKSIZE;
454 blocksize = 1;
464 if (blocksize > 1024) /* don't send too much all at once */
465 blocksize = 1024;
471 if ((block = malloc(blocksize)) == NULL)
484 if ((block = malloc(blocksize)) == NULL)
885 if ((tail = read(fd_in, block, blocksize)) == -1)
/illumos-gate/usr/src/cmd/rmformat/
H A Drmf_slice.c1334 uint32_t blocksize; local
1365 blocksize = med_info.sm_blocksize;
1366 fdisk_buf = (char *)malloc(blocksize);
1421 fdisk_buf, blocksize);
1428 if (bytes_written != blocksize) {
1434 ret = write(fd, fdisk_buf, blocksize);
1439 if (ret != blocksize) {
H A Drmf_misc.c937 int32_t flag, int32_t blocksize, int32_t no_raw_rw)
950 blocksize);
955 if (ret != (nblocks * blocksize))
965 blocksize);
970 if (ret != (blocksize * nblocks))
975 ret = llseek(fd, start_sector * blocksize, SEEK_SET);
976 if (ret != start_sector * blocksize) {
984 ret = read(fd, buf, nblocks * blocksize);
989 if (ret != nblocks * blocksize) {
994 ret = llseek(fd, start_sector * blocksize, SEEK_SE
935 verify(smedia_handle_t handle, int32_t fd, diskaddr_t start_sector, uint32_t nblocks, char *buf, int32_t flag, int32_t blocksize, int32_t no_raw_rw) argument
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.tftpd.c130 int blocksize = SEGSIZE; /* Number of data bytes in a DATA packet */ variable
583 blocksize = value;
584 (void) snprintf(optbuf, sizeof (optbuf), "%d", blocksize);
1167 } while (size == blocksize);
1247 n = recv(peer, dp, blocksize + 4, 0);
1293 } while (size == blocksize);
1317 n = recv(peer, dp, blocksize + 4, 0);
H A Din.rlogind.c1261 size_t blocksize; local
1274 &blocksize)) {
1275 syslog(LOG_ERR, "Cannot determine blocksize "
1278 fatal(f, "Cannot determine blocksize "
1281 ivec.data = (char *)malloc(blocksize);
1282 ivec.length = blocksize;
1287 * encrypt IV = 0x01 x blocksize
1288 * decrypt IV = 0x00 x blocksize
1300 (void) memset(ivec.data, 0x00, blocksize);
1302 (void) memset(ivec.data, 0x01, blocksize);
[all...]
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsockcommon_subr.c467 ssize_t blocksize; local
470 blocksize = MIN(iosize, maxblk);
471 ASSERT(blocksize >= 0);
472 mp = allocb(wroff + blocksize + tail_len, BPRI_MED);
478 mp->b_wptr = mp->b_rptr + blocksize;
484 if ((*errorp = uiomove(mp->b_rptr, (size_t)blocksize,
491 iosize -= blocksize;
/illumos-gate/usr/src/boot/lib/libstand/
H A Dnandfs.c969 nandfs_calc_mdt_consts(int blocksize, struct nandfs_mdt *mdt, int entry_size) argument
972 mdt->entries_per_group = blocksize * 8; /* bits in sector */
973 mdt->entries_per_block = blocksize / entry_size;
977 blocksize / sizeof(struct nandfs_block_group_desc);
/illumos-gate/usr/src/cmd/smserverd/
H A Dsmediad.c270 uint32_t *blocksize);
273 uint32_t blocksize);
545 get_media_capacity(int32_t fd, uint32_t *capacity, uint32_t *blocksize) argument
592 * Generate capacity and blocksize information
601 *blocksize = (uint32_t)((data[9] << 16) + (data[10] << 8) + data[11]);
765 uint32_t blocksize)
793 data[9] = (blocksize >> 16) & 0xff;
794 data[10] = (blocksize >> 8) & 0xff;
795 data[11] = blocksize & 0xff;
2189 uint32_t blocksize; local
764 scsi_ls120_format(uint_t fd, uint_t flavor, uint32_t capacity, uint32_t blocksize) argument
3094 uint32_t capacity, blocksize; local
[all...]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_reiserfs.c326 /* SECTOR_SIZE << blocksize_shift == blocksize. */
328 /* 1 << full_blocksize_shift == blocksize. */
331 __u16 blocksize; member in struct:fsys_reiser_info
612 INFO->blocksize = super.s_blocksize;
619 printf ("reiserfs_mount: version=%d, blocksize=%d\n",
620 INFO->version, INFO->blocksize);
647 if (! block_read (super.s_root_block, 0, INFO->blocksize, (char*) ROOT))
663 memcpy (LEAF, ROOT, INFO->blocksize);
712 if (! block_read (blockNr, 0, INFO->blocksize, cache))
889 unsigned int blocksize; local
[all...]
/illumos-gate/usr/src/cmd/fs.d/
H A Ddf.c1246 uint64_t blocksize)
1305 *total = quota / blocksize;
1245 adjust_total_blocks(struct df_request *dfrp, fsblkcnt64_t *total, uint64_t blocksize) argument
/illumos-gate/usr/src/uts/common/io/mwl/
H A Dmwl.c931 uint32_t blocksize, nbytes; local
1047 blocksize = mwl_ctl_read4(sc, MACREG_REG_SCRATCH);
1048 if (blocksize == 0) /* download complete */
1050 if (blocksize > 0x00000c00) {
1054 if ((blocksize & 0x1) == 0) {
1068 blocksize &= ~0x1;
1070 if (blocksize > _PTRDIFF(ep, fp)) {
1072 blocksize = _PTRDIFF(ep, fp);
1074 nbytes = blocksize;
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_dataset.c1384 uint64_t blocksize = zfs_prop_get_int(zhp, local
1402 if (intval % blocksize != 0) {
1403 zfs_nicenum(blocksize, buf,
3270 uint64_t blocksize = zfs_prop_default_numeric(ZFS_PROP_VOLBLOCKSIZE); local
3325 * satisfy a few restraints. First, the blocksize must be a
3340 &blocksize)) != 0) {
3342 blocksize = zfs_prop_default_numeric(
3359 if (size % blocksize != 0) {
/illumos-gate/usr/src/cmd/fs.d/ufs/fsdb/
H A Dfsdb.c276 static u_offset_t blocksize; variable
1018 blocksize = BLKSIZE;
1185 blocksize = BLKSIZE;
1377 blocksize = FRGSIZE;
1380 if (min(blocksize, filesize) - cur_bytes >
1382 blocksize = cur_bytes + FRGSIZE;
1383 filesize = blocksize * 2;
2971 blocksize = filesize = 0;
2975 blocksize = filesize * 2;
3011 if (blocksize > filesiz
[all...]

Completed in 171 milliseconds

123