On Fri, Sep 19, 2008 at 6:00 PM, Michael Homer <[EMAIL PROTECTED]> wrote: > On Fri, Sep 19, 2008 at 8:53 AM, Hisham <[EMAIL PROTECTED]> wrote: >> I'm also not sure about the behavior of hardlinks when you >> pack a tarball for a binary package (I'm guessing they duplicate by >> default, keep that in mind). > They do, but you can use the --exclude-from option Or experimentally, actually they don't, which surprises me a bit: [EMAIL PROTECTED] ~/tmp]dd if=/dev/urandom of=hl1 count=1024 bs=1024 1024+0 records in 1024+0 records out 1048576 bytes (1.0 MB) copied, 0.31424 s, 3.3 MB/s [EMAIL PROTECTED] ~/tmp]ln hl1 hl2 [EMAIL PROTECTED] ~/tmp]ln hl2 hl3 [EMAIL PROTECTED] ~/tmp]ln hl1 hl4 [EMAIL PROTECTED] ~/tmp]tar cf test.tar hl* [EMAIL PROTECTED] ~/tmp]ls -lh hl* test.tar -rw-r--r-- 4 michael users 1.0M 2008-09-19 18:05 hl1 -rw-r--r-- 4 michael users 1.0M 2008-09-19 18:05 hl2 -rw-r--r-- 4 michael users 1.0M 2008-09-19 18:05 hl3 -rw-r--r-- 4 michael users 1.0M 2008-09-19 18:05 hl4 -rw-r--r-- 1 michael users 1.1M 2008-09-19 18:05 test.tar [EMAIL PROTECTED] ~/tmp]tar tvf test.tar -rw-r--r-- michael/users 1048576 2008-09-19 18:05 hl1 hrw-r--r-- michael/users 0 2008-09-19 18:05 hl2 link to hl1 hrw-r--r-- michael/users 0 2008-09-19 18:05 hl3 link to hl1 hrw-r--r-- michael/users 0 2008-09-19 18:05 hl4 link to hl1
That's handy. -Michael _______________________________________________ gobolinux-devel mailing list gobolinux-devel@lists.gobolinux.org http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel