On Tue, Jan 23, 2007 at 01:00:08PM +0100, Rafael J. Wysocki wrote: > On Tuesday, 23 January 2007 10:51, Pavel Machek wrote: > > Hi! > > > > > Split the opening of resume_dev and retrieval of the header from > > > read_image into a new function. That way we can do something else if > > > everything is OK, but there just isn't an image. > > > The new function return ENOMEDIUM in case of no image, better > > > suggestions welcome. > > I think EINVAL is also acceptable here.
It could return EINVAL if it is no swap and no resume image, ENOMEDIUM if it is swap, but no resume image :-) -- Stefan Seyfried QA / R&D Team Mobile Devices | "Any ideas, John?" SUSE LINUX Products GmbH, Nürnberg | "Well, surrounding them's out." ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Suspend-devel mailing list Suspend-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/suspend-devel