Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   64 Studio User (http://www.linux-archive.org/64-studio-user/)
-   -   Add nfsiso: handling to parseNfsHostPathOpts (http://www.linux-archive.org/64-studio-user/582089-add-nfsiso-handling-parsenfshostpathopts.html)

"Brian C. Lane" 09-30-2011 05:54 PM

Add nfsiso: handling to parseNfsHostPathOpts
 
From: "Brian C. Lane" <bcl@redhat.com>

This was causing the wrong url to be used when looking for RHUpdates/,
updates.img and product.img on an nfs .iso install.

NOTE: Tested along with fix for #741466
---
loader/nfsinstall.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/loader/nfsinstall.c b/loader/nfsinstall.c
index d29e98a..f46e79e 100644
--- a/loader/nfsinstall.c
+++ b/loader/nfsinstall.c
@@ -123,12 +123,14 @@ static int nfsGetSetup(char ** hostptr, char ** dirptr, char ** optsptr) {

/* Parse nfs: url and return its componenets
*
- * nfs[:options]:<server>:<path>
+ * (nfs|nfsiso)[:options]:<server>:<path>
*/
void parseNfsHostPathOpts(char *url, char **host, char **path, char **opts) {
- /* Skip over the leading nfs: if present. */
+ /* Skip over the leading nfs: or nfsiso: if present. */
if (!strncmp(url, "nfs:", 4))
url += 4;
+ else if (!strncmp(url, "nfsiso:", 7))
+ url += 7;

logMessage(DEBUGLVL, "parseNfsHostPathOpts url: |%s|", url);

--
1.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

Chris Lumens 09-30-2011 08:32 PM

Add nfsiso: handling to parseNfsHostPathOpts
 
> This was causing the wrong url to be used when looking for RHUpdates/,
> updates.img and product.img on an nfs .iso install.
>
> NOTE: Tested along with fix for #741466

This looks fine. I'd be okay with it for f16-branch since it does look
pretty obviously correct.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 02:55 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.