[PATCH 1/1] fs/proc/task_mmu.c: Include backslash when escaping file names

2016-05-30 Thread Nominal Animal
file if (file) { seq_puts(m, " file="); - seq_file_path(m, file, "\n\t= "); + seq_file_path(m, file, "\n\t= \\"); } else if (vma->vm_start <= mm->brk && vma->vm_end >= mm->start_brk) { seq_puts(m, " heap"); } else if (is_stack(proc_priv, vma, is_pid)) { Regards, Nominal Animal

[PATCH 1/1] fs/proc/task_mmu.c: Include backslash when escaping file names

2016-05-30 Thread Nominal Animal
file if (file) { seq_puts(m, " file="); - seq_file_path(m, file, "\n\t= "); + seq_file_path(m, file, "\n\t= \\"); } else if (vma->vm_start <= mm->brk && vma->vm_end >= mm->start_brk) { seq_puts(m, " heap"); } else if (is_stack(proc_priv, vma, is_pid)) { Regards, Nominal Animal

[PATCH 1/1] md/bitmap.c:bitmap_status(): Fix filename escaping

2016-05-30 Thread Nominal Animal
k_kb ? "KB" : "B"); if (bitmap->storage.file) { seq_printf(seq, ", file: "); - seq_file_path(seq, bitmap->storage.file, " \t\n"); + seq_file_path(seq, bitmap->storage.file, " \t\n\\"); } seq_printf(seq, "\n"); Regards, Nominal Animal

[RFC PATCH] dup3(): option to detect close() error

2014-07-01 Thread Nominal Animal
the two f_op->flush() calls, so the latter should not fail. Is there a reason (besides having yet another O_ flag) why this would not work, or why we would not want to do this? Am I missing something? I just want be able to know if a problem was detected, that's all. Best, Nominal Anima