Lines Matching refs:len

244 zpool_get_prop(zpool_handle_t *zhp, zpool_prop_t prop, char *buf, size_t len,
257 (void) strlcpy(buf, zpool_get_name(zhp), len);
261 (void) strlcpy(buf, "FAULTED", len);
266 (void) snprintf(buf, len, "%llu", intval);
276 len);
281 (void) strlcpy(buf, "-", len);
297 len);
310 (void) snprintf(buf, len, "%llu",
313 (void) zfs_nicenum(intval, buf, len);
318 (void) strlcpy(buf, "-", len);
320 (void) snprintf(buf, len, "%llu",
323 (void) zfs_nicenum(intval, buf, len);
328 (void) snprintf(buf, len, "%llu",
331 (void) snprintf(buf, len, "%llu%%",
337 (void) strlcpy(buf, "-", len);
339 (void) snprintf(buf, len, "%llu%%",
344 (void) snprintf(buf, len, "%llu.%02llux",
356 vs->vs_aux), len);
360 (void) snprintf(buf, len, "-");
365 (void) snprintf(buf, len, "%llu", intval);
374 (void) strlcpy(buf, strval, len);
394 int len = strlen(pool);
399 if (strncmp(pool, bootfs, len) == 0 &&
400 (bootfs[len] == '/' || bootfs[len] == '\0'))
812 size_t len)
834 (void) strlcpy(buf, "-", len);
845 (void) strlcpy(buf, ZFS_FEATURE_DISABLED, len);
848 (void) strlcpy(buf, ZFS_FEATURE_ENABLED, len);
850 (void) strlcpy(buf, ZFS_FEATURE_ACTIVE, len);
860 (void) strlcpy(buf, "-", len);
3582 zfs_save_arguments(int argc, char **argv, char *string, int len)
3584 (void) strlcpy(string, basename(argv[0]), len);
3586 (void) strlcat(string, " ", len);
3587 (void) strlcat(string, argv[i], len);
3611 * 'buf' is the buffer to fill up to 'len' bytes. 'off' is the
3615 * 'len' is the actual amount of bytes read into 'buf'.
3618 get_history(zpool_handle_t *zhp, char *buf, uint64_t *off, uint64_t *len)
3626 zc.zc_history_len = *len;
3651 *len = zc.zc_history_len;
3760 char *pathname, size_t len)
3769 (void) snprintf(pathname, len, "<metadata>:<0x%llx>", obj);
3779 (void) snprintf(pathname, len, "<0x%llx>:<0x%llx>",
3794 (void) snprintf(pathname, len, "%s%s", mntpnt,
3797 (void) snprintf(pathname, len, "%s:%s",
3801 (void) snprintf(pathname, len, "%s:<0x%llx>", dsname, obj);