Searched refs:fsname (Results 1 - 25 of 39) sorted by relevance

12

/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dsend_doall.c53 const char *tofull, *fsname, *tosnap, *p; local
66 fsname = strndup(tofull, p - tofull);
72 zhp = zfs_open(zhdl, fsname, ZFS_TYPE_FILESYSTEM);
74 err(EX_OSERR, "zfs_open(\"%s\")", fsname);
84 free((void *)fsname);
H A Dbadsend.c58 const char *fromfull, *tofull, *fsname, *fromsnap, *tosnap, *p; local
78 fsname = strndup(tofull, p - tofull);
79 if (fsname == NULL) {
83 if (strncmp(fsname, fromfull, p - tofull) != 0)
94 zhp = zfs_open(zhdl, fsname, ZFS_TYPE_FILESYSTEM);
96 err(EX_OSERR, "zfs_open(\"%s\")", fsname);
137 free((void *)fsname);
/freebsd-current/lib/libc/gen/
H A Dgetvfsbyname.c46 are_fusefs(const char *fsname, const char *vfc_name) argument
51 return (strncmp(fsname, fusefs_dot, sizeof(fusefs_dot) - 1) == 0 &&
60 getvfsbyname(const char *fsname, struct xvfsconf *vfcp) argument
77 if (strcmp(fsname, xvfsp[i].vfc_name) == 0 ||
78 are_fusefs(fsname, xvfsp[i].vfc_name)) {
/freebsd-current/sys/sys/
H A Diconv.h168 int iconv_vfs_refcount(const char *fsname);
189 #define VFS_DECLARE_ICONV(fsname) \
190 static struct iconv_functions fsname ## _iconv_core = { \
198 extern struct iconv_functions *fsname ## _iconv; \
199 static int fsname ## _iconv_mod_handler(module_t mod, \
202 fsname ## _iconv_mod_handler(module_t mod, int type, void *d) \
207 fsname ## _iconv = & fsname ## _iconv_core; \
210 error = iconv_vfs_refcount(#fsname); \
213 fsname ## _icon
[all...]
H A Dmount.h964 #define VFS_SET(vfsops, fsname, flags) \
965 static struct vfsconf fsname ## _vfsconf = { \
967 .vfc_name = #fsname, \
972 static moduledata_t fsname ## _mod = { \
973 #fsname, \
975 & fsname ## _vfsconf \
977 DECLARE_MODULE(fsname, fsname ## _mod, SI_SUB_VFS, SI_ORDER_MIDDLE)
/freebsd-current/sys/geom/
H A Dgeom_vfs.h39 int g_vfs_open(struct vnode *vp, struct g_consumer **cpp, const char *fsname, int wr);
H A Dgeom_vfs.c260 g_vfs_open(struct vnode *vp, struct g_consumer **cpp, const char *fsname, int wr) argument
279 gp = g_new_geomf(&g_vfs_class, "%s.%s", fsname, pp->name);
/freebsd-current/tools/diag/prtblknos/
H A Dmain.c53 char *fsname, *filename; local
78 fsname = *++argv;
81 if (ufs_disk_fillout_blank(&disk, fsname) == -1 ||
83 err(1, "Cannot access file system superblock on %s", fsname);
100 (intmax_t)inonum, fsname, disk.d_error);
/freebsd-current/sbin/clri/
H A Dclri.c64 char *fsname; local
70 fsname = *++argv;
71 if (ufs_disk_fillout(&disk, fsname) == -1) {
/freebsd-current/sys/contrib/openzfs/lib/libzfs_core/
H A Dlibzfs_core.c258 lzc_create(const char *fsname, enum lzc_dataset_type type, nvlist_t *props, argument
276 error = lzc_ioctl(ZFS_IOC_CREATE, fsname, args, NULL);
283 lzc_clone(const char *fsname, const char *origin, nvlist_t *props) argument
292 error = lzc_ioctl(ZFS_IOC_CLONE, fsname, args, NULL);
299 lzc_promote(const char *fsname, char *snapnamebuf, int snapnamelen) argument
310 (void) strlcpy(zc.zc_name, fsname, sizeof (zc.zc_name));
337 lzc_destroy(const char *fsname) argument
341 error = lzc_ioctl(ZFS_IOC_DESTROY, fsname, args, NULL);
1003 char fsname[MAXPATHLEN]; local
1011 /* Set 'fsname' t
1321 lzc_rollback(const char *fsname, char *snapnamebuf, int snapnamelen) argument
1346 lzc_rollback_to(const char *fsname, const char *snapname) argument
1431 lzc_get_bookmarks(const char *fsname, nvlist_t *props, nvlist_t **bmarks) argument
1666 lzc_load_key(const char *fsname, boolean_t noop, uint8_t *wkeydata, uint_t wkeylen) argument
1690 lzc_unload_key(const char *fsname) argument
1696 lzc_change_key(const char *fsname, uint64_t crypt_cmd, nvlist_t *props, uint8_t *wkeydata, uint_t wkeylen) argument
[all...]
/freebsd-current/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzpl_super.c193 char *fsname = kmem_alloc(ZFS_MAX_DATASET_NAME_LEN, KM_SLEEP); local
194 dmu_objset_name(zfsvfs->z_os, fsname);
196 for (int i = 0; fsname[i] != 0; i++) {
200 * parse then fsname portion of /proc/self/mounts.
202 if (fsname[i] == ' ') {
205 seq_putc(seq, fsname[i]);
209 kmem_free(fsname, ZFS_MAX_DATASET_NAME_LEN);
H A Dzfs_ctldir.c874 char *to, *from, *real, *fsname; local
886 fsname = kmem_alloc(ZFS_MAX_DATASET_NAME_LEN, KM_SLEEP);
898 dmu_objset_name(zfsvfs->z_os, fsname);
928 error = dsl_dataset_rename_snapshot(fsname, snm, tnm, B_FALSE);
937 kmem_free(fsname, ZFS_MAX_DATASET_NAME_LEN);
/freebsd-current/lib/libutil/
H A Dquotafile.c56 char fsname[MAXPATHLEN + 1]; /* mount point of filesystem */ member in struct:quotafile
126 strlcpy(qf->fsname, fs->fs_file, sizeof(qf->fsname));
127 if (stat(qf->fsname, &st) != 0)
140 if (quotactl(qf->fsname, qcmd, 0, &qf->wordsize) == 0)
224 return (quotactl(qf->fsname, qcmd, 0, qf->qfname));
231 return (quotactl(qf->fsname, QCMD(Q_QUOTAOFF, qf->quotatype), 0, 0));
238 return (qf->fsname);
343 return (quotactl(qf->fsname, qcmd, id, dqb));
413 return (quotactl(qf->fsname, qcm
[all...]
/freebsd-current/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_crypto.c279 boolean_t new_key, const char *fsname,
309 if (fsname != NULL)
310 (void) printf(" for '%s'", fsname);
359 get_key_interactive(libzfs_handle_t *restrict hdl, const char *fsname, argument
378 if ((ret = libzfs_getpassphrase(keyformat, B_FALSE, newkey, fsname,
395 ret = libzfs_getpassphrase(keyformat, B_TRUE, newkey, fsname, &buf2,
483 const char *fsname, zfs_keyformat_t keyformat, boolean_t newkey,
486 (void) fsname, (void) newkey;
510 const char *fsname, zfs_keyformat_t keyformat, boolean_t newkey,
513 (void) fsname, (voi
278 libzfs_getpassphrase(zfs_keyformat_t keyformat, boolean_t is_reenter, boolean_t new_key, const char *fsname, char **restrict res, size_t *restrict reslen) argument
482 get_key_material_file(libzfs_handle_t *hdl, const char *uri, const char *fsname, zfs_keyformat_t keyformat, boolean_t newkey, uint8_t **restrict buf, size_t *restrict len_out) argument
509 get_key_material_https(libzfs_handle_t *hdl, const char *uri, const char *fsname, zfs_keyformat_t keyformat, boolean_t newkey, uint8_t **restrict buf, size_t *restrict len_out) argument
687 get_key_material(libzfs_handle_t *hdl, boolean_t do_verify, boolean_t newkey, zfs_keyformat_t keyformat, const char *keylocation, const char *fsname, uint8_t **km_out, size_t *kmlen_out, boolean_t *can_retry_out) argument
861 const char *fsname = (zhp) ? zfs_get_name(zhp) : NULL; local
1242 zfs_crypto_attempt_load_keys(libzfs_handle_t *hdl, const char *fsname) argument
[all...]
H A Dlibzfs_sendrecv.c245 const char *fsname; member in struct:send_data
545 "exist\n"), sd->fsname, sd->tosnap, sd->recursive ?
597 sd->fsname, sd->tosnap, zhp->zfs_name);
681 gather_nvlist(libzfs_handle_t *hdl, const char *fsname, const char *fromsnap, argument
691 zhp = zfs_open(hdl, fsname, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME);
696 sd.fsname = fsname;
1453 const char *fsname; local
1463 fsname = fnvlist_lookup_string(fslist, "name");
1491 zhp = zfs_open(rzhp->zfs_hdl, fsname, ZFS_TYPE_DATASE
3061 recv_promote(libzfs_handle_t *hdl, const char *fsname, const char *origin_fsname, recvflags_t *flags) argument
3320 const char *fsname = NULL, *snapname = NULL; local
3388 char fsname[ZFS_MAX_DATASET_NAME_LEN]; local
3543 const char *fsname, *stream_fsname; local
4170 zfs_setup_cmdline_props(libzfs_handle_t *hdl, zfs_type_t type, char *fsname, boolean_t zoned, boolean_t recursive, boolean_t newfs, boolean_t raw, boolean_t toplevel, nvlist_t *recvprops, nvlist_t *cmdprops, nvlist_t *origprops, nvlist_t **oxprops, uint8_t **wkeydata_out, uint_t *wkeylen_out, const char *errbuf) argument
[all...]
/freebsd-current/usr.bin/quota/
H A Dquota.c72 char fsname[MAXPATHLEN + 1]; member in struct:quotause
323 printf("\t%s %s\n", msgi, qup->fsname);
325 printf("\t%s %s\n", msgb, qup->fsname);
334 nam = qup->fsname;
335 if (strlen(qup->fsname) > 15) {
336 printf("%s\n", qup->fsname);
383 type == USRQUOTA ? "user" : "group", id, qup->fsname);
525 strcpy(qup->fsname, fst[i].f_mntonname);
/freebsd-current/sbin/quotacheck/
H A Dquotacheck.c423 update(const char *fsname, struct quotafile *qf, int type) argument
451 printchanges(fsname, type, &dqbuf, fup, id);
473 printchanges(fsname, type, &dqbuf, fup, fup->fu_id);
541 addid(u_long id, int type, char *name, const char *fsname) argument
563 if (aflag && fsname != NULL)
564 (void)printf("%s: ", fsname);
677 printchanges(const char *fsname, int type, struct dqblk *dp, argument
683 (void)printf("%s: ", fsname);
/freebsd-current/usr.sbin/bsdinstall/partedit/
H A Dpart_wizard.c340 char *fsname; local
348 fsname = fsnames[1];
351 fsname = fsnames[0];
396 gpart_create(pp, fsname, rootsizestr, "/", NULL, 0);
/freebsd-current/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/
H A D_libzfs_core.py340 def lzc_get_bookmarks(fsname, props=None):
344 :param bytes fsname: a name of the filesystem.
373 ret = _lib.lzc_get_bookmarks(fsname, nvlist, bmarks_nvlist)
374 errors.lzc_get_bookmarks_translate_error(ret, fsname, props)
830 def lzc_change_key(fsname, crypt_cmd, props=None, key=None):
834 :param bytes fsname: the name of the dataset.
866 ret = _lib.lzc_change_key(fsname, cmd, nvlist, key, len(key))
867 errors.lzc_change_key_translate_error(ret, fsname)
871 def lzc_load_key(fsname, noop, key):
875 :param bytes fsname
[all...]
/freebsd-current/cddl/contrib/opensolaris/lib/pyzfs/common/
H A Dallow.py362 (perms, fsname) = mungeargs(3)
369 (perms, fsname) = mungeargs(2)
376 (perms, fsname) = mungeargs(2)
379 (perms, fsname) = mungeargs(3)
388 ds = zfs.dataset.Dataset(fsname, snaps=False)
/freebsd-current/usr.sbin/edquota/
H A Dedquota.c80 char fsname[MAXPATHLEN + 1]; member in struct:quotause
170 strlcpy(qup->fsname, cp,
171 sizeof(qup->fsname));
261 qup->fsname);
380 strlcpy(qup->fsname, fs->fs_file, sizeof(qup->fsname));
410 warn("%s", qup->fsname);
472 fprintf(fd, "%s: in use: %s, ", qup->fsname,
620 if (strcmp(fsp, qup->fsname))
689 qup->fsname, cvtsto
[all...]
/freebsd-current/sys/contrib/openzfs/module/zfs/
H A Dzcp_iter.c213 const char *fsname = lua_tostring(state, 1); local
218 dsl_dataset_t *ds = zcp_dataset_hold(state, dp, fsname, FTAG);
227 "argument %s cannot be a snapshot", fsname));
300 const char *fsname = lua_tostring(state, 1); local
305 dsl_dataset_t *ds = zcp_dataset_hold(state, dp, fsname, FTAG);
315 "argument %s cannot be a snapshot", fsname));
H A Dzfs_ioctl.c1187 char fsname[ZFS_MAX_DATASET_NAME_LEN]; local
1188 error = dmu_fsname(nvpair_name(pair), fsname);
1191 error = zfs_secpolicy_write_perms(fsname,
1208 char fsname[ZFS_MAX_DATASET_NAME_LEN]; local
1209 error = dmu_fsname(nvpair_name(pair), fsname);
1212 error = zfs_secpolicy_write_perms(fsname,
3391 zfs_ioc_create(const char *fsname, nvlist_t *innvl, nvlist_t *outnvl) argument
3419 if (strchr(fsname, '@') ||
3420 strchr(fsname, '%'))
3446 if ((error = zvol_check_volblocksize(fsname,
3531 zfs_ioc_clone(const char *fsname, nvlist_t *innvl, nvlist_t *outnvl) argument
3566 zfs_ioc_remap(const char *fsname, nvlist_t *innvl, nvlist_t *outnvl) argument
3777 zfs_destroy_unmount_origin(const char *fsname) argument
3885 zfs_ioc_get_bookmarks(const char *fsname, nvlist_t *innvl, nvlist_t *outnvl) argument
3907 char fsname[ZFS_MAX_DATASET_NAME_LEN]; local
4394 zfs_ioc_rollback(const char *fsname, nvlist_t *innvl, nvlist_t *outnvl) argument
4439 recursive_unmount(const char *fsname, void *arg) argument
5440 zfs_ioc_recv_new(const char *fsname, nvlist_t *innvl, nvlist_t *outnvl) argument
[all...]
/freebsd-current/tests/sys/fs/fusefs/
H A Dmount.cc93 TEST_F(Fsname, fsname)
/freebsd-current/sys/fs/fuse/
H A Dfuse_vfsops.c308 char *fspec, *subtype, *fsname = NULL; local
441 vfs_getopt(opts, "fsname=", (void**)&fsname, &fsnamelen);
443 fsname == NULL ? fspec : fsname, MNAMELEN);

Completed in 199 milliseconds

12