Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 291469 Details for
Bug 253530
Kernel refuses to mount NFS share
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Update NFS failed mount error message
nfs-utils-1.1.0-mount-v4-errors-updated.patch (text/plain), 1.97 KB, created by
Christopher Brown
on 2008-01-12 16:33:51 UTC
(
hide
)
Description:
Update NFS failed mount error message
Filename:
MIME Type:
Creator:
Christopher Brown
Created:
2008-01-12 16:33:51 UTC
Size:
1.97 KB
patch
obsolete
>--- nfs-utils-1.1.0/utils/mount/mount.c.orig 2007-05-11 04:40:57.000000000 +0100 >+++ nfs-utils-1.1.0/utils/mount/mount.c 2008-01-11 19:56:33.000000000 +0000 >@@ -285,17 +285,28 @@ > } > } > >-static void mount_error(char *node) >+static void mount_error(char *mount_point, char *node) > { > switch(errno) { > case ENOTDIR: >- fprintf(stderr, "%s: mount point %s is not a directory\n", progname, node); >+ fprintf(stderr, "%s: mount point %s is not a directory\n", >+ progname, mount_point); > break; > case EBUSY: >- fprintf(stderr, "%s: %s is already mounted or busy\n", progname, node); >- break; >+ fprintf(stderr, >+ "%s: %s is already mounted" >+ "with different options.\n" >+ " Check and change mount options " >+ "or add nosharecache.\n", >+ progname, mount_point); >+ break; > case ENOENT: >- fprintf(stderr, "%s: mount point %s does not exist\n", progname, node); >+ if (node) >+ fprintf(stderr, "%s: %s failed, reason given by server: %s\n", >+ progname, node, strerror(errno)); >+ else >+ fprintf(stderr, "%s: mount point %s does not exist\n", progname, >+ mount_point); > break; > default: > fprintf(stderr, "%s: %s\n", progname, strerror(errno)); >@@ -351,6 +362,26 @@ > #endif > return 0; > } >+static int chk_mountpoint(char *mount_point) >+{ >+ struct stat sb; >+ >+ if (stat(mount_point, &sb) < 0){ >+ mount_error(mount_point, NULL); >+ return 1; >+ } >+ if (S_ISDIR(sb.st_mode) == 0){ >+ errno = ENOTDIR; >+ mount_error(mount_point, NULL); >+ return 1; >+ } >+ if (access(mount_point, X_OK) < 0) { >+ mount_error(mount_point, NULL); >+ return 1; >+ } >+ >+ return 0; >+} > > int main(int argc, char *argv[]) > { >@@ -508,6 +539,9 @@ > } > } > >+ if (chk_mountpoint(mount_point)) >+ exit(1); >+ > if (nfs_mount_vers == 4) > mnt_err = nfs4mount(spec, mount_point, &flags, &extra_opts, &mount_opts, 0); > else { >@@ -538,7 +572,7 @@ > mount_opts); > > if (mnt_err) { >- mount_error(mount_point); >+ mount_error(mount_point, spec); > exit(EX_FAIL); > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 253530
:
291468
| 291469