General:
Changes to 1.37.*:
+14Oct05
+ - dvd.c:do_mount_dev: When checking if the DVD is mounted, do not count ., .. and .keep (needed on Gentoo).
15Aug05
- Convert dvd-writepart to Python.
- Increase delay from 3 seconds to 5 seconds between SIGTERM and SIGKILL when
dev->device->mount_point, dev->print_name());
break;
}
- count++;
+ if ((strcmp(result->d_name, ".")) && (strcmp(result->d_name, "..")) && (strcmp(result->d_name, ".keep"))) {
+ count++; /* result->d_name != ., .. or .keep (Gentoo-specific) */
+ }
+ else {
+ Dmsg2(129, "open_mounted_dev: ignoring %s in %s\n",
+ result->d_name, dev->device->mount_point);
+ }
}
free(entry);
closedir(dp);
- Dmsg1(29, "open_mounted_dev: got %d files in the mount point\n", count);
+ Dmsg1(29, "open_mounted_dev: got %d files in the mount point (not counting ., .. and .keep)\n", count);
- if (count > 2) {
- mount = 1; /* If we got more than . and .. */
+ if (count > 0) {
+ mount = 1; /* If we got more than ., .. and .keep */
break; /* there must be something mounted */
}
get_out: