From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751914AbcGMJua (ORCPT ); Wed, 13 Jul 2016 05:50:30 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:35357 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751452AbcGMJuS (ORCPT ); Wed, 13 Jul 2016 05:50:18 -0400 Date: Wed, 13 Jul 2016 11:50:05 +0200 From: Pavel Machek To: Chen Yu Cc: linux-pm@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , linux-kernel@vger.kernel.org Subject: Re: [PATCH] PM / hibernate: Introduce snapshot test mode for hibernation Message-ID: <20160713095005.GA27870@amd> References: <1467873658-31986-1-git-send-email-yu.c.chen@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1467873658-31986-1-git-send-email-yu.c.chen@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 2016-07-07 14:40:58, Chen Yu wrote: > This mode is to verify if the snapshot data written to > swap device can be successfully restored to memory. It > is useful to ease the debugging process on hibernation, > since this mode can not only bypass the BIOSen/bootloader, > but also the system re-initialization. > > For example: > $ sudo echo snapshot > /sys/power/disk > $ sudo echo disk > /sys/power/state > > /* manual resume.*/ > $ sudo echo 8:3 > /sys/power/resume Your examples will not work, will they? This is also quite tricky/dangerous. If you do this with filesystems mounted R/W, it is "good bye, filesystems". I guess updating documentation would be welcome from my side, otherwise it should be ok. Acked-by: Pavel Machek Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html