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 156814 Details for
Bug 243913
NFS Client R/O in anaconda preinstall environment
[?]
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]
Backported patch from upstream
nfs-utils-1.0.9-mount-nosharecache.patch (text/plain), 5.79 KB, created by
Steve Dickson
on 2007-06-12 18:00:00 UTC
(
hide
)
Description:
Backported patch from upstream
Filename:
MIME Type:
Creator:
Steve Dickson
Created:
2007-06-12 18:00:00 UTC
Size:
5.79 KB
patch
obsolete
>--- nfs-utils-1.0.9/utils/mount/nfs.man.orig 2007-06-02 09:13:34.000000000 -0400 >+++ nfs-utils-1.0.9/utils/mount/nfs.man 2007-06-02 09:20:41.000000000 -0400 >@@ -278,6 +278,23 @@ > mounting servers that don't support or have broken > READDIRPLUS implementations. > .TP 1.5i >+.I nosharecache >+As of kernel 2.6.18, it is no longer possible to mount the same >+same filesystem with different mount options to a new mountpoint. >+It was deemed unsafe to do so, since cached data cannot be shared >+between the two mountpoints. In consequence, files or directories >+that were common to both mountpoint subtrees could often be seen to >+be out of sync following an update. >+.br >+This option allows administrators to select the pre-2.6.18 behaviour, >+permitting the same filesystem to be mounted with different mount >+options. >+.br >+.B Beware: >+Use of this option is not recommended unless you are certain that there >+are no hard links or subtrees of this mountpoint that are mounted >+elsewhere. >+.TP 1.5i > .I fsc > Enable the use of persistent caching to the local disk using > the FS-Cache facility for the given mount point. >@@ -438,6 +455,23 @@ > to get reasonable good results when both clients are actively > writing to common filesystem on the server. > .TP 1.5i >+.I nosharecache >+As of kernel 2.6.18, it is no longer possible to mount the same >+same filesystem with different mount options to a new mountpoint. >+It was deemed unsafe to do so, since cached data cannot be shared >+between the two mountpoints. In consequence, files or directories >+that were common to both mountpoint subtrees could often be seen to >+be out of sync following an update. >+.br >+This option allows administrators to select the pre-2.6.18 behaviour, >+permitting the same filesystem to be mounted with different mount >+options. >+.br >+.B Beware: >+Use of this option is not recommended unless you are certain that there >+are no hard links or subtrees of this mountpoint that are mounted >+elsewhere. >+.TP 1.5i > .I fsc > Enable the use of persistent caching to the local disk using > the FS-Cache facility for the given mount point. >--- nfs-utils-1.0.9/utils/mount/nfs4_mount.h.orig 2007-06-02 09:13:34.000000000 -0400 >+++ nfs-utils-1.0.9/utils/mount/nfs4_mount.h 2007-06-05 04:04:19.000000000 -0400 >@@ -65,8 +65,10 @@ > #define NFS4_MOUNT_NOCTO 0x0010 /* 1 */ > #define NFS4_MOUNT_NOAC 0x0020 /* 1 */ > #define NFS4_MOUNT_STRICTLOCK 0x1000 /* 1 */ >-#define NFS4_MOUNT_FSCACHE 0x4000 /* 1 */ >-#define NFS4_MOUNT_FLAGMASK 0xFFFF >+#define NFS4_MOUNT_FSCACHE 0x4000 /* 5 */ >+#define NFS4_MOUNT_UNSHARED 0x10000 /* 5 */ >+#define NFS4_MOUNT_FLAGMASK 0xFFFFF >+ > > /* pseudoflavors: */ > >--- nfs-utils-1.0.9/utils/mount/nfs4mount.c.orig 2007-06-02 09:13:34.000000000 -0400 >+++ nfs-utils-1.0.9/utils/mount/nfs4mount.c 2007-06-04 08:30:32.000000000 -0400 >@@ -201,7 +201,7 @@ > char *s; > int val; > int bg, soft, intr; >- int nocto, noac, fscache; >+ int nocto, noac, unshared, fscache; > int retry; > int retval; > time_t timeout, t; >@@ -252,6 +252,7 @@ > intr = NFS4_MOUNT_INTR; > nocto = 0; > noac = 0; >+ unshared = 0; > fscache = 0; > retry = 10000; /* 10000 minutes ~ 1 week */ > >@@ -339,6 +340,8 @@ > nocto = !val; > else if (!strcmp(opt, "ac")) > noac = !val; >+ else if (!strcmp(opt, "sharecache")) >+ unshared = !val; > else if (!sloppy) { > printf(_("unknown nfs mount option: " > "%s%s\n"), val ? "" : "no", opt); >@@ -351,8 +354,14 @@ > | (intr ? NFS4_MOUNT_INTR : 0) > | (nocto ? NFS4_MOUNT_NOCTO : 0) > | (noac ? NFS4_MOUNT_NOAC : 0) >+ | (unshared ? NFS4_MOUNT_UNSHARED : 0) > | (fscache ? NFS4_MOUNT_FSCACHE : 0); > >+ if (unshared && fscache) { >+ fprintf(stderr, _("mount: invalid mount options: " >+ "nosharecache and fsc are incompatible.\n")); >+ goto fail; >+ } > /* > * Give a warning if the rpc.idmapd daemon is not running > */ >@@ -387,11 +396,13 @@ > data.acregmin, data.acregmax, data.acdirmin, data.acdirmax); > printf("port = %d, bg = %d, retry = %d, flags = %.8x\n", > ntohs(server_addr.sin_port), bg, retry, data.flags); >- printf("soft = %d, intr = %d, nocto = %d, noac = %d\n", >+ printf("soft = %d, intr = %d, nocto = %d, noac = %d, " >+ "nosharecache = %d\n", > (data.flags & NFS4_MOUNT_SOFT) != 0, > (data.flags & NFS4_MOUNT_INTR) != 0, > (data.flags & NFS4_MOUNT_NOCTO) != 0, >- (data.flags & NFS4_MOUNT_NOAC) != 0); >+ (data.flags & NFS4_MOUNT_NOAC) != 0, >+ (data.flags & NFS4_MOUNT_UNSHARED) != 0); > > if (num_flavour > 0) { > int pf_cnt, i; >--- nfs-utils-1.0.9/utils/mount/nfs_mount.h.orig 2007-06-02 09:13:34.000000000 -0400 >+++ nfs-utils-1.0.9/utils/mount/nfs_mount.h 2007-06-05 04:06:02.000000000 -0400 >@@ -63,8 +63,10 @@ > #define NFS_MOUNT_BROKEN_SUID 0x0400 /* 4 */ > #define NFS_MOUNT_NOACL 0x0800 /* 4 */ > #define NFS_MOUNT_SECFLAVOUR 0x2000 /* 5 */ >-#define NFS_MOUNT_FSCACHE 0x4000 /* 6 */ >-#define NFS_MOUNT_NORDIRPLUS 0x8000 /* 6 */ >+#define NFS_MOUNT_FSCACHE 0x4000 /* 5 */ >+#define NFS_MOUNT_NORDIRPLUS 0x8000 /* 5 */ >+#define NFS_MOUNT_UNSHARED 0x10000 /* 5 */ >+ > > /* security pseudoflavors */ > >--- nfs-utils-1.0.9/utils/mount/nfsmount.c.orig 2007-06-02 09:13:34.000000000 -0400 >+++ nfs-utils-1.0.9/utils/mount/nfsmount.c 2007-06-04 07:47:06.000000000 -0400 >@@ -796,6 +796,10 @@ > data->flags &= ~NFS_MOUNT_NORDIRPLUS; > if (!val) > data->flags |= NFS_MOUNT_NORDIRPLUS; >+ } else if (!strcmp(opt, "sharecache")) { >+ data->flags &= ~NFS_MOUNT_UNSHARED; >+ if (!val) >+ data->flags |= NFS_MOUNT_UNSHARED; > #endif > } else { > bad_option: >@@ -814,6 +818,12 @@ > } > strcat(new_opts, cbuf); > } >+ if ((data->flags & NFS_MOUNT_FSCACHE) >+ && (data->flags & NFS_MOUNT_UNSHARED)) { >+ fprintf(stderr, _("mount: invalid mount options: " >+ "nosharecache and fsc are incompatible.\n")); >+ goto out_bad; >+ } > /* See if the nfs host = mount host. */ > if (mounthost) { > if (!nfs_gethostbyname(mounthost, mnt_saddr))
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 243913
: 156814 |
186571