From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] Playing with unwrap on Unix From: "Russ Cox" MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Fri, 22 Mar 2002 09:34:11 -0500 Topicbox-Message-UUID: 6c2bfae0-eaca-11e9-9e20-41e7f4b1d025 > >There is a remove file included in the wrap > >metadata directory containing a list of files > >to be removed. There are no remove directories though. > > Hmmm. Unwrap seems to think that it is of length zero, which it assumes > is a directory. The source to the actual Plan 9 wrap programs is a bit > more convoluted that 9e.c, so I haven't gotten to it yet. Many of the remove files are of length zero, but that doesn't mean they are directories. An entry is a directory if and only if $2 (which is octal) has the high bit set. For example, in: /wrap 20000000775 sys sys 1007472771 0 /sys/src/cmd/du.c 664 sys sys 1007472771 3297 wrap is a directory, du.c is not. Wrap archives are in the same format as used by /sys/src/cmd/disk/mkext.c, which is a nice short reference.