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/dabfc4381c15
branches:  trunk
changeset: 449724:dabfc4381c15
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 484e182f3f63 -r dabfc4381c15 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