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 215811 Details for
Bug 299151
RFE: Document bind mount format in fstab manpage
[?]
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]
upstream patch
0001-mount-cleanup-none-fstype-usage.patch (text/plain), 2.68 KB, created by
Karel Zak
on 2007-10-04 13:19:05 UTC
(
hide
)
Description:
upstream patch
Filename:
MIME Type:
Creator:
Karel Zak
Created:
2007-10-04 13:19:05 UTC
Size:
2.68 KB
patch
obsolete
>From f92dc20fcb9bb9f15ac95e0e3d6ae96ecfb59619 Mon Sep 17 00:00:00 2001 >From: Karel Zak <kzak@redhat.com> >Date: Thu, 4 Oct 2007 15:07:30 +0200 >Subject: [PATCH] mount: cleanup "none" fstype usage > > * disable to call /sbin/mount.none > * rewrite fstype to "none" for MS_BIND and MS_MOVE > * add notes about "none" to fstab.5 and mount.8 > >Signed-off-by: Karel Zak <kzak@redhat.com> >--- > mount/fstab.5 | 3 +++ > mount/mount.8 | 5 +++++ > mount/mount.c | 9 ++++++--- > mount/umount.c | 5 ++++- > 4 files changed, 18 insertions(+), 4 deletions(-) > >diff --git a/mount/fstab.5 b/mount/fstab.5 >index a7978b5..6109b5e 100644 >--- a/mount/fstab.5 >+++ b/mount/fstab.5 >@@ -142,6 +142,9 @@ An entry > .I ignore > causes the line to be ignored. This is useful > to show disk partitions which are currently unused. >+An entry >+.I none >+is useful for bind or move mounts. > > The fourth field, > .RI ( fs_mntops ), >diff --git a/mount/mount.8 b/mount/mount.8 >index 01001ad..54b11d4 100644 >--- a/mount/mount.8 >+++ b/mount/mount.8 >@@ -108,6 +108,11 @@ file hierarchy somewhere else. The call is > .br > .B "mount --bind olddir newdir" > .RE >+or fstab entry is: >+.RS >+.br >+.B "/olddir /newdir none bind" >+.RE > After this call the same contents is accessible in two places. > One can also remount a single file (on a single file). > >diff --git a/mount/mount.c b/mount/mount.c >index 5bc2b30..2e458ca 100644 >--- a/mount/mount.c >+++ b/mount/mount.c >@@ -624,7 +624,10 @@ check_special_mountprog(const char *spec, const char *node, const char *type, in > if (!external_allowed) > return 0; > >- if (type && strlen(type) < 100) { >+ if (type == NULL || strcmp(type, "none") == 0) >+ return 0; >+ >+ if (strlen(type) < 100) { > sprintf(mountprog, "/sbin/mount.%s", type); > if (stat(mountprog, &statbuf) == 0) { > if (verbose) >@@ -719,8 +722,8 @@ guess_fstype_and_mount(const char *spec, const char *node, const char **types, > if (*types && strcasecmp (*types, "auto") == 0) > *types = NULL; > >- if (!*types && (flags & (MS_BIND | MS_MOVE))) >- *types = "none"; /* random, but not "bind" */ >+ if (flags & (MS_BIND | MS_MOVE)) >+ *types = "none"; > > if (!*types && !(flags & MS_REMOUNT)) { > *types = guess_fstype_by_devname(spec); >diff --git a/mount/umount.c b/mount/umount.c >index 3221619..6af4354 100644 >--- a/mount/umount.c >+++ b/mount/umount.c >@@ -94,7 +94,10 @@ check_special_umountprog(const char *spec, const char *node, > if (!external_allowed) > return 0; > >- if (type && strlen(type) < 100) { >+ if (type == NULL || strcmp(type, "none") == 0) >+ return 0; >+ >+ if (strlen(type) < 100) { > sprintf(umountprog, "/sbin/umount.%s", type); > if (stat(umountprog, &statbuf) == 0) { > res = fork(); >-- >1.5.3.1 >
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 299151
: 215811