[prev in list] [next in list] [prev in thread] [next in thread] 

List:       unison-users
Subject:    Re: [unison-users] canonical name does not include host?!
From:       Norman Ramsey <nr () eecs ! harvard ! edu>
Date:       2007-10-31 17:31:35
Message-ID: 20071031173138.454851EB17C () labrador ! eecs ! harvard ! edu
[Download RAW message or body]

> > I'm trying to manage my horrid setup with 5 different machines
 > > using Unison's two-way synchronization.  In order not to lose
 > > information about past synchronization, I have to be extremely  
 > > aggressive
 > > about root aliases.  So I made a patch that actually prints out
 > > the names of the roots for which no archive exists, so that I can
 > > insert the appropriate alias command.  But I am flabbergasted to learn
 > > that one of the roots is 'bare', with no hostname:
 > >
 > > Warning: No archive files were found for these roots, whose  
 > > canonical names are:
 > >         /home/nr
 > >         //golden.eecs.harvard.edu//home/nr
 > >
 > > For the first root, I expected something like
 > >
 > >   //<hostname>//home/nr
 > >
 > > since I can't possibly put a reasonable alias on '/home/nr' that will
 > > be valid on every machine.   Where did I go wrong?
 > 
 > Unison internally distinguishes between "local" and "remote" roots  
 > (so that it knows whether to access things directly in the local  
 > filesystem or indirectly over the network).

This may be the case, but I'm afraid I understand even less than
before.  On my machines at work, /home/nr has been dealt with by
various different automounters at various different times.  This mess
has left my unison profile full of legacy aliases such as these:

rootalias = //labrador//home/nr -> //labrador//.amd/lair60/vol/vol0/home/nr
rootalias = //labrador//amd/lair60/vol/vol0/home/nr -> //labrador//.amd/lair60/vol/vol0/home/nr
rootalias = //drdoom//amd/lair60/vol/vol0/home/nr -> //labrador//.amd/lair60/vol/vol0/home/nr
rootalias = //drdoom//amd/lair62/vol/vol0/home/nr -> //labrador//.amd/lair60/vol/vol0/home/nr

If as you say unison always distinguishes the 'local' and 'remote'
roots, why was it ever necessary to insert these aliases---and more to
the point, why did they work?  (It's possible that these aliases date
to older versions of Unison.)


Norman

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" \
"http://www.w3.org/TR/html4/strict.dtd"> <html>
<head>
</head>




<body style="background-color: #ffffff;">

<!--~-|**|PrettyHtmlStartT|**|-~-->
<div id="ygrp-mlmsg" style="width:655px; position:relative;">
  <div id="ygrp-msg" style="width: 490px; padding: 0 15px 0 0; float:left;  \
z-index:1;"> <!--~-|**|PrettyHtmlEndT|**|-~-->

    <div id="ygrp-text">
            <p> &gt; &gt; I'm trying to manage my horrid setup with 5 different \
machines<br>  &gt; &gt; using Unison's two-way synchronization.  In order not to \
lose<br>  &gt; &gt; information about past synchronization, I have to be extremely  \
<br>  &gt; &gt; aggressive<br>
 &gt; &gt; about root aliases.  So I made a patch that actually prints out<br>
 &gt; &gt; the names of the roots for which no archive exists, so that I can<br>
 &gt; &gt; insert the appropriate alias command.  But I am flabbergasted to learn<br>
 &gt; &gt; that one of the roots is 'bare', with no hostname:<br>
 &gt; &gt;<br>
 &gt; &gt; Warning: No archive files were found for these roots, whose  <br>
 &gt; &gt; canonical names are:<br>
 &gt; &gt;         /home/nr<br>
 &gt; &gt;         //golden.eecs.<wbr>harvard.edu/<wbr>/home/nr<br>
 &gt; &gt;<br>
 &gt; &gt; For the first root, I expected something like<br>
 &gt; &gt;<br>
 &gt; &gt;   //&lt;hostname&gt;<wbr>//home/nr<br>
 &gt; &gt;<br>
 &gt; &gt; since I can't possibly put a reasonable alias on '/home/nr' that will<br>
 &gt; &gt; be valid on every machine.   Where did I go wrong?<br>
 &gt; <br>
 &gt; Unison internally distinguishes between &quot;local&quot; and \
&quot;remote&quot; roots  <br>  &gt; (so that it knows whether to access things \
directly in the local  <br>  &gt; filesystem or indirectly over the network).<br>
<br>
This may be the case, but I'm afraid I understand even less than<br>
before.  On my machines at work, /home/nr has been dealt with by<br>
various different automounters at various different times.  This mess<br>
has left my unison profile full of legacy aliases such as these:<br>
<br>
rootalias = //labrador//<wbr>home/nr -&gt; \
//labrador//<wbr>.amd/lair60/<wbr>vol/vol0/<wbr>home/nr<br> rootalias = \
//labrador//<wbr>amd/lair60/<wbr>vol/vol0/<wbr>home/nr -&gt; \
//labrador//<wbr>.amd/lair60/<wbr>vol/vol0/<wbr>home/nr<br> rootalias = \
//drdoom//amd/<wbr>lair60/vol/<wbr>vol0/home/<wbr>nr -&gt; \
//labrador//<wbr>.amd/lair60/<wbr>vol/vol0/<wbr>home/nr<br> rootalias = \
//drdoom//amd/<wbr>lair62/vol/<wbr>vol0/home/<wbr>nr -&gt; \
//labrador//<wbr>.amd/lair60/<wbr>vol/vol0/<wbr>home/nr<br> <br>
If as you say unison always distinguishes the 'local' and 'remote'<br>
roots, why was it ever necessary to insert these aliases---and more to<br>
the point, why did they work?  (It's possible that these aliases date<br>
to older versions of Unison.)<br>
<br>
Norman<br>
</p>
    </div>  

    <!--~-|**|PrettyHtmlStart|**|-~-->
    <span width="1" style="color: white;">__._,_.___</span>
    <!-- Start the section with Message In topic -->
    <div id="ygrp-actbar">
              <span class="left">
          <a href="http://groups.yahoo.com/group/unison-users/message/6690;_ylc=X3oDMT \
MzaTAxaG9oBF9TAzk3MzU5NzE0BGdycElkAzQ3OTc2NwRncnBzcElkAzE3MDUwMDQ3MjYEbXNnSWQDNjY5NARzZWMDZnRyBHNsawN2dHBjBHN0aW1lAzExOTM4NTE5MDMEdHBjSWQDNjY5MA--">
                
            Messages in this topic          </a> (<span class="bld">0</span>)
        </span>
        <a href="http://groups.yahoo.com/group/unison-users/post;_ylc=X3oDMTJvNm5pNWV1 \
BF9TAzk3MzU5NzE0BGdycElkAzQ3OTc2NwRncnBzcElkAzE3MDUwMDQ3MjYEbXNnSWQDNjY5NARzZWMDZnRyBHNsawNycGx5BHN0aW1lAzExOTM4NTE5MDM-?act=reply&messageNum=6694">
  <span class="bld">
            Reply          </span> (via web post)
        </a>  | 
        <a href="http://groups.yahoo.com/group/unison-users/post;_ylc=X3oDMTJkbHE4bzU2 \
BF9TAzk3MzU5NzE0BGdycElkAzQ3OTc2NwRncnBzcElkAzE3MDUwMDQ3MjYEc2VjA2Z0cgRzbGsDbnRwYwRzdGltZQMxMTkzODUxOTAz" \
class="bld">  Start a new topic        </a>
          </div> 
    <!-------     Start Nav Bar  ------>
    <!-- |**|begin egp html banner|**| -->
    <div id="ygrp-vitnav">
                <a href="http://groups.yahoo.com/group/unison-users/messages;_ylc=X3oD \
MTJkc2kwMWZ2BF9TAzk3MzU5NzE0BGdycElkAzQ3OTc2NwRncnBzcElkAzE3MDUwMDQ3MjYEc2VjA2Z0cgRzbGsDbXNncwRzdGltZQMxMTkzODUxOTAz">Messages</a> \
  
        
        
            |    <a href="http://groups.yahoo.com/group/unison-users/database;_ylc=X3o \
DMTJiM3BoOWp0BF9TAzk3MzU5NzE0BGdycElkAzQ3OTc2NwRncnBzcElkAzE3MDUwMDQ3MjYEc2VjA2Z0cgRzbGsDZGIEc3RpbWUDMTE5Mzg1MTkwMw--">Database</a> \
  
        
        
    </div>  
    <!-- |**|end egp html banner|**| -->

                <div id="ygrp-grft">
              </div>
    
    <!-- yahoo logo -->
    <!-- |**|begin egp html banner|**| -->
    <div id="ygrp-ft">
      <a href="http://groups.yahoo.com/;_ylc=X3oDMTJjNjUwNDBnBF9TAzk3MzU5NzE0BGdycElkA \
                zQ3OTc2NwRncnBzcElkAzE3MDUwMDQ3MjYEc2VjA2Z0cgRzbGsDZ2ZwBHN0aW1lAzExOTM4NTE5MDM-">
                
      <img src="http://us.i1.yimg.com/us.yimg.com/i/yg/img/logo/ma_grp_160.gif" \
height="15" width="106" border="0" alt="Yahoo! Groups"></a> <br>  <a \
href="http://groups.yahoo.com/group/unison-users/join;_ylc=X3oDMTJlNmZuNWF2BF9TAzk3MzU \
5NzE0BGdycElkAzQ3OTc2NwRncnBzcElkAzE3MDUwMDQ3MjYEc2VjA2Z0cgRzbGsDc3RuZ3MEc3RpbWUDMTE5Mzg1MTkwMw--">Change \
settings via the Web</a> (Yahoo! ID required) <br>  Change settings via email: <a \
href="mailto:unison-users-digest@yahoogroups.com?subject=Email Delivery: \
Digest">Switch delivery to Daily Digest</a> | <a href = \
"mailto:unison-users-traditional@yahoogroups.com?subject=Change Delivery Format: \
Traditional">Switch format to Traditional</a> <br>

      <a href="http://groups.yahoo.com/group/unison-users;_ylc=X3oDMTJjM2tnZHZmBF9TAzk \
3MzU5NzE0BGdycElkAzQ3OTc2NwRncnBzcElkAzE3MDUwMDQ3MjYEc2VjA2Z0cgRzbGsDaHBmBHN0aW1lAzExOTM4NTE5MDM-">
  Visit Your Group 
      </a> |
      <a href="http://docs.yahoo.com/info/terms/">
        Yahoo! Groups Terms of Use      </a> |
      <a href="mailto:unison-users-unsubscribe@yahoogroups.com?subject=">
        Unsubscribe      </a> 
    </div>     <!-- |**|end egp html banner|**| -->
  </div> <!-- ygrp-msg -->

  
  <!-- Sponsor -->
  <!-- |**|begin egp html banner|**| -->
  <div id="ygrp-sponsor" style="width:140px;float: left; clear: none; margin-left: \
5px; background:white; margin-bottom:25px ;position:absolute; top:0; right: 0;">  \
<!-- Network content -->  
    <!-- Start vitality -->
    <div id="ygrp-vital">
              <div id="vithd">Recent Activity</div>
        <ul style="list-style-type:none; padding: 0; margin: 2px 0;">
                <li style="clear: both;">
      <div class="ct" style="float: right;"><span \
style="display:none">&nbsp;</span>8</div>  <div class="cat"><a \
href="http://groups.yahoo.com/group/unison-users/members;_ylc=X3oDMTJldXZvZWg1BF9TAzk3 \
MzU5NzE0BGdycElkAzQ3OTc2NwRncnBzcElkAzE3MDUwMDQ3MjYEc2VjA3Z0bARzbGsDdm1icnMEc3RpbWUDMTE5Mzg1MTkwMw--">New \
Members</a></div>  </li>
  
            
            
            
            
            
        </ul>
            <a href="http://groups.yahoo.com/group/unison-users;_ylc=X3oDMTJkZHZoZ2NqB \
F9TAzk3MzU5NzE0BGdycElkAzQ3OTc2NwRncnBzcElkAzE3MDUwMDQ3MjYEc2VjA3Z0bARzbGsDdmdocARzdGltZQMxMTkzODUxOTAz">
  Visit Your Group      </a>
    </div> 
              
    <!-- Network content -->
              <div id="nc">
              <div class="ad">
                      <div id="hd1">Yahoo! Finance</div> 
<p><a href="http://us.ard.yahoo.com/SIG=12jlgvga9/M=493064.10729649.11333340.8674578/D \
=groups/S=1705004726:NC/Y=YAHOO/EXP=1193859103/A=4507179/R=0/SIG=12de4rskk/*http://us.rd.yahoo.com/evt=50284/*http://finance.yahoo.com/personal-finance">It's \
Now Personal</a></p>  <p>Guides, news,</p> 
<p>advice & more.</p>                   </div>
                    <div class="ad">
                      <div id="hd1">Ads on Yahoo!</div> 
<p><a href="http://us.ard.yahoo.com/SIG=12j09jv6k/M=493064.10729656.11333347.8674578/D \
=groups/S=1705004726:NC/Y=YAHOO/EXP=1193859103/A=3848643/R=0/SIG=131q47hek/*http://sea \
rchmarketing.yahoo.com/arp/srchv2.php?o=US2005&cmp=Yahoo&ctv=Groups4&s=Y&s2=&s3=&b=50">Learn \
more now.</a></p>  <p>Reach customers</p> 
<p>searching for you.</p>                  </div>
                    <div class="ad">
                      <div id="hd1">Summer Shape-up</div> 
<p><a href="http://us.ard.yahoo.com/SIG=12kppfnsc/M=493064.11675218.12153349.11323196/ \
D=groups/S=1705004726:NC/Y=YAHOO/EXP=1193859103/A=4840956/R=0/SIG=11l77jq6u/*http://health.groups.yahoo.com/group/specialKgroup/">on \
Yahoo! Groups</a></p>  <p>Trade weight loss</p> 
<p>and swimsuit tips.</p>                  </div>
          </div>
    
  </div>   <!-- |**|end egp html banner|**| -->
  <div style="clear:both; color: #FFF; font-size:1px;">.</div>
</div>   <img src="http://geo.yahoo.com/serv?s=97359714/grpId=479767/grpspId=1705004726/msgId=6694/stime=1193851903/nc1=4507179/nc2=3848643/nc3=4840956" \
width="1" height="1"> <br>

<span  style="color: white;">__,_._,___</span>
<!--~-|**|PrettyHtmlEnd|**|-~-->
</body>
<!--~-|**|PrettyHtmlStart|**|-~-->
<head>
<style type="text/css">
<!--
#ygrp-mkp{
  border: 1px solid #d8d8d8;
  font-family: Arial;
  margin: 14px 0px;
  padding: 0px 14px;
}
#ygrp-mkp hr{
  border: 1px solid #d8d8d8;
}
#ygrp-mkp #hd{
  color: #628c2a;
  font-size: 85%;
  font-weight: bold;
  line-height: 122%;
  margin: 10px 0px;
}
#ygrp-mkp #ads{
  margin-bottom: 10px;
}
#ygrp-mkp .ad{
  padding: 0 0;
}
#ygrp-mkp .ad a{
  color: #0000ff;
  text-decoration: none;
}
-->
</style>
</head>
<head>
<style type="text/css">
<!--
#ygrp-sponsor #ygrp-lc{
  font-family: Arial;
}
#ygrp-sponsor #ygrp-lc #hd{
  margin: 10px 0px;
  font-weight: bold;
  font-size: 78%;
  line-height: 122%;
}
#ygrp-sponsor #ygrp-lc .ad{
  margin-bottom: 10px;
  padding: 0 0;
}
-->
</style>
</head>
<head>
<style type="text/css">
<!--
#ygrp-mlmsg {font-size:13px; font-family: \
arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;} #ygrp-mlmsg table \
{font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% \
arial,helvetica,clean,sans-serif;} #ygrp-mlmsg pre, code {font:115% \
monospace;*font-size:100%;} #ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
    font-family: Georgia;	
}
#ygrp-text p{
    margin: 0 0 1em 0;
}
#ygrp-tpmsgs{
    font-family: Arial;	
    clear: both;
}
#ygrp-vitnav{
	padding-top: 10px;
	font-family: Verdana;
	font-size: 77%;
	margin: 0;
}
#ygrp-vitnav a{
	padding: 0 1px;
}
#ygrp-actbar{
	clear: both;
	margin: 25px 0;
	white-space:nowrap;
	color: #666;
	text-align: right;
}
#ygrp-actbar .left{
	float: left;
	white-space:nowrap;
}
.bld{font-weight:bold;}
#ygrp-grft{
	font-family: Verdana;
	font-size: 77%;
	padding: 15px 0;
}
#ygrp-ft{
  font-family: verdana;
  font-size: 77%;
  border-top: 1px solid #666; 
  padding: 5px 0; 
}
#ygrp-mlmsg #logo{
  padding-bottom: 10px;
}

#ygrp-vital{
	background-color: #e0ecee;
	margin-bottom: 20px;
	padding: 2px 0 8px 8px;
}
#ygrp-vital #vithd{
	font-size: 77%;
	font-family: Verdana;
	font-weight: bold;
	color: #333;
	text-transform: uppercase;
}
#ygrp-vital ul{
	padding: 0;
	margin: 2px 0;
}
#ygrp-vital ul li{
  list-style-type: none;
  clear: both;
  border: 1px solid #e0ecee;  
}
#ygrp-vital ul li .ct{
  font-weight: bold;
  color: #ff7900;
  float: right;
  width: 2em;
  text-align:right;
  padding-right: .5em;
}
#ygrp-vital ul li .cat{
  font-weight: bold;
}
#ygrp-vital a{
	text-decoration: none;
}

#ygrp-vital a:hover{
  text-decoration: underline;
}

#ygrp-sponsor #hd{
	color: #999;
	font-size: 77%;
}
#ygrp-sponsor #ov{
	padding: 6px 13px;
	background-color: #e0ecee;
	margin-bottom: 20px;
}
#ygrp-sponsor #ov ul{
	padding: 0 0 0 8px;
	margin: 0;
}
#ygrp-sponsor #ov li{
	list-style-type: square;
	padding: 6px 0;
	font-size: 77%;
}
#ygrp-sponsor #ov li a{
	text-decoration: none;
	font-size: 130%;
}
#ygrp-sponsor #nc{
  background-color: #eee;
  margin-bottom: 20px;
  padding: 0 8px;
}
#ygrp-sponsor .ad{
	padding: 8px 0;
}
#ygrp-sponsor .ad #hd1{
	font-family: Arial;
	font-weight: bold;
	color: #628c2a;
	font-size: 100%;
	line-height: 122%;
}
#ygrp-sponsor .ad a{
	text-decoration: none;
}
#ygrp-sponsor .ad a:hover{
	text-decoration: underline;
}
#ygrp-sponsor .ad p{
	margin: 0;
}
o{font-size: 0; }
.MsoNormal{
   margin: 0 0 0 0;
}
#ygrp-text tt{
  font-size: 120%;
}
blockquote{margin: 0 0 0 4px;}
.replbq{margin:4}
-->
</style>
</head>
<!--~-|**|PrettyHtmlEnd|**|-~-->
</html><!--End group email -->



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic