Re: empty archives
[email protected] (Joerg Schilling) Thu, 12 Jul 2007 14:16:34 +0200
| Newsgroups | gmane.comp.archivers.star.user |
|---|---|
| Message-ID | <46961ba2.P+sKvZrPPMcEmVCz%[email protected]> |
Lasse Kliemann <[email protected]> wrote: > > > $ star t f= level-1.star > > > ./ directory link to . > > > > Could you give me the exact command line xou used to create the archive? > > I cannot reproduce this. > > > > This looks as if your stat(2) did not report the directory type... > > or you did use -link-dirs and the archive was not really empty. > > It seems to be related to -link-dirs. Here is an example: > > # mount > [...] > /dev/mapper/vg--hda3-main on /fs/main/mount type reiserfs (rw,nosuid,noatime) > > # find /fs/main/mount > /fs/main/mount > /fs/main/mount/x > > So, this is the contents of the filesystem (`x' is a regular > file), and no process will be changing this filesystem during > the following. > > # star -c -xdev -sparse -acl -link-dirs level=0 -wtardumps f=level-0.star -C /fs/main/mount . > Type of this level 0 dump: full > Date of this level 0 dump: Wed Jul 11 20:50:05 2007 > Date of last level 0 dump: the epoch > star: 1 blocks + 0 bytes (total of 10240 bytes = 10.00k). > Dump record level 0 dump: Wed Jul 11 20:50:05 2007 written > > # star t f= level-0.star > ./ > x > star: 1 blocks + 0 bytes (total of 10240 bytes = 10.00k). > > So far as expected (by me). The reason is that altough "." was too old to make it into the archive, it made it into the hardlink cache. Any second attempt to archive "." will make it a hardlink if -link-dirs is used. The workaround for this problem only would be simple. The workaround for the fact that the current test version does not force to archive "." in case that VOLHDR=xx has been used needs a new idea... Maybe, I already have it. But I am not sure when I will be able to hack this, give me some days. Jörg -- EMail:[email protected] (home) Jörg Schilling D-13353 Berlin [email protected] (uni) [email protected] (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily _______________________________________________ Star-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/star-users