[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] spurious warning in short_read

From: Samuel Thibault
Subject: [Bug-tar] spurious warning in short_read
Date: Fri, 22 May 2009 14:09:01 +0200
User-agent: Mutt/1.5.12-2006-07-14


Since at least tar 1.22, there is an additional warning in short_read:

  if (left && left % BLOCKSIZE == 0
      && verbose_option
      && record_start_block == 0 && status != 0)
      unsigned long rsize = status / BLOCKSIZE;
      WARN ((0, 0,
             ngettext ("Record size = %lu block",
                       "Record size = %lu blocks",

Why is that done?  Reads on pipes typically return short reads, and
these are typically aligned on page size, and thus record_size (10240
here) % BLOCKSIZE is typically 0...

The problem is that this makes the testsuite fail in comprec.at, where
verbose_option is set to 1 and thus the warning comes in the way while
the test actually succeeds.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]