Linux 3.3 compat, iops->create()/mkdir()/mknod()
[zfs.git] / cmd / mount_zfs / mount_zfs.c
index 6a2e9ff..1a8c98c 100644 (file)
@@ -480,6 +480,10 @@ main(int argc, char **argv)
                    mntflags, mntopts);
                if (error) {
                        switch (errno) {
+                       case ENOENT:
+                               (void) fprintf(stderr, gettext("mount point "
+                                   "'%s' does not exist\n"), mntpoint);
+                               return (MOUNT_SYSERR);
                        case EBUSY:
                                (void) fprintf(stderr, gettext("filesystem "
                                    "'%s' is already mounted\n"), dataset);