bootfs
static char bootfs[ZFS_MAXNAMELEN];
zfs_rlookup(spa, rootid, bootfs) == 0) {
if (bootfs[0] == '\0')
bootfs);
uint64_t props, bootfs, root;
sizeof (bootfs), 1, &bootfs) == 0 && bootfs != 0) {
*objid = bootfs;
char *bootfs)
if (bootfs != NULL) {
menu_cmds[BOOTFS_CMD], menu_cmds[SEP_CMD], bootfs);
char *bootfs = NULL;
bootfs = strdupa(lp->arg);
barchive_path, bootfs)) == BAM_ERROR) {
char *bootfs = NULL;
bootfs = strdupa(lp->arg);
module, bootfs)) == BAM_ERROR)
menu_active_on_boot(be_node_list_t *be_nodes, const char *bootfs)
if (strcmp(be_node->be_root_ds, bootfs) == 0) {
menu_active_next(be_node_list_t *be_nodes, const char *bootfs)
if (strcmp(be_node->be_root_ds, bootfs) == 0) {
char *bootfs;
bootfs = NULL;
if (value == NULL || (bootfs = strdup(value)) == NULL) {
mp->me_bootfs = bootfs;
mp->me_active = menu_active_on_boot(be_nodes, bootfs);
mp->me_active_next = menu_active_next(be_nodes, bootfs);
bootfs = NULL;
free(bootfs);
char bootfs[ZFS_MAX_DATASET_NAME_LEN];
bzero(bootfs, sizeof (bootfs));
(void) strlcpy(bootfs, mntsp, sizeof (bootfs));
if (snprintf(bootfs_arg, BOOTARGS_MAX, fmt, bootfs, physpath) >=
devname = bootfs;
if (stat(bootfs, &sbuf) < 0) {
if (strcmp(m.mnt_mountp, bootfs))
getbootdevname(char *bootfs, char *bdev)
char *bootfs = NULL;
if ((bootfs = strtok(NULL, BE_WHITE_SPACE)) == NULL ||
strcmp(bootfs, be_root_ds) != 0) {
char *bootfs = strtok(NULL, BE_WHITE_SPACE);
if (bootfs == NULL)
if (strcmp(bootfs, be_root_ds) == 0) {
char *bootfs = strtok(NULL, BE_WHITE_SPACE);
if (bootfs == NULL)
if (strcmp(bootfs, be_root_ds) == 0) {
strcmp(bootfs, be_orig_root_ds) == 0 &&
char bootfs[BOOTARGS_MAX];
bfslen = barg_bootfs_var(barg, bootfs, sizeof (bootfs));
if (bfslen >= sizeof (bootfs) || isalen >= sizeof (isadir))
ZFS_BOOT_VAR, strlen(ZFS_BOOT_VAR), bootfs, bfslen)) != 0)
int bootfs(const grub_line_t *lp, grub_barg_t *barg);
bootfs_name_valid(const char *pool, const char *bootfs)
if (bootfs[0] == '\0')
if (!zfs_name_valid(bootfs, ZFS_TYPE_FILESYSTEM|ZFS_TYPE_SNAPSHOT))
if (strncmp(pool, bootfs, len) == 0 &&
(bootfs[len] == '/' || bootfs[len] == '\0'))
char bootfs[ZFS_MAX_DATASET_NAME_LEN];
return (zpool_get_prop(zhp, ZPOOL_PROP_BOOTFS, bootfs,
sizeof (bootfs), NULL, B_FALSE) == 0 && strncmp(bootfs, "-",
sizeof (bootfs)) != 0);