aboutsummaryrefslogtreecommitdiffstats
path: root/suspend.c
AgeCommit message (Expand)AuthorFilesLines
2012-02-27suspend.c: Remove verbose warning for deprecated ioctlsRodolfo García Peñas1-26/+7
2012-02-12s2disk: Don't try to use splash when VTs are not availableRafael J. Wysocki1-0/+1
2011-11-07s2disk: Do not fail hibernation withoug a VT consoleRafael J. Wysocki1-12/+26
2011-05-21s2disk: Stop using deprecated SNAPSHOT_PMOPS ioctlRafael J. Wysocki1-5/+3
2011-03-04s2disk: Fix the setting of image sizeRafael J. Wysocki1-3/+3
2011-03-04s2ram: Do not apply quirks if KMS driver is in useRafael J. Wysocki1-2/+8
2010-08-31Fix warnings about unused variables and printf argumentsRodolfo Garcia1-1/+1
2010-01-28Use direct 64-bit conversion when computing shiftRafael J. Wysocki1-2/+2
2009-01-27Patch from Luca Tettamanti :Pavel Machek1-7/+7
2008-08-10Allow the user to test the image saving and loading functionality of s2disk byRafael J. Wysocki1-24/+77
2008-08-10Add configuration option "theads = " that makes s2disk/s2both use additionalRafael J. Wysocki1-33/+536
2008-08-10From: Holger Macht <hmacht@suse.de>, Luca Tettamanti <kronos.it@gmail.com>Rafael J. Wysocki1-3/+5
2008-06-09It is not necessary to check if ret is zero and then if it is different fromRafael J. Wysocki1-8/+5
2008-06-09If compression is used and the image is not compressible, we may need toRafael J. Wysocki1-0/+5
2008-06-08gcry_mpi_scan() may decide that the actual size of the number passed to it toRafael J. Wysocki1-5/+17
2008-06-08Currently, the compression ratio is only printed during suspend, which is notRafael J. Wysocki1-4/+4
2008-06-06Report freeze failure to the user.Pavel Machek1-1/+3
2008-06-06Short read from snapshot_image is rather bad error condition. Also fixPavel Machek1-3/+10
2008-06-01Well, (0 % anything) == 0, so currently "early writeout" is always enabled.Rafael J. Wysocki1-2/+2
2008-06-01Simple variable rename, makes the code a bit less confusing, IMO.Rafael J. Wysocki1-11/+11
2008-06-01Add the "debug verify image" option making it possible to verify the imageRafael J. Wysocki1-79/+72
2008-05-23There is a bug in the new image saving code causing it to fail ifRafael J. Wysocki1-0/+2
2008-05-20fix build failure if CONFIG_BOTH is definedStefan Seyfried1-1/+1
2008-05-18Introduce a simple memory allocator for managing the memory pool used forRafael J. Wysocki1-72/+91
2008-05-18Fix coding style in suspend.c:main().Rafael J. Wysocki1-4/+2
2008-05-18Add a new configuration file for s2disk/s2both option, "resume pause", that isRafael J. Wysocki1-0/+11
2008-05-11It turns out that we can cut the times of saving compressed images by half,Rafael J. Wysocki1-236/+452
2008-05-05Make s2disk and resume use the remaining new ioctls introduced inRafael J. Wysocki1-18/+79
2008-05-05The ioctls used by s2disk and resume were reworked in the 2.6.25Rafael J. Wysocki1-23/+77
2007-12-01Patch from Frank Seidel <fseidel@suse.de> to give a slightly better errorRafael J. Wysocki1-1/+5
2007-11-08Patch from Alon Bar-Lev <alon.barlev@gmail.com> to change KEY_FILE toRafael J. Wysocki1-1/+1
2007-11-05From: Alon Bar-Lev <alon.barlev@gmail.com>Rafael J. Wysocki1-7/+24
2007-10-29Use AC_SYS_LARGEFILE macro for largefile detection.Arkadiusz Miskiewicz1-1/+1
2007-09-30Patch from Alon Bar-Lev <alon.barlev@gmail.com> to add a switch to printRafael J. Wysocki1-2/+8
2007-09-30Patch from Alon Bar-Lev <alon.barlev@gmail.com> to avoid printing warningsRafael J. Wysocki1-4/+16
2007-09-13From: Alon Bar-Lev <alon.barlev@gmail.com>Rafael J. Wysocki1-2/+1
2007-09-03Revert the recent patch that changed the keyboard events handling, due toRafael J. Wysocki1-5/+3
2007-09-02From: Holger Macht <hmacht@suse.de>, Luca Tettamanti <kronos.it@gmail.com>Rafael J. Wysocki1-3/+5
2007-09-02Add missing calls to lzo_init() in suspend.c and resume.c (thanks toRafael J. Wysocki1-1/+6
2007-08-31Command line processing fix for s2disk/s2both and resume from Alon Bar-LevRafael J. Wysocki1-1/+1
2007-08-30Clean up the code in suspend.c (part 7).Rafael J. Wysocki1-10/+10
2007-08-30Clean up the code in suspend.c (part 6).Rafael J. Wysocki1-6/+18
2007-08-30Clean up the code in suspend.c (part 5).Rafael J. Wysocki1-26/+28
2007-08-30Clean up the code in suspend.c (part 4).Rafael J. Wysocki1-72/+80
2007-08-30Clean up the code in suspend.c (part 3).Rafael J. Wysocki1-36/+34
2007-08-30Clean up the code in suspend.c (part 2).Rafael J. Wysocki1-34/+39
2007-08-30Clean up the code in suspend.c (part 1).Rafael J. Wysocki1-10/+10
2007-08-30Patch from Alon Bar-Lev <alon.barlev@gmail.com> to add a command line optionRafael J. Wysocki1-11/+22
2007-08-30Patch from Alon Bar-Lev <alon.barlev@gmail.com> to clean up command lineRafael J. Wysocki1-38/+29
2007-08-17Make save_image() restore terminal settings if the saving of the image has beenRafael J. Wysocki1-1/+3
2007-08-17Use LZO for compression instead of LZF.Rafael J. Wysocki1-19/+35
2007-08-15Patch from Alon Bar-Lev <alon.barlev@gmail.com> to make the array of parametersRafael J. Wysocki1-2/+8
2007-08-15Patch from Alon Bar-Lev <alon.barlev@gmail.com> to rename config.c toRafael J. Wysocki1-1/+1
2007-08-15Patch from Alon Bar-Lev <alon.barlev@gmail.com> to rename the variableRafael J. Wysocki1-13/+13
2007-07-29Patch from Alon Bar-Lev <alon.barlev@gmail.com> to prevent the CPU from beingRafael J. Wysocki1-1/+2
2007-07-29Patch from Alon Bar-Lev <alon.barlev@gmail.com> to allow the user to change theRafael J. Wysocki1-15/+40
2007-05-13Support for powerpcTim Dijkstra1-1/+1
2007-05-13Fix handeling of long options. The recently introduced comments would makeTim Dijkstra1-15/+24
2007-05-12Adept to new libsplashy ABI. Add support for different splashy mode betweenTim Dijkstra1-0/+2
2007-05-02Add support for descriptions of the options in the output of the usage()Tim Dijkstra1-10/+25
2007-04-03fix the suspend_error macroStefan Seyfried1-1/+1
2007-04-03Use argv[0] for status and error messages and for usage().Stefan Seyfried1-28/+34
2007-04-02Add s2ram-style options for the `video hacks' to s2both.Tim Dijkstra1-4/+26
2007-04-01Make usage() print both long and short options. Short options only whenTim Dijkstra1-3/+4
2007-03-29Fix the endianness problem with set_swap_file() on PPC.Rafael J. Wysocki1-1/+1
2007-03-27* Introduce the suspend_error()-macro that does:Stefan Seyfried1-24/+28
2007-03-16Make resume use pm_ops if the platform mode has been used for suspending.Rafael J. Wysocki1-7/+12
2007-02-02unblank the console and be a bit more verbose after resume.Stefan Seyfried1-0/+3
2007-01-25Move functions to modify the kernel console loglevel to a new file. MakeTim Dijkstra1-33/+1
2007-01-22Patch from Michal Schmidt <mschmidt@redhat.com> to limit the size ofRafael J. Wysocki1-3/+5
2007-01-10To be able to abort suspending while using splashy, we have to move theTim Dijkstra1-18/+8
2006-11-07Adds some command line options to s2disk/s2both and resume so that they areRafael J. Wysocki1-2/+58
2006-11-07Add missing platform_finish() in the suspend error path.Stefan Seyfried1-0/+5
2006-11-02Allow users to abort the saving of the suspend image by pressing a keyRafael J. Wysocki1-3/+46
2006-11-01Make suspend avoid modifying the access time of the resume device's specialRafael J. Wysocki1-18/+47
2006-10-16Fix the handling of swap files located above 2 GB from the beginning ofRafael J. Wysocki1-1/+3
2006-10-12Add support for swap files and update documentation.Rafael J. Wysocki1-6/+25
2006-10-06fix suspend with image size = 0Stefan Seyfried1-1/+1
2006-09-26Add support for "platform" mode, using the new SNAPSHOT_PMOPS ioctl.Stefan Seyfried1-8/+24
2006-09-24From Jason Lunz <lunz@falooley.org>:Pavel Machek1-1/+13
2006-09-22From Jason Lunz <lunz@falooley.org>Pavel Machek1-1/+13
2006-09-20Oops, lost a semi-collon in last commit.Tim Dijkstra1-1/+1
2006-09-20Increase the granularity of calls to start_writeout() to 1% of image.Tim Dijkstra1-4/+5
2006-09-16Lock VT against switching just after splash screen is started,Tim Dijkstra1-5/+68
2006-09-14Splashy can display a popup if it needs user interaction. Make userTim Dijkstra1-3/+8
2006-09-14- Change some printf(...)s into fprintf(stderr,...)sTim Dijkstra1-7/+8
2006-09-14The progress would halt at 20% for a while. This will make it run niceTim Dijkstra1-2/+1
2006-09-14This moves the order of prepare_console and prepare_splash. This isTim Dijkstra1-11/+6
2006-07-23Make s2disk, s2ram and resume use libgcrypt for encryption instead of openssl.Rafael J. Wysocki1-55/+134
2006-07-08Separate s2disk and s2both binaries so that s2disk can be run on non-x86Rafael J. Wysocki1-16/+13
2006-07-08Fix console ioctls used to prevent users from switching to X whileRafael J. Wysocki1-7/+8
2006-06-28Rename suspend to s2disk/s2both. Patch from Tim Dijkstra <newsuser@famdijkst...Pavel Machek1-7/+11
2006-05-01Patch from Holger Macht <hmacht@suse.de> to add bootsplash support.Rafael J. Wysocki1-3/+33
2006-04-25Patch from Michal Schmidt <xschmi00@stud.feec.vutbr.cz> to make suspendRafael J. Wysocki1-1/+14
2006-04-21Make suspend free the snapshot memory before unfreezing processes duringRafael J. Wysocki1-1/+3
2006-04-13Print the size of free swap in KB ie. in the same units that are used forRafael J. Wysocki1-1/+2
2006-04-04Make suspend set swappiness to 100 before suspend and restore it afterRafael J. Wysocki1-1/+44
2006-04-04Make suspend use the VT to which kernel messages are redirected.Rafael J. Wysocki1-10/+30
2006-04-04Eliminate PAGE_SIZE and related constants from suspend.c and resume.cRafael J. Wysocki1-89/+138
2006-03-26Clean up the code related to suspend-to-both in suspend.Rafael J. Wysocki1-16/+18
2006-03-26Avoid mangling of errno by *printf in suspend and resume.Rafael J. Wysocki1-6/+8
2006-03-26Make sure the stdin, stdout, stderr file descriptors are open at theRafael J. Wysocki1-1/+15
2006-03-23Make kernel messages go to the VT used by suspend.Rafael J. Wysocki1-0/+27
2006-03-21Patch from Luca, use SNAPSHOT_S2RAM so that tasks are not resumed twice.Pavel Machek1-11/+12
2006-03-20Simplify the kernel console loglevel manipulation code.Rafael J. Wysocki1-15/+12
2006-03-20Clean up the s2ram_prepare() function: no longer just exit() if thereStefan Seyfried1-2/+4
2006-03-19Prevent suspend from refusing to write the image due to the (expected) lackRafael J. Wysocki1-2/+1
2006-03-19Fix the kernel loglevel manipulation in suspend.cRafael J. Wysocki1-18/+25
2006-03-16Make suspend-to-both a non-default option.Rafael J. Wysocki1-19/+23
2006-03-16I broken condition near chroot, so suspend-to-both does nothing; thisPavel Machek1-4/+5
2006-03-16Implement suspend-to-both.Pavel Machek1-4/+75
2006-03-14Fix an obscure bug in suspend.c which made it possible that some image dataRafael J. Wysocki1-4/+6
2006-03-14Add two extra checks that should prevent suspend and resume from segfaultingRafael J. Wysocki1-0/+2
2006-03-14Clean up compression-related code.Rafael J. Wysocki1-9/+10
2006-03-12Add the ability to generate a random session key and initialization vectorRafael J. Wysocki1-10/+89
2006-03-08Add salting to encryption.Rafael J. Wysocki1-1/+5
2006-02-25Rearrange error messages in suspend so that they get printed at the right timeRafael J. Wysocki1-13/+13
2006-02-25Add Blowfish encryption for suspend and resume with the help of OpenSSL.Rafael J. Wysocki1-13/+61
2006-02-20Make compression optional.Pavel Machek1-1/+11
2006-02-19Implement the ability to compress the system snapshot image using the LZFRafael J. Wysocki1-21/+96
2006-02-16Add the ability to compute and verify an MD5 checksum of the snapshot image.Rafael J. Wysocki1-16/+41
2006-02-14Fix suspend not to loop if the image writing fails for a reason other than th...Rafael J. Wysocki1-2/+5
2006-02-14Teach suspend and resume to write/read more than one page at a time.Rafael J. Wysocki1-17/+68
2006-02-14Make resume and suspend use configuration files.Rafael J. Wysocki1-9/+47
2006-02-11Change suspend to mount all of the needed devices and to switch theRafael J. Wysocki1-154/+190
2006-02-08Print something before snapshot, so that user does not stare at empty screen.Pavel Machek1-1/+2
2006-02-08Fix warning in enough_swap.Pavel Machek1-1/+1
2006-02-08Allow suspend and resume to set the kernel console loglevel and make suspendRafael J. Wysocki1-3/+33
2006-02-06Move the chrooting to main() and clean up the code.Rafael J. Wysocki1-101/+85
2006-02-05Make the suspending utility mount the temporary tmpfs filesystem and thenRafael J. Wysocki1-46/+64
2006-02-05To protect the frozen filesystems from accidental damage we mount a temporaryRafael J. Wysocki1-21/+84
2006-02-03Fix some problems related to implicit type conversionsRafael J. Wysocki1-3/+3
2006-01-29Allow the suspending utility to bind itself to the virtual terminal the kerne...Rafael J. Wysocki1-0/+52
2006-01-25Updates from rafael:Pavel Machek1-37/+39
2006-01-17Hardcode /dev/snapshot, and add README.Pavel Machek1-2/+2
2006-01-17Initial revisionPavel Machek1-0/+333