mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
whitespace-at-eol cleanup
Remove whitespace at EOL (found by git grep ' $')
To people using vim, I'd suggest adding the following code to ~/.vimrc:
let c_space_errors = 1
highlight FormatError ctermbg=darkred guibg=darkred
match FormatError /\s\+$\|\ \+\t\|\%80v.\|\ \{8\}/
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
2e15e4da92
commit
d64d68d66c
12 changed files with 15 additions and 15 deletions
2
files.c
2
files.c
|
|
@ -144,7 +144,7 @@ void show_saved_files(void)
|
|||
/*
|
||||
* The gen_id thing is used to optimize the comparison of shared files.
|
||||
* If two files have different gen_ids, then they are different for sure.
|
||||
* If it matches, we don't know it and have to call sys_kcmp().
|
||||
* If it matches, we don't know it and have to call sys_kcmp().
|
||||
*
|
||||
* The kcmp-ids.c engine does this trick, see comments in it for more info.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -430,8 +430,8 @@ static struct fsnotify_file_info *find_inotify_info(unsigned id)
|
|||
|
||||
if (last && last->ife->id == id) {
|
||||
/*
|
||||
* An optimization for clean dump image -- criu puts
|
||||
* wd-s for one inotify in one row, thus sometimes
|
||||
* An optimization for clean dump image -- criu puts
|
||||
* wd-s for one inotify in one row, thus sometimes
|
||||
* we can avoid scanning the inotify_info_head.
|
||||
*/
|
||||
pr_debug("\t\tlast ify for %u found\n", id);
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ enum {
|
|||
* Disables SHARED and SHREMAP allocations, turns on PRIVATE
|
||||
*/
|
||||
extern void rst_mem_switch_to_private(void);
|
||||
/*
|
||||
/*
|
||||
* Reports a cookie of a current shared buffer position, that
|
||||
* can later be used in rst_mem_cpos() to find out the object
|
||||
* pointer.
|
||||
|
|
|
|||
2
mem.c
2
mem.c
|
|
@ -361,7 +361,7 @@ static int __parasite_dump_pages_seized(struct parasite_ctl *ctl,
|
|||
}
|
||||
|
||||
debug_show_page_pipe(pp);
|
||||
|
||||
|
||||
/*
|
||||
* Step 2 -- grab pages into page-pipe
|
||||
*/
|
||||
|
|
|
|||
2
mount.c
2
mount.c
|
|
@ -643,7 +643,7 @@ out:
|
|||
}
|
||||
|
||||
static struct fstype fstypes[] = {
|
||||
{
|
||||
{
|
||||
.name = "unsupported",
|
||||
.code = FSTYPE__UNSUPPORTED,
|
||||
}, {
|
||||
|
|
|
|||
|
|
@ -269,7 +269,7 @@ static int open_ns_fd(struct file_desc *d)
|
|||
if (!nd || !item) {
|
||||
pr_err("Can't find suitable NS ID for %#x\n", nfi->nfe->ns_id);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
if (nd->cflag != nfi->nfe->ns_cflag) {
|
||||
pr_err("Clone flag mismatch for %#x\n", nfi->nfe->ns_id);
|
||||
|
|
|
|||
|
|
@ -911,7 +911,7 @@ long __export_restore_task(struct task_restore_args *args)
|
|||
|
||||
rst_tcp_socks_all(args);
|
||||
|
||||
/*
|
||||
/*
|
||||
* Writing to last-pid is CAP_SYS_ADMIN protected,
|
||||
* turning off TCP repair is CAP_SYS_NED_ADMIN protected,
|
||||
* thus restore* creds _after_ all of the above.
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ static int grow_private(struct rst_mem_type_s *t, unsigned long size)
|
|||
}
|
||||
|
||||
static struct rst_mem_type_s rst_mems[RST_MEM_TYPES] = {
|
||||
[RM_SHARED] = {
|
||||
[RM_SHARED] = {
|
||||
.grow = grow_shared,
|
||||
.remapable = false,
|
||||
.enabled = true,
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@
|
|||
static unsigned int cr_uid, cr_gid;
|
||||
|
||||
/*
|
||||
* Setup what user is requesting for dump (via rpc or using
|
||||
* suid bit on crtools). Later we would deny to dump/restore
|
||||
* a task, to which the original user doesn't have the direct
|
||||
* Setup what user is requesting for dump (via rpc or using
|
||||
* suid bit on crtools). Later we would deny to dump/restore
|
||||
* a task, to which the original user doesn't have the direct
|
||||
* access to. (Or implement some trickier security policy).
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -653,7 +653,7 @@ Options:
|
|||
-g : Generate executables only
|
||||
-n : Batch test
|
||||
-r : Run test with specified name directly without match or check
|
||||
-v : Verbose mode
|
||||
-v : Verbose mode
|
||||
EOF
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#define _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#include <signal.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ const char *test_author = "Evgeny Antysev <eantyshev@parallels.com>";
|
|||
(((a)->tv_sec == (b)->tv_sec) ? \
|
||||
((a)->tv_nsec >= (b)->tv_nsec) : \
|
||||
((a)->tv_sec > (b)->tv_sec))
|
||||
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
struct timespec tm_old, tm, ts;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue