Changeset 2438 for trunk


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

Add a safety check to the janitor to make sure we only delete old_ LV.

File:
1 edited

Legend:

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

    r2437 r2438  
    4141
    4242        try:
     43            # If the LV name doesn't start with old_, we probably
     44            # don't actually want to be deleting it.
     45            #
     46            # Put it in the try block because we still want to delete
     47            # the state file.
     48            if not lv.startswith('old_'):
     49                continue
     50
    4351            syslog.syslog(syslog.LOG_INFO, "Cleaning up LV '%s'" % lv_path)
    4452
Note: See TracChangeset for help on using the changeset viewer.