This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _GNU_SOURCE | |
# define _GNU_SOURCE | |
#endif | |
#include <errno.h> | |
#include <stdarg.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Log into container and do: | |
$ while : ; do uptime; done | |
2) On host do: | |
$ while : ; do lxc-freeze -n $CT ; lxc-unfreeze -n $CT; done | |
(or to see stuff happening:) | |
$ i = 0; while : ; do let i++; echo freeze $i && lxc-freeze -n 104; echo unfreeze && lxc-unfreeze -n 104; done | |
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat umount.c | |
#include <stdio.h> | |
#include <sys/mount.h> | |
int main(int argc, char **argv) { | |
if (argc != 2) { | |
fprintf(stderr, "Dumb\n"); | |
return 1; | |
} |