Skip to content
Permalink
Browse files

Remove zfs_dbgmsg calls

  • Loading branch information
jasonbking committed Jan 13, 2020
1 parent cbdf8c5 commit 4ebbdf3573a15a72ac557b28b307fe5b5e1b0f84
Showing with 2 additions and 8 deletions.
  1. +2 −8 module/zfs/zcp_synctask.c
@@ -15,7 +15,7 @@

/*
* Copyright (c) 2016, 2017 by Delphix. All rights reserved.
* Copyright 2019 Joyent, Inc.
* Copyright 2020 Joyent, Inc.
*/

#include <sys/lua/lua.h>
@@ -310,24 +310,18 @@ zcp_synctask_inherit_prop_check(void *arg, dmu_tx_t *tx)
if (zfs_prop_user(args->zipa_prop))
return (0);

zfs_dbgmsg("Invalid property name");
return (EINVAL);
}

if (zfs_prop_readonly(prop)) {
zfs_dbgmsg("Tried to set a read-only property");
return (EINVAL);
}

if (!zfs_prop_inheritable(prop)) {
zfs_dbgmsg("Tried to set a non-inheritable property");
return (EINVAL);
}

if ((error = dsl_props_set_check(&args->zipa_dpsa, tx)) != 0)
zfs_dbgmsg("Failed property check");

return (error);
return (dsl_props_set_check(&args->zipa_dpsa, tx));
}

static void

0 comments on commit 4ebbdf3

Please sign in to comment.
You can’t perform that action at this time.