Amanda-Users

Re: testing a patched tar question.

2007-04-09 14:34:38
Subject: Re: testing a patched tar question.
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: amanda-users AT amanda DOT org
Date: Mon, 09 Apr 2007 14:15:18 -0400
On Monday 09 April 2007, Marc W. Mengel wrote:
>dustin AT zmanda DOT com wrote:
>> Could you send me a copy of your incremental file?  AFAICT, they're
>> binary files, so I'm not sure how you're speaking of "lines"..
>
>They're 512 byte records with a text line in each.  Really.
>
What I am looking are are not, file length is variable and the format is:
[amanda@coyote gnutar-lists]$ cat coyote_var_5
1175495769
60928 19169380 ./run/cups
60928 19300353 ./cache/gstreamer-0.8
60928 19169448 ./lib/scrollkeeper/az
60928 19595604 ./tmp/RealPlayer/share/locale/ko
60928 19300370 ./cache/yum/updates-source
60928 19169358 ./cache/man/local
60928 19235048 ./tmp/kdecache-root/background
60928 19988737 ./tmp/kdecache-root/kio_help/root/.kde/share/doc
60928 19791895 ./spool/cups-pdf

The 60928 is the Device: decimal number from a stat of any file on the 
drive.

>see tar/src/incremen.c read_directory_file() and write_directory_file()
>It looks like one could glue those two routines together and get a
>routine that would read one file and write another, and, say, change
>the dev field.
>
>the device numbers are the ones returned by stat() in the st_dev field.



-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
  May I ask a question?

<Prev in Thread] Current Thread [Next in Thread>