FreeBSD Bugzilla – Attachment 107165 Details for
Bug 147881
[zfs] [patch] ZFS "sharenfs" doesn't allow different "exports" options for different hosts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fsshare.c-multipleexports.patch
fsshare.c-multipleexports.patch (text/x-patch; charset=US-ASCII), 723 bytes, created by
quentin.rameau
on 2012-03-27 17:07:22 UTC
(
hide
)
Description:
fsshare.c-multipleexports.patch
Filename:
MIME Type:
Creator:
quentin.rameau
Created:
2012-03-27 17:07:22 UTC
Size:
723 bytes
patch
obsolete
>--- src/cddl/compat/opensolaris/misc/fsshare.c.orig 2012-03-27 14:23:09.528559453 +0200 >+++ src/cddl/compat/opensolaris/misc/fsshare.c 2012-03-27 17:28:26.690565238 +0200 >@@ -151,7 +151,8 @@ > int share) > { > char tmpfile[PATH_MAX]; >- char *line; >+ char oldopts[OPTSSIZE]; >+ char *line, *s, *export; > FILE *newfd, *oldfd; > int fd, error; > >@@ -211,8 +212,14 @@ > goto out; > } > if (share) { >- fprintf(newfd, "%s\t%s\n", mountpoint, >- translate_opts(shareopts)); >+ strlcpy(oldopts, shareopts, sizeof(oldopts)); >+ s = oldopts; >+ while ((export = strsep(&s, ";")) != NULL) { >+ if (export[0] == '\0') >+ continue; >+ fprintf(newfd, "%s\t%s\n", mountpoint, >+ translate_opts(export)); >+ } > } > > out:
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 147881
:
107164
| 107165