Skip to content

Commit

Permalink
Improve "Unable to automount" error message. Having the
Browse files Browse the repository at this point in the history
mountpoint 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 ce38249
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/zfs/zfs_ctldir.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
* Copyright (c) 2013 by Delphix. All rights reserved.
* Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved.
* Copyright (c) 2018 George Melikov. All Rights Reserved.
* Copyright (c) 2019 Datto, Inc. All rights reserved.
*/

/*
Expand Down Expand Up @@ -1108,8 +1109,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 ce38249

Please sign in to comment.