Lines Matching defs:volsize

283 zvol_size_changed(zvol_state_t *zv, uint64_t volsize)
288 zv->zv_volsize = volsize;
290 "Size", volsize) == DDI_SUCCESS);
292 "Nblocks", lbtodb(volsize)) == DDI_SUCCESS);
299 zv->zv_volsize = volsize;
326 zv->zv_volsize = volsize;
332 dg->dg_secperunit = volsize / secsize;
339 zvol_check_volsize(uint64_t volsize, uint64_t blocksize)
341 if (volsize == 0)
344 if (volsize % blocksize != 0)
348 if (volsize - 1 > SPEC_MAXOFFSET_T)
508 uint64_t volblocksize, volsize;
511 zfs_prop_to_name(ZFS_PROP_VOLSIZE), &volsize) == 0);
533 error = zap_update(os, ZVOL_ZAP_OBJ, "size", 8, 1, &volsize, tx);
999 uint64_t volsize;
1010 error = zap_lookup(os, ZVOL_ZAP_OBJ, "size", 8, 1, &volsize);
1032 zvol_size_changed(zv, volsize);
1108 zvol_update_volsize(objset_t *os, uint64_t volsize)
1125 &volsize, tx);
1130 ZVOL_OBJ, volsize, DMU_OBJECT_END);
1181 zvol_update_live_volsize(zvol_state_t *zv, uint64_t volsize)
1191 * its original size. We must set the new volsize prior
1196 zvol_size_changed(zv, volsize);
1238 zvol_set_volsize(const char *name, uint64_t volsize)
1271 (error = zvol_check_volsize(volsize, doi.doi_data_block_size)) != 0)
1274 error = zvol_update_volsize(os, volsize);
1277 error = zvol_update_live_volsize(zv, volsize);
1783 uint64_t off, volsize;
1886 volsize = zv->zv_volsize;
1896 if (resid > 0 && (off < 0 || off >= volsize)) {
1912 if (resid > 0 && (off < 0 || off >= volsize)) {
1925 if (resid > 0 && off >= volsize) {
1965 while (resid != 0 && off < volsize) {
2003 bioerror(bp, off > volsize ? EINVAL : error);
2013 if (bp->bio_completed < bp->bio_length && off > volsize)
2028 bioerror(bp, off > volsize ? EINVAL : error);
2104 uint64_t volsize;
2118 volsize = zv->zv_volsize;
2119 /* uio_loffset == volsize isn't an error as its required for EOF processing. */
2121 (uio->uio_loffset < 0 || uio->uio_loffset > volsize))
2140 while (uio->uio_resid > 0 && uio->uio_loffset < volsize) {
2144 if (bytes > volsize - uio->uio_loffset)
2145 bytes = volsize - uio->uio_loffset;
2174 uint64_t volsize;
2189 volsize = zv->zv_volsize;
2190 /* uio_loffset == volsize isn't an error as its required for EOF processing. */
2192 (uio->uio_loffset < 0 || uio->uio_loffset > volsize))
2220 while (uio->uio_resid > 0 && uio->uio_loffset < volsize) {
2225 if (bytes > volsize - off) /* don't write past the end */
2226 bytes = volsize - off;