Path: utzoo!attcan!uunet!mcvax!ukc!reading!riddle!andrew From: andrew@riddle.UUCP (Andrew Beattie) Newsgroups: comp.unix.questions Subject: Re: Tar (and other?) blocking question Message-ID: <965@riddle.UUCP> Date: 11 Jan 89 09:59:22 GMT References: <752@n8emr.UUCP> Reply-To: andrew@riddle.UUCP (Andrew Beattie) Organization: Sphinx Ltd., Maidenhead, England Lines: 22 In article <752@n8emr.UUCP> lwv@n8emr.UUCP (Larry W. Virden) writes: > >Is there a way that a program could look at a file produced by tar and >determine what blocking factor was used? Sure ... dd if=/dev/{put_your_tape_device_here} bs=20b count=1 |wc -c ie: use blocks as big as you can (I never met a device driver that could handle bigger than 20b), read one block, then see how many characters were in it. Divide the number by 512 to get the blocking factor +---------------------------------+-----------------+ | Andrew Beattie | Sphinx Limited | | Internal Systems Engineer | Foundation Park | | mcvax!ukc!reading!riddle!andrew | Maidenhead | | andrew@sphinx.co.uk | England | | +44 62882 2266 | SL6 3UD | +---------------------------------+-----------------+