mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 03:19:35 +03:00
Improve "Unable to automount" error message.
Having the mountpoint and dataset name both in the message made it confusing to read. Additionally, convert this to a zfs_dbgmsg rather than sending it to the console. Reviewed-by: Tom Caputi <tcaputi@datto.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Paul Zuchowski <pzuchowski@datto.com> Closes #8959
This commit is contained in:
parent
aa7aab6c45
commit
6dbca94f0c
@ -30,6 +30,7 @@
|
|||||||
* Copyright (c) 2013 by Delphix. All rights reserved.
|
* Copyright (c) 2013 by Delphix. All rights reserved.
|
||||||
* Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved.
|
* Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved.
|
||||||
* Copyright (c) 2018 George Melikov. All Rights Reserved.
|
* Copyright (c) 2018 George Melikov. All Rights Reserved.
|
||||||
|
* Copyright (c) 2019 Datto, Inc. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1081,8 +1082,8 @@ zfsctl_snapshot_mount(struct path *path, int flags)
|
|||||||
error = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC);
|
error = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC);
|
||||||
if (error) {
|
if (error) {
|
||||||
if (!(error & MOUNT_BUSY << 8)) {
|
if (!(error & MOUNT_BUSY << 8)) {
|
||||||
cmn_err(CE_WARN, "Unable to automount %s/%s: %d",
|
zfs_dbgmsg("Unable to automount %s error=%d",
|
||||||
full_path, full_name, error);
|
full_path, error);
|
||||||
error = SET_ERROR(EISDIR);
|
error = SET_ERROR(EISDIR);
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user