If, for some reason or another, an LV doesn't exist, we would
previously dd from /dev/zero into a new file in /dev/xenvg, thus
filling the devfs.
+invirt-remote (0.4.11) unstable; urgency=low
+
+ * Don't let the janitor try to cleanup nonexistent LVs
+
+ -- Mitchell Berger <mitchb@mit.edu> Tue, 25 Oct 2011 01:32:00 -0400
+
invirt-remote (0.4.10) unstable; urgency=low
* Bump version.
if not lv.startswith('old_'):
continue
+ # If the LV doesn't exist, for whatever reason, don't
+ # proceed because the dd will simply fill the devfs
+ # by creating a regular file and filling it with zeros.
+ if not os.path.exists(lv_path):
+ continue
+
syslog.syslog(syslog.LOG_INFO, "Cleaning up LV '%s'" % lv_path)
# In a perfect world, this should be erroring out with