Home
last modified time | relevance | path

Searched full:zfs (Results 1 – 25 of 3003) sorted by relevance

12345678910>>...121

/freebsd/sys/contrib/openzfs/lib/libzpool/
H A DMakefile.am47 module/os/linux/zfs/zio_crypt.c \
67 module/zfs/abd.c \
68 module/zfs/aggsum.c \
69 module/zfs/arc.c \
70 module/zfs/blake3_zfs.c \
71 module/zfs/blkptr.c \
72 module/zfs/bplist.c \
73 module/zfs/bpobj.c \
74 module/zfs/bptree.c \
75 module/zfs/bqueue.c \
[all …]
/freebsd/cddl/sbin/zfs/
H A DMakefile3 .PATH: ${ZFSTOP}/cmd/zfs
8 PACKAGE= zfs
9 PROG= zfs
11 zfs.8 \
12 zfs-allow.8 \
13 zfs-bookmark.8 \
14 zfs-clone.8 \
15 zfs-create.8 \
16 zfs-destroy.8 \
17 zfs-diff.8 \
[all …]
/freebsd/sys/contrib/openzfs/man/man8/
H A Dzfs.845 .Nm zfs
46 .Nd configure ZFS datasets
60 command configures ZFS datasets within a ZFS storage pool, as described in
62 A dataset is identified by a unique path within the ZFS namespace:
87 .Xr zfs 4 .
94 While ZFS file systems are designed to be POSIX-compliant, known issues exist
127 Native properties either export internal statistics or control ZFS behavior.
129 User properties have no effect on ZFS behavior, but you can use them to annotate
143 .Xr zfs-load-key 8 .
162 userland utility and the zfs kernel module.
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_bookmark/
H A Dzfs_bookmark_cliargs.ksh33 # 'zfs bookmark' should work with both full and short arguments.
70 log_assert "'zfs bookmark' should work only when passed valid arguments."
82 log_must zfs snapshot "$DATASET@$TESTSNAP"
89 log_must zfs bookmark "$DATASET@$TESTSNAP" "$DATASET#$TESTBM"
91 log_must zfs destroy "$DATASET#$TESTBM"
94 log_must zfs bookmark "@$TESTSNAP" "$DATASET#$TESTBM"
96 log_must zfs destroy "$DATASET#$TESTBM"
99 log_must zfs bookmark "$DATASET@$TESTSNAP" "#$TESTBM"
101 log_must zfs destroy "$DATASET#$TESTBM"
105 log_mustnot zfs bookmark "@$TESTSNAP" "#$TESTBM"
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/delegate/
H A Ddelegate_common.kshlib59 log_must zfs create $ROOT_TESTFS
63 log_must zfs create -V $VOLSIZE $ROOT_TESTVOL
307 log_must zfs create $SUBFS
310 log_must zfs allow -l $STAFF1 $LOCAL_SET $dtst
311 log_must zfs allow -d $STAFF2 $DESC_SET $dtst
312 log_must zfs allow $OTHER1 $LOCAL_DESC_SET $dtst
313 log_must zfs allow $OTHER2 $LOCAL_DESC_SET $dtst
344 log_must zfs snapshot $snap
348 user_run $user eval "zfs send $snap > $bak_user"
349 log_must eval "zfs send $snap > $bak_root"
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_receive/
H A Dreceive-o-x_props_override.ksh27 # Verify ZFS property override (-o) and exclude (-x) options work when
49 log_assert "ZFS receive property override and exclude options work as expected."
68 log_must zfs create $orig
69 log_must zfs snapshot $orig@snap1
70 log_must eval "zfs send $orig@snap1 > $streamfile_full"
72 log_mustnot eval "zfs recv $dest -o atime < $streamfile_full"
73 log_mustnot eval "zfs recv $dest -x atime=off < $streamfile_full"
74 log_mustnot eval "zfs recv $dest -o atime=off -x atime < $streamfile_full"
75 log_mustnot eval "zfs recv $dest -o atime=off -o atime=on < $streamfile_full"
76 log_mustnot eval "zfs recv $dest -x atime -x atime < $streamfile_full"
[all …]
H A Dreceive-o-x_props_aliases.ksh27 # Verify ZFS property override (-o) and exclude (-x) options work when
49 log_assert "ZFS receive property alias override and exclude options work as expected."
66 log_must zfs create $orig
67 log_must zfs snapshot $orig@snap1
68 log_must eval "zfs send $orig@snap1 > $streamfile_full"
70 log_mustnot eval "zfs recv $dest -o compress < $streamfile_full"
71 log_mustnot eval "zfs recv $dest -x compress=off < $streamfile_full"
72 log_mustnot eval "zfs recv $dest -o compress=off -x compress < $streamfile_full"
73 log_mustnot eval "zfs recv $dest -o compress=off -o compress=on < $streamfile_full"
74 log_mustnot eval "zfs recv $dest -x compress -x compress < $streamfile_full"
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_upgrade/blockfiles/
H A DMakefile4 TESTSDIR=${TESTSBASE}/sys/cddl/zfs/tests/cli_root/zpool_upgrade/blockfiles
8 ${PACKAGE}FILES+= zfs-broken-mirror1.dat.Z
9 ${PACKAGE}FILES+= zfs-broken-mirror2.dat.Z
10 ${PACKAGE}FILES+= zfs-pool-v1.dat.Z
11 ${PACKAGE}FILES+= zfs-pool-v10.dat.Z
12 ${PACKAGE}FILES+= zfs-pool-v11.dat.Z
13 ${PACKAGE}FILES+= zfs-pool-v12.dat.Z
14 ${PACKAGE}FILES+= zfs-pool-v13.dat.Z
15 ${PACKAGE}FILES+= zfs-pool-v14.dat.Z
16 ${PACKAGE}FILES+= zfs-pool-v15.dat.Z
[all …]
/freebsd/tests/sys/cddl/zfs/tests/delegate/
H A Ddelegate_common.kshlib51 log_must $ZFS destroy -Rf $ROOT_TESTFS
53 log_must $ZFS create $ROOT_TESTFS
57 log_must $ZFS destroy -Rf $ROOT_TESTVOL
59 log_must $ZFS create -V $VOLSIZE $ROOT_TESTVOL
358 log_must $ZFS create $SUBFS
361 log_must $ZFS allow -l $STAFF1 $LOCAL_SET $dtst
362 log_must $ZFS allow -d $STAFF2 $DESC_SET $dtst
363 log_must $ZFS allow $OTHER1 $LOCAL_DESC_SET $dtst
364 log_must $ZFS allow $OTHER2 $LOCAL_DESC_SET $dtst
397 log_must $ZFS snapshot $snap
[all …]
/freebsd/sys/contrib/openzfs/contrib/debian/
H A Dopenzfs-zfsutils.install1 etc/default/zfs
2 etc/zfs/zfs-functions
3 etc/zfs/zpool.d/
6 usr/lib/systemd/system/zfs-import-cache.service
7 usr/lib/systemd/system/zfs-import-scan.service
8 usr/lib/systemd/system/zfs-import.target
9 usr/lib/systemd/system/zfs-load-key.service
10 usr/lib/systemd/system/zfs-mount.service
11 usr/lib/systemd/system/zfs-mount@.service
12 usr/lib/systemd/system/zfs-scrub-monthly@.timer
[all …]
/freebsd/sys/contrib/openzfs/man/man7/
H A Ddracut.zfs.79 .Nm dracut.zfs
10 .Nd overview of ZFS dracut hooks
14 parse-zfs.sh \(-> dracut-cmdline.service
19 | zfs-import-opts.sh
20 zfs-load-module.service \(da | |
22 \(da | | zfs-import-scan.service \(da
23 zfs-import-scan.service \(da \(da | zfs-import-cache.service
24 | zfs-import-cache.service basic.target | |
26 \(da | zfs-load-key.sh
27 zfs-env-bootfs.service | |
[all …]
/freebsd/usr.sbin/makefs/
H A Dzfs.c49 #include "zfs.h"
75 zfs_opt_t *zfs; in zfs_prep_opts() local
79 zfs = aligned_alloc(align, roundup2(sizeof(*zfs), align)); in zfs_prep_opts()
80 if (zfs == NULL) in zfs_prep_opts()
82 memset(zfs, 0, sizeof(*zfs)); in zfs_prep_opts()
85 { '\0', "bootfs", &zfs->bootfs, OPT_STRPTR, in zfs_prep_opts()
87 { '\0', "mssize", &zfs->mssize, OPT_INT64, in zfs_prep_opts()
89 { '\0', "poolguid", &zfs in zfs_prep_opts()
113 zfs_opt_t *zfs; zfs_parse_opts() local
145 zfs_opt_t *zfs; zfs_size_vdev() local
213 zfs_opt_t *zfs; zfs_check_opts() local
253 zfs_opt_t *zfs; zfs_cleanup_opts() local
299 pool_config_nvcreate(zfs_opt_t * zfs) pool_config_nvcreate() argument
321 pool_disk_vdev_config_nvcreate(zfs_opt_t * zfs) pool_disk_vdev_config_nvcreate() argument
345 pool_root_vdev_config_nvcreate(zfs_opt_t * zfs) pool_root_vdev_config_nvcreate() argument
371 pool_init_objdir_config(zfs_opt_t * zfs,zfs_zap_t * objdir) pool_init_objdir_config() argument
434 pool_init_objdir_feature_maps(zfs_opt_t * zfs,zfs_zap_t * objdir) pool_init_objdir_feature_maps() argument
453 pool_init_objdir_dsl(zfs_opt_t * zfs,zfs_zap_t * objdir) pool_init_objdir_dsl() argument
460 pool_init_objdir_poolprops(zfs_opt_t * zfs,zfs_zap_t * objdir) pool_init_objdir_poolprops() argument
476 pool_init_objdir(zfs_opt_t * zfs) pool_init_objdir() argument
549 pool_init(zfs_opt_t * zfs) pool_init() argument
570 pool_labels_write(zfs_opt_t * zfs) pool_labels_write() argument
637 pool_fini(zfs_opt_t * zfs) pool_fini() argument
646 dnode_cursor_init(zfs_opt_t * zfs,zfs_objset_t * os,dnode_phys_t * dnode,off_t size,off_t blksz) dnode_cursor_init() argument
693 _dnode_cursor_flush(zfs_opt_t * zfs,struct dnode_cursor * c,unsigned int levels) _dnode_cursor_flush() argument
741 dnode_cursor_next(zfs_opt_t * zfs,struct dnode_cursor * c,off_t off) dnode_cursor_next() argument
771 dnode_cursor_finish(zfs_opt_t * zfs,struct dnode_cursor * c) dnode_cursor_finish() argument
786 zfs_opt_t *zfs; zfs_makefs() local
[all...]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/limits/
H A Dfilesystem_count.ksh22 # ZFS 'filesystem_count' property is handled correctly by various actions
25 # 1. Verify 'zfs create' and 'zfs clone' increment 'filesystem_count' value
26 # 2. Verify 'zfs destroy' decrements the value
27 # 3. Verify 'zfs rename' updates counts across different hierarchies
28 # 4. Verify 'zfs promote' preserves counts within different hierarchies
29 # 5. Verify 'zfs receive' correct behaviour
30 # 6. Verify 'zfs rollback' does not update 'filesystem_count' value
31 # 7. Verify 'zfs diff' does not update 'filesystem_count' value
38 log_must zfs create "$DATASET_TEST"
39 log_must zfs create "$DATASET_UTIL"
[all …]
H A Dsnapshot_limit.ksh23 # ZFS 'snapshot_limit' is enforced when executing various actions
27 # 1. Verify 'zfs snapshot' cannot exceed the snapshot_limit
28 # 2. Verify 'zfs rename' cannot move snapshots exceeding the limit
29 # 3. Verify 'zfs promote' cannot exceed the limit
30 # 4. Verify 'zfs receive' cannot exceed the limit
52 log_must zfs create -o mountpoint=none "$DATASET_TEST"
53 log_must zfs create -o mountpoint=none "$DATASET_UTIL"
55 log_must zfs create "$DATASET_TEST"
56 log_must zfs create "$DATASET_UTIL"
65 log_must zfs allow -d -l $STAFF1 \
[all …]
H A Dfilesystem_limit.ksh23 # ZFS 'filesystem_limit' is enforced when executing various actions
27 # 1. Verify 'zfs create' and 'zfs clone' cannot exceed the filesystem_limit
28 # 2. Verify 'zfs rename' cannot move filesystems exceeding the limit
29 # 3. Verify 'zfs receive' cannot exceed the limit
51 log_must zfs create -o mountpoint=none "$DATASET_TEST"
52 log_must zfs create -o mountpoint=none "$DATASET_UTIL"
54 log_must zfs create "$DATASET_TEST"
55 log_must zfs create "$DATASET_UTIL"
64 log_must zfs allow -d -l $STAFF1 'create,mount,rename,clone,receive' \
66 log_must zfs allow -d -l $STAFF1 'create,mount,rename,clone,receive' \
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/
H A Dzpool_upgrade.cfg40 ZPOOL_VERSION_1_FILES="zfs-pool-v1.dat"
43 ZPOOL_VERSION_1stripe_FILES="zfs-pool-v1stripe1.dat \
44 zfs-pool-v1stripe2.dat zfs-pool-v1stripe3.dat"
47 ZPOOL_VERSION_1raidz_FILES="zfs-pool-v1raidz1.dat zfs-pool-v1raidz2.dat \
48 zfs-pool-v1raidz3.dat"
51 ZPOOL_VERSION_1mirror_FILES="zfs-pool-v1mirror1.dat zfs-pool-v1mirror2.dat \
52 zfs-pool-v1mirror3.dat"
56 ZPOOL_VERSION_2_FILES="zfs-pool-v2.dat"
59 ZPOOL_VERSION_2stripe_FILES="zfs-pool-v2stripe1.dat zfs-pool-v2stripe2.dat \
60 zfs-pool-v2stripe3.dat"
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redacted_send/
H A Dredacted_contents.ksh51 log_must zfs snapshot $clone@snap1
52 log_must zfs redact $sendfs@snap book1 $clone@snap1
53 log_must eval "zfs send --redact book1 $sendfs@snap >$stream"
54 log_must eval "zfs recv $recvfs <$stream"
58 log_must zfs rollback -R $clone@snap
59 log_must zfs destroy -R $recvfs
63 log_must zfs snapshot $clone@snap1
64 log_must zfs redact $sendfs@snap book3 $clone@snap1
65 log_must eval "zfs send --redact book3 $sendfs@snap >$stream"
66 log_must eval "zfs recv $recvfs <$stream"
[all …]
H A Dredacted_negative.ksh37 log_must zfs create $sendfs
38 log_must zfs snapshot $sendfs@snap1
39 log_must zfs snapshot $sendfs@snap2
40 log_must zfs snapshot $sendfs@snap3
41 log_must zfs clone $sendfs@snap2 $clone1
42 log_must zfs snapshot $clone1@snap
43 log_must zfs bookmark $clone1@snap $clone1#book
44 log_must zfs clone $sendfs@snap2 $clone2
45 log_must zfs snapshot $clone2@snap
48 log_must zfs redact $sendfs@snap2 book $clone1@snap
[all …]
/freebsd/sbin/devd/
H A Dzfs.conf2 # Sample ZFS problem reports handling.
5 match "system" "ZFS";
6 match "type" "ereport.fs.zfs.checksum";
7 …action "logger -p local7.warn -t ZFS checksum mismatch, zpool=$pool path=$vdev_path offset=$zio_of…
11 match "system" "ZFS";
12 match "type" "ereport.fs.zfs.io";
13 …action "logger -p local7.warn -t ZFS vdev I/O failure, zpool=$pool path=$vdev_path offset=$zio_off…
17 match "system" "ZFS";
18 match "type" "ereport.fs.zfs.data";
19 action "logger -p local7.warn -t ZFS pool I/O failure, zpool=$pool error=$zio_err";
[all …]
/freebsd/usr.sbin/makefs/zfs/
H A Ddsl.c38 #include "zfs.h"
68 static zfs_dsl_dir_t *dsl_dir_alloc(zfs_opt_t *zfs, const char *name);
69 static zfs_dsl_dataset_t *dsl_dataset_alloc(zfs_opt_t *zfs, zfs_dsl_dir_t *dir);
96 * to follow ZFS' inheritance rules.
99 dsl_dir_get_mountpoint(zfs_opt_t *zfs, zfs_dsl_dir_t *dir) in dsl_dir_get_mountpoint() argument
136 assert(strstr(mountpoint, zfs->rootpath) == mountpoint); in dsl_dir_get_mountpoint()
155 dsl_dir_set_prop(zfs_opt_t *zfs, zfs_dsl_dir_t *dir, const char *key, in dsl_dir_set_prop() argument
170 if (strcmp(val, zfs->rootpath) != 0 && in dsl_dir_set_prop()
171 strcmp(zfs->rootpath, "/") != 0 && in dsl_dir_set_prop()
172 (strstr(val, zfs->rootpath) != val || in dsl_dir_set_prop()
[all …]
/freebsd/sys/contrib/openzfs/etc/
H A DMakefile.am3 %D%/sudoers.d/zfs
8 sysconf_zfsdir = $(sysconfdir)/zfs
11 %D%/zfs/vdev_id.conf.alias.example \
12 %D%/zfs/vdev_id.conf.multipath.example \
13 %D%/zfs/vdev_id.conf.sas_direct.example \
14 %D%/zfs/vdev_id.conf.sas_switch.example \
15 %D%/zfs/vdev_id.conf.scsi.example
18 %D%/zfs/zfs-functions
27 %D%/default/zfs
38 %D%/init.d/zfs-import \
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zvol/zvol_misc/
H A Dzvol_misc_hierarchy.ksh26 # ZVOLs cannot have children datasets: verify zfs commands respect this
31 # 2. Verify 'zfs recv' will not (force-)receive a ZVOL over the root dataset
32 # 3. Verify 'zfs recv' cannot receive a ZVOL overwriting datasets with children
33 # 4. Verify 'zfs recv' cannot receive datasets below a ZVOL
34 # 5. Verify 'zfs create' cannot create datasets under a ZVOL
35 # 6. Verify 'zfs rename' cannot move datasets under a ZVOL
46 log_assert "ZVOLs cannot have children datasets: verify zfs commands respect "\
59 log_must zfs create "$poolname/sendfs"
60 log_must zfs create -V 1M -s "$poolname/sendvol"
61 log_must zfs snapshot "$poolname/sendfs@snap"
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_destroy/
H A Dzfs_destroy_015_pos.ksh19 # zfs destroy <dataset@snap1,snap2..> can destroy a list of multiple
24 # 2. Run zfs destroy for these snapshots for a mix of valid and
26 # 3. Run zfs destroy for snapshots from different datasets and
40 log_assert "zfs destroy for multiple snapshot is handled correctly"
43 zfs create $TESTPOOL/$TESTFS1
46 log_note "zfs destroy on valid snapshot names"
48 log_must zfs snapshot $TESTPOOL/$TESTFS1@snap$i
52 log_must zfs destroy $TESTPOOL/$TESTFS1@$snaplist
57 log_note "zfs destroy with all bogus snapshot names"
58 log_mustnot zfs destroy $TESTPOOL/$TESTFS1@snap12,snap21,sna@pple1@,s""nappy2
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/
H A Devents_001_pos.ksh65 -e "sysevent.fs.zfs.pool_create" \
66 -e "sysevent.fs.zfs.history_event" \
67 -e "sysevent.fs.zfs.config_sync" \
72 -e "sysevent.fs.zfs.history_event" \
77 -e "sysevent.fs.zfs.config_sync" \
78 -e "sysevent.fs.zfs.vdev_add" \
81 -e "sysevent.fs.zfs.vdev_remove_aux" \
86 -e "sysevent.fs.zfs.config_sync" \
87 -e "sysevent.fs.zfs.vdev_add" \
90 -e "sysevent.fs.zfs.vdev_remove_dev" \
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bclone/
H A Dbclone_diffprops_all.ksh38 log_must zfs set checksum=off $TESTSRCFS
39 log_must zfs set compress=off $TESTSRCFS
40 log_must zfs set copies=1 $TESTSRCFS
41 log_must zfs set recordsize=131072 $TESTSRCFS
42 log_must zfs set checksum=fletcher2 $TESTDSTFS
43 log_must zfs set compress=lz4 $TESTDSTFS
44 log_must zfs set copies=3 $TESTDSTFS
45 log_must zfs set recordsize=8192 $TESTDSTFS
51 log_must zfs set checksum=sha256 $TESTSRCFS
52 log_must zfs set compress=zstd $TESTSRCFS
[all …]

12345678910>>...121