Changeset 2437 for trunk


Ignore:
Timestamp:
Aug 11, 2009, 11:01:07 PM (15 years ago)
Author:
broder
Message:

In the invirt-janitor, ignore errors from the dd.

In the normal case, it's erroring out because of ENOSPC, but its
return code isn't useful enough to make sure that's what happened.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-remote/host/usr/sbin/invirt-janitor

    r2436 r2437  
    4343            syslog.syslog(syslog.LOG_INFO, "Cleaning up LV '%s'" % lv_path)
    4444
    45             subprocess.check_call(['/usr/bin/ionice',
    46                                    '-c', '2',
    47                                    '-n', '7',
    48                                    '/bin/dd',
    49                                    'if=/dev/zero',
    50                                    'of=%s' % lv_path,
    51                                    'bs=1M'])
     45            # In a perfect world, this should be erroring out with
     46            # ENOSPC, so we ignore errors
     47            subprocess.call(['/usr/bin/ionice',
     48                             '-c', '2',
     49                             '-n', '7',
     50                             '/bin/dd',
     51                             'if=/dev/zero',
     52                             'of=%s' % lv_path,
     53                             'bs=1M'])
    5254
    5355            # Ignore any errors here, because there's really just not
Note: See TracChangeset for help on using the changeset viewer.