Default to internal 'zfs userspace' implementation
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 20 May 2011 17:25:41 +0000 (10:25 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 20 May 2011 17:25:41 +0000 (10:25 -0700)
We will never bring over the pyzfs.py helper script from Solaris
to Linux.  Instead the missing functionality will be directly
integrated in to the zfs commands and libraries.  To avoid
confusion remove the warning about the missing pyzfs.py utility
and simply use the default internal support.

The Illumous developers are of the same mind and have proposed an
initial patch to do this which has been integrated in to the 'allow'
development branch.  After some additional testing this code
can be merged in to master as the right long term solution.

cmd/zfs/zfs_main.c

index 32f85b1..0953336 100644 (file)
@@ -1879,16 +1879,6 @@ zfs_do_userspace(int argc, char **argv)
        zfs_userquota_prop_t p;
        int error;
 
-       /*
-        * Try the python version.  If the execv fails, we'll continue
-        * and do a simplistic implementation.
-        */
-       (void) execv(pypath, argv-1);
-
-       (void) printf("internal error: %s not found\n"
-           "falling back on built-in implementation, "
-           "some features will not work\n", pypath);
-
        if ((zhp = zfs_open(g_zfs, argv[argc-1], ZFS_TYPE_DATASET)) == NULL)
                return (1);