Re: empty archives

Lasse Kliemann <[email protected]> Wed, 11 Jul 2007 21:06:03 +0200
Newsgroups gmane.comp.archivers.star.user
Message-ID <[email protected]>
* Joerg Schilling schreibt:
> Lasse Kliemann <[email protected]> wrote:
> 
> > > Please test the new a83-pre2 version. [...]
 
> > However, the second new feature is not yet functioning correctly. Empty dumps 
> > *without* a volume header give
> >
> >   $ 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).

  # star -c -xdev -sparse -acl -link-dirs level=1 -wtardumps f=level-1.star -C /fs/main/mount .
  Type of this level 1  dump: full
  Date of this level 1  dump: Wed Jul 11 20:50:34 2007
  Date of last level 0  dump: Wed Jul 11 20:50:05 2007
  star: 1 blocks + 0 bytes (total of 10240 bytes = 10.00k).
  Dump record  level 1  dump: Wed Jul 11 20:50:34 2007 written

  # star t f= level-1.star 
  ./ directory link to .
  star: 1 blocks + 0 bytes (total of 10240 bytes = 10.00k).

Now I do the same without -link-dirs:

  # star -c -xdev -sparse -acl level=1 -wtardumps f=level-1.star -C /fs/main/mount .
  Type of this level 1  dump: full
  Date of this level 1  dump: Wed Jul 11 20:50:59 2007
  Date of last level 0  dump: Wed Jul 11 20:50:05 2007
  star: 1 blocks + 0 bytes (total of 10240 bytes = 10.00k).
  Dump record  level 1  dump: Wed Jul 11 20:50:59 2007 written

  m-034# star t f= level-1.star 
  ./
  star: 1 blocks + 0 bytes (total of 10240 bytes = 10.00k).

This looks better.

But is is okay what happens when using -link-dirs? I am not 
sure whether -link-dirs should have any effect under Linux 
(what I am using), since Linux does not allow hard links to 
directories.

Lasse

_______________________________________________
Star-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/star-users
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFGlSob1gObwed86AkRAgITAKCMklSbNGm+FHoD+RcOU9z9K0viUACg4mQ7
xaH/NfuN785V0CMz8C0a4qU=
=99py
-----END PGP SIGNATURE-----