| /freebsd/sys/contrib/openzfs/lib/libzpool/ |
| H A D | Makefile.am | 49 module/zfs/zcp.c \ 50 module/zfs/zcp_get.c \ 51 module/zfs/zcp_global.c \ 52 module/zfs/zcp_iter.c \ 53 module/zfs/zcp_set.c \ 54 module/zfs/zcp_synctask.c 57 module/os/linux/zfs/zio_crypt.c \ 77 module/zfs/abd.c \ 78 module/zfs/aggsum.c \ 79 module/zfs/arc.c \ [all …]
|
| /freebsd/cddl/sbin/zfs/ |
| H A D | Makefile | 1 .PATH: ${ZFSTOP}/cmd/zfs 6 PACKAGE= zfs 7 PROG= zfs 9 zfs.8 \ 10 zfs-allow.8 \ 11 zfs-bookmark.8 \ 12 zfs-clone.8 \ 13 zfs-create.8 \ 14 zfs-destroy.8 \ 15 zfs-diff.8 \ [all …]
|
| /freebsd/sys/contrib/openzfs/man/man8/ |
| H A D | zfs.8 | 35 .Nm zfs 36 .Nd configure ZFS datasets 50 command configures ZFS datasets within a ZFS storage pool, as described in 52 A dataset is identified by a unique path within the ZFS namespace: 77 .Xr zfs 4 . 84 While ZFS file systems are designed to be POSIX-compliant, known issues exist 117 Native properties either export internal statistics or control ZFS behavior. 119 User properties have no effect on ZFS behavior, but you can use them to annotate 133 .Xr zfs-load-key 8 . 152 userland utility and the zfs kernel module. [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_bookmark/ |
| H A D | zfs_bookmark_cliargs.ksh | 23 # 'zfs bookmark' should work with both full and short arguments. 60 log_assert "'zfs bookmark' should work only when passed valid arguments." 72 log_must zfs snapshot "$DATASET@$TESTSNAP" 79 log_must zfs bookmark "$DATASET@$TESTSNAP" "$DATASET#$TESTBM" 81 log_must zfs destroy "$DATASET#$TESTBM" 84 log_must zfs bookmark "@$TESTSNAP" "$DATASET#$TESTBM" 86 log_must zfs destroy "$DATASET#$TESTBM" 89 log_must zfs bookmark "$DATASET@$TESTSNAP" "#$TESTBM" 91 log_must zfs destroy "$DATASET#$TESTBM" 95 log_mustnot zfs bookmark "@$TESTSNAP" "#$TESTBM" [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/delegate/ |
| H A D | delegate_common.kshlib | 58 log_must eval "echo $password | zfs create $enc_args $ROOT_TESTFS" 62 log_must eval "echo $password | zfs create -V $VOLSIZE $enc_args $ROOT_TESTVOL" 309 log_must zfs create $SUBFS 312 log_must zfs allow -l $STAFF1 $LOCAL_SET $dtst 313 log_must zfs allow -d $STAFF2 $DESC_SET $dtst 314 log_must zfs allow $OTHER1 $LOCAL_DESC_SET $dtst 315 log_must zfs allow $OTHER2 $LOCAL_DESC_SET $dtst 346 log_must zfs snapshot $snap 350 user_run $user eval "zfs send $snap > $bak_user" 351 log_must eval "zfs send $snap > $bak_root" [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_receive/ |
| H A D | receive-o-x_props_override.ksh | 23 # Verify ZFS property override (-o) and exclude (-x) options work when 45 log_assert "ZFS receive property override and exclude options work as expected." 64 log_must zfs create $orig 65 log_must zfs snapshot $orig@snap1 66 log_must eval "zfs send $orig@snap1 > $streamfile_full" 68 log_mustnot eval "zfs recv $dest -o atime < $streamfile_full" 69 log_mustnot eval "zfs recv $dest -x atime=off < $streamfile_full" 70 log_mustnot eval "zfs recv $dest -o atime=off -x atime < $streamfile_full" 71 log_mustnot eval "zfs recv $dest -o atime=off -o atime=on < $streamfile_full" 72 log_mustnot eval "zfs recv $dest -x atime -x atime < $streamfile_full" [all …]
|
| H A D | receive-o-x_props_aliases.ksh | 23 # Verify ZFS property override (-o) and exclude (-x) options work when 45 log_assert "ZFS receive property alias override and exclude options work as expected." 62 log_must zfs create $orig 63 log_must zfs snapshot $orig@snap1 64 log_must eval "zfs send $orig@snap1 > $streamfile_full" 66 log_mustnot eval "zfs recv $dest -o compress < $streamfile_full" 67 log_mustnot eval "zfs recv $dest -x compress=off < $streamfile_full" 68 log_mustnot eval "zfs recv $dest -o compress=off -x compress < $streamfile_full" 69 log_mustnot eval "zfs recv $dest -o compress=off -o compress=on < $streamfile_full" 70 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/usr.sbin/makefs/ |
| H A D | zfs.c | 49 #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', "path", &zfs->vdevpath, OPT_STRPTR, in zfs_prep_opts() 91 { '\0', "poolguid", &zfs->poolguid, OPT_INT64, in zfs_prep_opts() 92 0, INT64_MAX, "ZFS pool GUID" }, in zfs_prep_opts() [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/ |
| H A D | zpool_upgrade.cfg | 30 ZPOOL_VERSION_1_FILES="zfs-pool-v1.dat" 33 ZPOOL_VERSION_1stripe_FILES="zfs-pool-v1stripe1.dat \ 34 zfs-pool-v1stripe2.dat zfs-pool-v1stripe3.dat" 37 ZPOOL_VERSION_1raidz_FILES="zfs-pool-v1raidz1.dat zfs-pool-v1raidz2.dat \ 38 zfs-pool-v1raidz3.dat" 41 ZPOOL_VERSION_1mirror_FILES="zfs-pool-v1mirror1.dat zfs-pool-v1mirror2.dat \ 42 zfs-pool-v1mirror3.dat" 46 ZPOOL_VERSION_2_FILES="zfs-pool-v2.dat" 49 ZPOOL_VERSION_2stripe_FILES="zfs-pool-v2stripe1.dat zfs-pool-v2stripe2.dat \ 50 zfs-pool-v2stripe3.dat" [all …]
|
| /freebsd/sys/contrib/openzfs/man/man7/ |
| H A D | dracut.zfs.7 | 8 .Nm dracut.zfs 9 .Nd overview of ZFS dracut hooks 13 parse-zfs.sh \(-> dracut-cmdline.service 18 | zfs-import-opts.sh 19 zfs-load-module.service \(da | | 21 \(da | | zfs-import-scan.service \(da 22 zfs-import-scan.service \(da \(da | zfs-import-cache.service 23 | zfs-import-cache.service basic.target | | 25 \(da | zfs-load-key.sh 26 zfs-env-bootfs.service | | [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 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/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/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 | 39 #include "zfs.h" 69 static zfs_dsl_dir_t *dsl_dir_alloc(zfs_opt_t *zfs, const char *name); 70 static zfs_dsl_dataset_t *dsl_dataset_alloc(zfs_opt_t *zfs, zfs_dsl_dir_t *dir); 97 * to follow ZFS' inheritance rules. 100 dsl_dir_get_mountpoint(zfs_opt_t *zfs, zfs_dsl_dir_t *dir) in dsl_dir_get_mountpoint() argument 138 assert(strstr(mountpoint, zfs->rootpath) == mountpoint); in dsl_dir_get_mountpoint() 157 dsl_dir_set_prop(zfs_opt_t *zfs, zfs_dsl_dir_t *dir, const char *key, in dsl_dir_set_prop() argument 172 if (strcmp(val, zfs->rootpath) != 0 && in dsl_dir_set_prop() 173 strcmp(zfs->rootpath, "/") != 0 && in dsl_dir_set_prop() 174 (strstr(val, zfs->rootpath) != val || in dsl_dir_set_prop() [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/ |
| H A D | events_001_pos.ksh | 55 -e "sysevent.fs.zfs.pool_create" \ 56 -e "sysevent.fs.zfs.history_event" \ 57 -e "sysevent.fs.zfs.config_sync" \ 62 -e "sysevent.fs.zfs.history_event" \ 67 -e "sysevent.fs.zfs.config_sync" \ 68 -e "sysevent.fs.zfs.vdev_add" \ 71 -e "sysevent.fs.zfs.vdev_remove_aux" \ 76 -e "sysevent.fs.zfs.config_sync" \ 77 -e "sysevent.fs.zfs.vdev_add" \ 80 -e "sysevent.fs.zfs.vdev_remove_dev" \ [all …]
|
| /freebsd/sys/contrib/openzfs/.github/workflows/scripts/ |
| H A D | qemu-test-repo-vm.sh | 3 # Do a test install of ZFS from an external repository. 14 # If blank, use the default repo from zfs-release RPM. 38 # $1: Repo 'zfs' 'zfs-kmod' 'zfs-testing' 'zfs-testing-kmod' 40 # install from. Blank means use default from zfs-release RPM. 48 args="--disablerepo=zfs --enablerepo=$repo" 51 # zfs.repo, then update the repo file. 52 if [ -n "$host" ] && ! grep -q $host /etc/yum.repos.d/zfs.repo ; then 53 sudo sed -i "s;baseurl=http://download.zfsonlinux.org;baseurl=$host;g" /etc/yum.repos.d/zfs.repo 56 …baseurl=$(grep -A 5 "\[$repo\]" /etc/yum.repos.d/zfs.repo | awk -F'=' '/baseurl=/{print $2; exit}… 60 package="$(dnf list $args zfs | tail -n 1 | awk '{print $2}')" [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zvol/zvol_misc/ |
| H A D | zvol_misc_hierarchy.ksh | 22 # ZVOLs cannot have children datasets: verify zfs commands respect this 27 # 2. Verify 'zfs recv' will not (force-)receive a ZVOL over the root dataset 28 # 3. Verify 'zfs recv' cannot receive a ZVOL overwriting datasets with children 29 # 4. Verify 'zfs recv' cannot receive datasets below a ZVOL 30 # 5. Verify 'zfs create' cannot create datasets under a ZVOL 31 # 6. Verify 'zfs rename' cannot move datasets under a ZVOL 42 log_assert "ZVOLs cannot have children datasets: verify zfs commands respect "\ 55 log_must zfs create "$poolname/sendfs" 56 log_must zfs create -V 1M -s "$poolname/sendvol" 57 log_must zfs snapshot "$poolname/sendfs@snap" [all …]
|
| /freebsd/sys/contrib/openzfs/etc/ |
| H A D | Makefile.am | 3 sysconf_zfsdir = $(sysconfdir)/zfs 6 %D%/zfs/vdev_id.conf.alias.example \ 7 %D%/zfs/vdev_id.conf.multipath.example \ 8 %D%/zfs/vdev_id.conf.sas_direct.example \ 9 %D%/zfs/vdev_id.conf.sas_switch.example \ 10 %D%/zfs/vdev_id.conf.scsi.example 13 %D%/zfs/zfs-functions 22 %D%/default/zfs 33 %D%/init.d/zfs-import \ 34 %D%/init.d/zfs-load-key \ [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bclone/ |
| H A D | bclone_diffprops_all.ksh | 31 log_must zfs inherit checksum $TESTSRCFS 32 log_must zfs inherit compress $TESTSRCFS 33 log_must zfs inherit copies $TESTSRCFS 34 log_must zfs inherit recordsize $TESTSRCFS 35 log_must zfs inherit checksum $TESTDSTFS 36 log_must zfs inherit compress $TESTDSTFS 37 log_must zfs inherit copies $TESTDSTFS 38 log_must zfs inherit recordsize $TESTDSTFS 47 log_must zfs set checksum=off $TESTSRCFS 48 log_must zfs set compress=off $TESTSRCFS [all …]
|