Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/dist/uts/common/fs/zfs As zfs_netbsd_get...



details:   https://anonhg.NetBSD.org/src/rev/1de1afcde7af
branches:  trunk
changeset: 840042:1de1afcde7af
user:      hannken <hannken%NetBSD.org@localhost>
date:      Mon Mar 18 09:20:15 2019 +0000

description:
As zfs_netbsd_getpages() ignores "a_count" and processes exactly one page
return an error if "a_count != 1".

diffstat:

 external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 64d0e8a2daed -r 1de1afcde7af external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c    Mon Mar 18 09:19:39 2019 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c    Mon Mar 18 09:20:15 2019 +0000
@@ -5844,6 +5844,9 @@
        if (async) {
                return 0;
        }
+       if (*ap->a_count != 1) {
+               return EBUSY;
+       }
 
        ZFS_ENTER(zfsvfs);
        ZFS_VERIFY_ZP(zp);



Home | Main Index | Thread Index | Old Index