Lines Matching refs:info

55 	struct be_mountcheck_info *info;
60 info = (struct be_mountcheck_info *)data;
63 if (strcmp(mountpoint, info->path) == 0) {
64 info->name = strdup(zfs_get_name(zfs_hdl));
83 struct be_mount_info *info;
85 info = (struct be_mount_info *)data;
97 if (info->depth == 0) {
98 snprintf(tmp, BE_MAXPATHLEN, "%s", info->mountpoint);
117 mountpoint = be_mountpoint_augmented(info->lbh, zfs_mnt);
118 snprintf(tmp, BE_MAXPATHLEN, "%s%s", info->mountpoint,
122 if ((err = zfs_mount_at(zfs_hdl, NULL, info->mntflags, tmp)) != 0) {
125 return (set_error(info->lbh, BE_ERR_PATHLEN));
129 return (set_error(info->lbh, BE_ERR_BADPATH));
131 return (set_error(info->lbh, BE_ERR_PERMS));
133 return (set_error(info->lbh, BE_ERR_PATHBUSY));
135 return (set_error(info->lbh, BE_ERR_UNKNOWN));
139 if (!info->deepmount)
143 ++info->depth;
144 err = zfs_iter_filesystems(zfs_hdl, be_mount_iter, info);
145 --info->depth;
156 struct be_mount_info *info;
158 info = (struct be_mount_info *)data;
160 ++info->depth;
161 if((err = zfs_iter_filesystems(zfs_hdl, be_umount_iter, info)) != 0) {
164 --info->depth;
171 if (zfs_unmount(zfs_hdl, NULL, info->mntflags) != 0) {
174 return (set_error(info->lbh, BE_ERR_PATHLEN));
178 return (set_error(info->lbh, BE_ERR_BADPATH));
180 return (set_error(info->lbh, BE_ERR_PERMS));
182 return (set_error(info->lbh, BE_ERR_PATHBUSY));
184 return (set_error(info->lbh, BE_ERR_UNKNOWN));
198 struct be_mountcheck_info info;
206 info.path = path;
207 info.name = NULL;
208 zfs_iter_filesystems(root_hdl, be_mountcheck_cb, &info);
211 if (info.name != NULL) {
215 free(info.name);
225 free(info.name);
242 struct be_mount_info info;
267 info.lbh = lbh;
268 info.be = be;
269 info.mountpoint = (mountpoint == NULL) ? mnt_temp : mountpoint;
270 info.mntflags = mntflags;
271 info.deepmount = mntdeep;
272 info.depth = 0;
274 if((err = be_mount_iter(zhdl, &info) != 0)) {
296 struct be_mount_info info;
304 info.lbh = lbh;
305 info.be = be;
306 info.mountpoint = NULL;
307 info.mntflags = (flags & BE_MNT_FORCE) ? MS_FORCE : 0;
308 info.depth = 0;
310 if ((err = be_umount_iter(root_hdl, &info)) != 0) {