search for: resume_file

Displaying 6 results from an estimated 6 matches for "resume_file".

Did you mean: resize_file
2006 Jul 11
0
[rfc] standalone kinit/resume
...ION */ -#include "kinit.h" -#include "do_mounts.h" #include "resume.h" -#ifndef CONFIG_PM_STD_PARTITION -# define CONFIG_PM_STD_PARTITION "" -#endif +char *progname; -int do_resume(int argc, char *argv[]) +static __noreturn usage(void) { - const char *resume_file = CONFIG_PM_STD_PARTITION; - const char *resume_arg; - - resume_arg = get_arg(argc, argv, "resume="); - resume_file = resume_arg ? resume_arg : resume_file; - /* No resume device specified */ - if (!resume_file[0]) - return 0; - - /* Fix: we either should consider reverting the device ba...
2019 Jan 20
0
[klibc:master] resume: Write resume_offset attribute
...le changed, 31 insertions(+), 11 deletions(-) diff --git a/usr/kinit/resume/resumelib.c b/usr/kinit/resume/resumelib.c index e557b05..03e596a 100644 --- a/usr/kinit/resume/resumelib.c +++ b/usr/kinit/resume/resumelib.c @@ -44,8 +44,8 @@ int do_resume(int argc, char *argv[]) int resume(const char *resume_file, unsigned long long resume_offset) { dev_t resume_device; - int powerfd = -1; - char device_string[64]; + int attr_fd = -1; + char attr_value[64]; int len; resume_device = name_to_dev_t(resume_file); @@ -55,30 +55,50 @@ int resume(const char *resume_file, unsigned long long resume_offset)...
2018 Mar 30
0
[PATCH] resume: Use the kernel API from 4.17 for setting resume offset
...esumelib.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/usr/kinit/resume/resumelib.c b/usr/kinit/resume/resumelib.c index e557b05..5fc2019 100644 --- a/usr/kinit/resume/resumelib.c +++ b/usr/kinit/resume/resumelib.c @@ -45,7 +45,9 @@ int resume(const char *resume_file, unsigned long long resume_offset) { dev_t resume_device; int powerfd = -1; + int offsetfd = -1; char device_string[64]; + char offset_string[64]; int len; resume_device = name_to_dev_t(resume_file); @@ -55,13 +57,23 @@ int resume(const char *resume_file, unsigned long long resume_offs...
2010 Apr 25
2
[git pull] small fixes, sh4, getruage() README's
...s/fprintf/dprintf/ Signed-off-by: maximilian attems <max at stro.at> diff --git a/usr/kinit/resume/resumelib.c b/usr/kinit/resume/resumelib.c index 5233e7e..4a615f0 100644 --- a/usr/kinit/resume/resumelib.c +++ b/usr/kinit/resume/resumelib.c @@ -77,7 +77,7 @@ int resume(const char *resume_file, unsigned long long resume_offset) failure: if (powerfd >= 0) close(powerfd); - fprintf(stderr, "kinit: No resume image, doing normal boot...\n"); + dprintf(stderr, "kinit: No resume image, doing normal boot...\n"); return -1; fail_r: commit 8d38b56e6f2c9dac342df3...
2010 Jul 07
0
[git pull v2] x86_32, sh4, getrusage()
...s/fprintf/dprintf/ Signed-off-by: maximilian attems <max at stro.at> diff --git a/usr/kinit/resume/resumelib.c b/usr/kinit/resume/resumelib.c index 5233e7e..32954bb 100644 --- a/usr/kinit/resume/resumelib.c +++ b/usr/kinit/resume/resumelib.c @@ -77,7 +77,7 @@ int resume(const char *resume_file, unsigned long long resume_offset) failure: if (powerfd >= 0) close(powerfd); - fprintf(stderr, "kinit: No resume image, doing normal boot...\n"); + dprintf("kinit: No resume image, doing normal boot...\n"); return -1; fail_r: commit fcceed7687bde392831c8eefa4c366...
2006 Jun 28
35
[klibc 00/31] klibc as a historyless patchset (updated and reorganized)
I have updated the klibc patchset based on feedback received. In particular, the patchset has been reorganized so as not to break git-bisect. Additionally, this updates the patch base to 2.6.17-git12 (d38b69689c349f35502b92e20dafb30c62d49d63) and klibc 1.4.8; the main difference on the klibc side is removal of obsolete code. This is also available as a git tree at: