[CRIU] [PATCH 2/3] tab-at-eol cleanup

Kir Kolyshkin kir at openvz.org
Thu Dec 19 13:24:28 PST 2013


Remove whitespace at EOL (found by git grep '	$')
(the character before $ is real tab, typed in shell using Ctrl+V Tab)

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 at openvz.org>
---
 files-reg.c                          | 2 +-
 mount.c                              | 2 +-
 test/mem-snap/run-snap-auto-dedup.sh | 2 +-
 test/mem-snap/run-snap-dedup.sh      | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/files-reg.c b/files-reg.c
index 181f1f2..56fe868 100644
--- a/files-reg.c
+++ b/files-reg.c
@@ -286,7 +286,7 @@ static int dump_ghost_remap(char *path, const struct stat *st, int lfd, u32 id)
 	struct ghost_file *gf;
 	RemapFilePathEntry rpe = REMAP_FILE_PATH_ENTRY__INIT;
 	dev_t phys_dev;
-	
+
 	pr_info("Dumping ghost file for fd %d id %#x\n", lfd, id);
 
 	if (st->st_size > MAX_GHOST_FILE_SIZE) {
diff --git a/mount.c b/mount.c
index dcc73c6..9eeb908 100644
--- a/mount.c
+++ b/mount.c
@@ -152,7 +152,7 @@ static struct mount_info *mount_resolve_path(const char *path)
 dev_t phys_stat_resolve_dev(dev_t st_dev, const char *path)
 {
 	struct mount_info *m;
-	
+
 	m = mount_resolve_path(path);
 	/*
 	 * BTRFS returns subvolume dev-id instead of
diff --git a/test/mem-snap/run-snap-auto-dedup.sh b/test/mem-snap/run-snap-auto-dedup.sh
index b7dac8b..7339b5a 100755
--- a/test/mem-snap/run-snap-auto-dedup.sh
+++ b/test/mem-snap/run-snap-auto-dedup.sh
@@ -69,7 +69,7 @@ size_last=$(du -sh -BK dump/2/pages-*.img | grep -Eo '[0-9]+' | head -1)
 
 dedup_ok=1
 if [ $size_first -gt $size_last ]; then
-	dedup_ok=0	
+	dedup_ok=0
 fi
 
 echo "Restoring"
diff --git a/test/mem-snap/run-snap-dedup.sh b/test/mem-snap/run-snap-dedup.sh
index 6b08e53..6926c8c 100755
--- a/test/mem-snap/run-snap-dedup.sh
+++ b/test/mem-snap/run-snap-dedup.sh
@@ -74,7 +74,7 @@ size_last=$(du -sh -BK dump/2/pages-*.img | grep -Eo '[0-9]+' | head -1)
 
 dedup_ok=1
 if [ $size_first -gt $size_last ]; then
-	dedup_ok=0	
+	dedup_ok=0
 fi
 
 echo "Restoring"
-- 
1.8.1.4



More information about the CRIU mailing list