mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
vfs_gpfs: Print message when share modes are disabled in file system
GPFS file systems can be configured without support for share modes. As this results in an unique error code, print a message explaining this situation and the required config changes. Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
191e375d20
commit
47a2c6707b
@ -139,6 +139,13 @@ static int set_gpfs_sharemode(files_struct *fsp, uint32_t access_mask,
|
||||
DBG_NOTICE("GPFS share mode denied for %s/%s.\n",
|
||||
fsp->conn->connectpath,
|
||||
fsp->fsp_name->base_name);
|
||||
} else if (errno == EPERM) {
|
||||
DBG_ERR("Samba requested GPFS sharemode for %s/%s, but the "
|
||||
"GPFS file system is not configured accordingly. "
|
||||
"Configure file system with mmchfs -D nfs4 or "
|
||||
"set gpfs:sharemodes=no in Samba.\n",
|
||||
fsp->conn->connectpath,
|
||||
fsp->fsp_name->base_name);
|
||||
} else {
|
||||
DEBUG(10, ("gpfs_set_share failed: %s\n", strerror(errno)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user