Skip to content

Commit

Permalink
Merge pull request #267 from truenas/NAS-133553
Browse files Browse the repository at this point in the history
NAS-133553 / None / Sync truenas/zfs-2.3-release with zfs-2.3.0 release for Fangtooth BETA
  • Loading branch information
ixhamza authored Jan 15, 2025
2 parents 2508b1a + 29704a4 commit deb3321
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion META
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Meta: 1
Name: zfs
Branch: 1.0
Version: 2.3.0
Release: rc5
Release: 1
Release-Tags: relext
License: CDDL
Author: OpenZFS
Expand Down
7 changes: 7 additions & 0 deletions module/zfs/zfs_vnops.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,15 @@ int zfs_bclone_wait_dirty = 0;
* Enable Direct I/O. If this setting is 0, then all I/O requests will be
* directed through the ARC acting as though the dataset property direct was
* set to disabled.
*
* Disabled by default on FreeBSD until a potential range locking issue in
* zfs_getpages() can be resolved.
*/
#ifdef __FreeBSD__
static int zfs_dio_enabled = 0;
#else
static int zfs_dio_enabled = 1;
#endif


/*
Expand Down
4 changes: 2 additions & 2 deletions tests/zfs-tests/cmd/clonefile.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,14 @@ main(int argc, char **argv)
}
}

int sfd = open(argv[optind], O_RDONLY | O_DIRECT);
int sfd = open(argv[optind], O_RDONLY);
if (sfd < 0) {
fprintf(stderr, "open: %s: %s\n",
argv[optind], strerror(errno));
return (1);
}

int dfd = open(argv[optind+1], O_WRONLY|O_CREAT|O_DIRECT,
int dfd = open(argv[optind+1], O_WRONLY|O_CREAT,
S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
if (dfd < 0) {
fprintf(stderr, "open: %s: %s\n",
Expand Down

0 comments on commit deb3321

Please sign in to comment.