Skip to content

Commit

Permalink
Improve "Unable to automount" error message. Having the
Browse files Browse the repository at this point in the history
mounpoint and dataset name both in the message made it
confusing to read.

Signed-off-by: Paul Zuchowski <[email protected]>
  • Loading branch information
PaulZ-98 committed Jun 26, 2019
1 parent 3fab4d9 commit 84677e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions module/zfs/zfs_ctldir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,8 +1108,7 @@ zfsctl_snapshot_mount(struct path *path, int flags)
error = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC);
if (error) {
if (!(error & MOUNT_BUSY << 8)) {
cmn_err(CE_WARN, "Unable to automount %s/%s: %d",
full_path, full_name, error);
cmn_err(CE_WARN, "Unable to automount %s", full_path);
error = SET_ERROR(EISDIR);
} else {
/*
Expand Down

0 comments on commit 84677e4

Please sign in to comment.