/freebsd/sys/contrib/openzfs/lib/libzpool/ |
H A D | Makefile.am | 5 libzpool_la_CPPFLAGS += -I$(srcdir)/include/os/@ac_system_l@/zfs 47 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 \ [all …]
|
/freebsd/sys/contrib/openzfs/man/man8/ |
H A D | zfs.8 | 45 .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/cddl/sbin/zfs/ |
H A D | Makefile | 3 .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/tests/zfs-tests/tests/functional/delegate/ |
H A D | delegate_common.kshlib | 59 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_bookmark/ |
H A D | zfs_bookmark_cliargs.ksh | 33 # '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/cli_root/zfs_receive/ |
H A D | receive-o-x_props_override.ksh | 27 # 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 D | receive-o-x_props_aliases.ksh | 27 # 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 D | Makefile | 4 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 D | delegate_common.kshlib | 51 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 D | openzfs-zfsutils.install | 1 etc/default/zfs 2 etc/zfs/zfs-functions 3 etc/zfs/zpool.d/ 6 lib/systemd/system/zfs-import-cache.service 7 lib/systemd/system/zfs-import-scan.service 8 lib/systemd/system/zfs-import.target 9 lib/systemd/system/zfs-load-key.service 10 lib/systemd/system/zfs-mount.service 11 lib/systemd/system/zfs-scrub-monthly@.timer 12 lib/systemd/system/zfs-scrub-weekly@.timer [all …]
|
/freebsd/sys/contrib/openzfs/man/man7/ |
H A D | dracut.zfs.7 | 9 .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 D | zfs.c | 48 #include "zfs.h" 74 zfs_opt_t *zfs; in zfs_prep_opts() local 78 zfs = aligned_alloc(align, roundup2(sizeof(*zfs), align)); in zfs_prep_opts() 79 if (zfs == NULL) in zfs_prep_opts() 81 memset(zfs, 0, sizeof(*zfs)); in zfs_prep_opts() 84 { '\0', "bootfs", &zfs->bootfs, OPT_STRPTR, in zfs_prep_opts() 86 { '\0', "mssize", &zfs->mssize, OPT_INT64, in zfs_prep_opts() 88 { '\0', "poolname", &zfs->poolname, OPT_STRPTR, in zfs_prep_opts() 89 0, 0, "ZFS pool name" }, in zfs_prep_opts() 90 { '\0', "rootpath", &zfs->rootpath, OPT_STRPTR, in zfs_prep_opts() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/limits/ |
H A D | filesystem_count.ksh | 22 # 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 D | snapshot_limit.ksh | 23 # 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 D | filesystem_limit.ksh | 23 # 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 D | zpool_upgrade.cfg | 40 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 D | redacted_contents.ksh | 51 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 D | redacted_negative.ksh | 37 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 D | zfs.conf | 2 # 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 D | dsl.c | 38 #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 D | Makefile.am | 3 %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 D | zvol_misc_hierarchy.ksh | 26 # 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 D | zfs_destroy_015_pos.ksh | 19 # 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/man/ |
H A D | Makefile.am | 15 %D%/man4/zfs.4 \ 17 %D%/man7/dracut.zfs.7 \ 25 %D%/man8/fsck.zfs.8 \ 26 %D%/man8/mount.zfs.8 \ 29 %D%/man8/zfs.8 \ 30 %D%/man8/zfs-allow.8 \ 31 %D%/man8/zfs-bookmark.8 \ 32 %D%/man8/zfs-change-key.8 \ 33 %D%/man8/zfs-clone.8 \ 34 %D%/man8/zfs-create.8 \ [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/ |
H A D | events_001_pos.ksh | 65 -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 …]
|