public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin-apps@cygwin.com
Subject: Re: setup-2.ini problems/anomalies
Date: Fri, 15 Aug 2008 16:22:00 -0000	[thread overview]
Message-ID: <20080815162138.GB29630@ednor.casa.cgf.cx> (raw)
In-Reply-To: <20080815152652.GX21040@calimero.vinschen.de>

On Fri, Aug 15, 2008 at 05:26:53PM +0200, Corinna Vinschen wrote:
>On Aug 15 11:20, Christopher Faylor wrote:
>> On Fri, Aug 15, 2008 at 04:05:40PM +0200, Corinna Vinschen wrote:
>> >On Aug 15 15:59, Dr. Volker Zell wrote:
>> >> >>>>> Corinna Vinschen writes:
>> >> 
>> >>     > That's probably a result of using only the latest package in the
>> >>     > release-2 area when creating the union fs.  They should be fixed by
>> >>     > either making all the test versions curr, or by copying the curr
>> >>     > versions over from release to release-2.  Can you do that at one
>> >>     > point, Volker?  I need some time for debugging now.
>> >> 
>> >> Done for emacs*, xemacs* and grace packages.
>> >
>> >Cool, thanks.
>> 
>> For the record, this is not the way to fix this particular problem
>> either.  I've removed all of the recently-created duplicate copies.
>
>Your response would be much more helpful if you would tell us how to fix
>these problems instead of just telling that this one way is not the way
>to fix the problem.

Q: What's the point of the unionfs?

A: To avoid the requirement of making duplicate copies of the entire
release area while still allowing customization.

So, explictly duplicating files goes against the whole idea of a
unionfs.

Given that, when a file is not showing up in the release-2 area that
exists in the release area you can either report the problem here and
let me fix it, which I am happy to do (especially when there are
problems with my own packages) or you can investigate how the unionfs
works which is what I just did, knowing that making copies was not
right.

The script that I use to unmount and remount this (and I'm not suggesting
that anyone should run this - please don't) is ~cgf/bin/union-remount.
That script shows you the command line used to mount release-2 is:

unionfs -o cow -o allow_other -o use_ino -o uid=22790 \
	-o gid=65521 \
/sourceware/snapshot-tmp/cygwin-release-2=rw:/sourceware/ftp/anonftp/pub/cygwin/release=ro \
/export/u0/sourceware/sourceware/ftp/anonftp/pub/cygwin/release-2

Reading the unionfs man page, you'd see that
/sourceware/snapshot-tmp/cygwin-release-2 is the "top branch".  Since
there are only two directories and one is marked "ro" it would make
sense that the meta data associated with the unionfs would be stored
there.

So, I cd'ed to sourceware/snapshot-tmp/cygwin-release-2 and typed "ls
-a", saw that there was a ".unionfs" directory there and cd'ed to that
location.  It contains a directory structure similar to ~release-2 but
the directories contain files like "xemacs-21.4.19-3.tar.bz2_HIDDEN~".
Since the file release-2/xemacs/xemacs-21.4.19-3.tar.bz2 does not exist,
it makes sense that this file must be what is used to flag the unionfs
file system.  Removing it causes the file to spring into existence in
release-2.

With the exception of the fact that I knew about union-remount command
and vaguely remembered that fuse-unionfs stored files with a _HIDDEN~
extension, all of the above is what I figured out in the last hour.  I
don't expect that anyone else would know how to do this.  I'm just
asking that we don't start polluting the release-2 area with duplicate
copies of files.  That is just a future "doubt" about unionfs waiting to
happen - "I deleted file X but it is still showing up in ~release-2.
unionfs sucks."

So the short answer is if this happens again, just notify me and I'll
fix it.  I would have fixed this when I read the cygwin-apps email but
all of this happened before I got on the computer this morning.

cgf

  reply	other threads:[~2008-08-15 16:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-15 10:02 Dr. Volker Zell
2008-08-15 11:48 ` Corinna Vinschen
2008-08-15 14:00   ` Dr. Volker Zell
2008-08-15 14:05     ` Corinna Vinschen
2008-08-15 15:20       ` Christopher Faylor
2008-08-15 15:26         ` Corinna Vinschen
2008-08-15 16:22           ` Christopher Faylor [this message]
2008-08-15 15:14   ` Christopher Faylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080815162138.GB29630@ednor.casa.cgf.cx \
    --to=cgf-use-the-mailinglist-please@cygwin.com \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).