summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6e7991e)
We don't support gettext (although perhaps we should), so remove
some comments saying that we don't translate debug output.
mount me;
while (read_mount_entry(f, &me)) {
if (conf_debug_pruning) {
mount me;
while (read_mount_entry(f, &me)) {
if (conf_debug_pruning) {
- /* This is debugging output, don't mark anything for translation */
fprintf(stderr,
" `%s' (%d on %d) is `%s' of `%s' (%u:%u), type `%s'\n",
me.mount_point.c_str(), me.id, me.parent_id, me.root.c_str(), me.source.c_str(),
fprintf(stderr,
" `%s' (%d on %d) is `%s' of `%s' (%u:%u), type `%s'\n",
me.mount_point.c_str(), me.id, me.parent_id, me.root.c_str(), me.source.c_str(),
static void rebuild_bind_mount_paths(void)
{
if (conf_debug_pruning) {
static void rebuild_bind_mount_paths(void)
{
if (conf_debug_pruning) {
- /* This is debugging output, don't mark anything for translation */
fprintf(stderr, "Rebuilding bind_mount_paths:\n");
}
if (read_mount_entries() != 0) {
return;
}
if (conf_debug_pruning) {
fprintf(stderr, "Rebuilding bind_mount_paths:\n");
}
if (read_mount_entries() != 0) {
return;
}
if (conf_debug_pruning) {
- /* This is debugging output, don't mark anything for translation */
fprintf(stderr, "Matching bind_mount_paths:\n");
}
fprintf(stderr, "Matching bind_mount_paths:\n");
}
// If there are two that are equal, prefer the one with lowest ID.
if (me.root.size() > other.root.size() && me.root.find(other.root) == 0) {
if (conf_debug_pruning) {
// If there are two that are equal, prefer the one with lowest ID.
if (me.root.size() > other.root.size() && me.root.find(other.root) == 0) {
if (conf_debug_pruning) {
- /* This is debugging output, don't mark anything for translation */
fprintf(stderr, " => adding `%s' (root `%s' is a child of `%s', mounted on `%s')\n",
me.mount_point.c_str(), me.root.c_str(), other.root.c_str(), other.mount_point.c_str());
}
fprintf(stderr, " => adding `%s' (root `%s' is a child of `%s', mounted on `%s')\n",
me.mount_point.c_str(), me.root.c_str(), other.root.c_str(), other.mount_point.c_str());
}
}
if (me.root == other.root && me.id > other.id) {
if (conf_debug_pruning) {
}
if (me.root == other.root && me.id > other.id) {
if (conf_debug_pruning) {
- /* This is debugging output, don't mark anything for translation */
fprintf(stderr, " => adding `%s' (duplicate of mount point `%s')\n",
me.mount_point.c_str(), other.mount_point.c_str());
}
fprintf(stderr, " => adding `%s' (duplicate of mount point `%s')\n",
me.mount_point.c_str(), other.mount_point.c_str());
}
}
}
if (conf_debug_pruning) {
}
}
if (conf_debug_pruning) {
- /* This is debugging output, don't mark anything for translation */
fprintf(stderr, "...done\n");
}
string_list_dir_path_sort(&bind_mount_paths);
fprintf(stderr, "...done\n");
}
string_list_dir_path_sort(&bind_mount_paths);
string_list_dir_path_sort(&conf_prunepaths);
if (conf_debug_pruning) {
string_list_dir_path_sort(&conf_prunepaths);
if (conf_debug_pruning) {
- /* This is debuging output, don't mark anything for translation */
fprintf(stderr, "conf_block:\n");
for (char c : conf_block) {
if (isascii((unsigned char)c) && isprint((unsigned char)c) && c != '\\')
fprintf(stderr, "conf_block:\n");
for (char c : conf_block) {
if (isascii((unsigned char)c) && isprint((unsigned char)c) && c != '\\')
bool filesystem_is_excluded(const char *path)
{
if (conf_debug_pruning) {
bool filesystem_is_excluded(const char *path)
{
if (conf_debug_pruning) {
- /* This is debugging output, don't mark anything for translation */
fprintf(stderr, "Checking whether filesystem `%s' is excluded:\n", path);
}
FILE *f = setmntent("/proc/mounts", "r");
fprintf(stderr, "Checking whether filesystem `%s' is excluded:\n", path);
}
FILE *f = setmntent("/proc/mounts", "r");
struct mntent *me;
while ((me = getmntent(f)) != nullptr) {
if (conf_debug_pruning) {
struct mntent *me;
while ((me = getmntent(f)) != nullptr) {
if (conf_debug_pruning) {
- /* This is debugging output, don't mark anything for translation */
fprintf(stderr, " `%s', type `%s'\n", me->mnt_dir, me->mnt_type);
}
string type(me->mnt_type);
fprintf(stderr, " `%s', type `%s'\n", me->mnt_dir, me->mnt_type);
}
string type(me->mnt_type);
if the filesystem is unavailable hard-mounted NFS. */
char *dir = me->mnt_dir;
if (conf_debug_pruning) {
if the filesystem is unavailable hard-mounted NFS. */
char *dir = me->mnt_dir;
if (conf_debug_pruning) {
- /* This is debugging output, don't mark anything for translation */
fprintf(stderr, " => type matches, dir `%s'\n", dir);
}
bool res = (strcmp(path, dir) == 0);
fprintf(stderr, " => type matches, dir `%s'\n", dir);
}
bool res = (strcmp(path, dir) == 0);
}
}
if (conf_debug_pruning) {
}
}
if (conf_debug_pruning) {
- /* This is debugging output, don't mark anything for translation */
fprintf(stderr, "...done\n");
}
endmntent(f);
fprintf(stderr, "...done\n");
}
endmntent(f);
{
if (conf_prune_bind_mounts && is_bind_mount(path.c_str())) {
if (conf_debug_pruning) {
{
if (conf_prune_bind_mounts && is_bind_mount(path.c_str())) {
if (conf_debug_pruning) {
- /* This is debugging output, don't mark anything for translation */
fprintf(stderr, "Skipping `%s': bind mount\n", path.c_str());
}
close(fd);
fprintf(stderr, "Skipping `%s': bind mount\n", path.c_str());
}
close(fd);
if (find(conf_prunenames.begin(), conf_prunenames.end(), e.name) != conf_prunenames.end()) {
if (conf_debug_pruning) {
if (find(conf_prunenames.begin(), conf_prunenames.end(), e.name) != conf_prunenames.end()) {
if (conf_debug_pruning) {
- /* This is debugging output, don't mark anything for translation */
fprintf(stderr, "Skipping `%s': in prunenames\n", e.name.c_str());
}
continue;
}
if (string_list_contains_dir_path(&conf_prunepaths, &conf_prunepaths_index, (path_plus_slash + e.name).c_str())) {
if (conf_debug_pruning) {
fprintf(stderr, "Skipping `%s': in prunenames\n", e.name.c_str());
}
continue;
}
if (string_list_contains_dir_path(&conf_prunepaths, &conf_prunepaths_index, (path_plus_slash + e.name).c_str())) {
if (conf_debug_pruning) {
- /* This is debugging output, don't mark anything for translation */
fprintf(stderr, "Skipping `%s/%s': in prunepaths\n", path.c_str(), e.name.c_str());
}
continue;
fprintf(stderr, "Skipping `%s/%s': in prunepaths\n", path.c_str(), e.name.c_str());
}
continue;