Skip to content

Commit

Permalink
suppress logging for dd and mt calls in findBlockSize
Browse files Browse the repository at this point in the history
  • Loading branch information
bitsgalore committed Nov 26, 2018
1 parent d37a064 commit b70b614
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tapeimgr/tape.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,15 +279,15 @@ def findBlockSize(self):
args.append('of=/dev/null')
args.append('bs=' + str(self.blockSize))
args.append('count=1')
ddStatus, ddOut, ddErr = shared.launchSubProcess(args)
ddStatus, ddOut, ddErr = shared.launchSubProcess(args, False)

# Position tape 1 record backward (i.e. to the start of this file)
args = ['mt']
args.append('-f')
args.append(self.tapeDevice)
args.append('bsr')
args.append('1')
mtStatus, mtOut, mtErr = shared.launchSubProcess(args)
mtStatus, mtOut, mtErr = shared.launchSubProcess(args, False)

if ddStatus == 0:
# Block size found
Expand Down

0 comments on commit b70b614

Please sign in to comment.