bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Orphan the mountee.


From: Sergiu Ivanov
Subject: Re: [PATCH] Orphan the mountee.
Date: Fri, 10 Jul 2009 18:58:53 +0300
User-agent: Mutt/1.5.18 (2008-05-17)

>From 77a5938d2daf940779dabaf50700d6b0e9ff927b Mon Sep 17 00:00:00 2001
From: Sergiu Ivanov <unlimitedscolobb@gmail.com>
Date: Wed, 8 Jul 2009 13:01:20 +0000
Subject: [PATCH] Orphan the mountee.

* mount.c (start_mountee): Don't attach the mountee to the proxy
node.
---

Another correction: the previous patch orphaned the mountee *and*
supplied the port to the real underying node of unionfs.  These two
bits of functionality must be split.  This patch implements the
orphaning functionality only.

---
 mount.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/mount.c b/mount.c
index f9a5257..fb6226d 100644
--- a/mount.c
+++ b/mount.c
@@ -156,14 +156,6 @@ start_mountee (node_t * np, char * argz, size_t argz_len, 
int flags,
   if (err)
     return err;
 
-  /* Attempt to attach the mountee to the port opened in the previous
-     call.  */
-  err = file_set_translator (underlying_port, 0, FS_TRANS_SET, 0, argz,
-                            argz_len, control, MACH_MSG_TYPE_COPY_SEND);
-  port_dealloc (underlying_port);
-  if (err)
-    return err;
-
   /* Obtain the port to the root of the newly-set translator.  */
   err = fsys_getroot (control, unauth_dir, MACH_MSG_TYPE_COPY_SEND,
                      uids, nuids, gids, ngids, flags, &retry_port,
-- 
1.6.3.3





reply via email to

[Prev in Thread] Current Thread [Next in Thread]