Bug 105774

Summary: Enable hook scripts to delete state
Product: pm-utils Reporter: Chris Novakovic <chris>
Component: GeneralAssignee: Richard Hughes <richard>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch to pm/functions.in implementing "removestate" function

Description Chris Novakovic 2018-03-27 23:34:29 UTC
Created attachment 138386 [details] [review]
Patch to pm/functions.in implementing "removestate" function

While writing a sleep.d hook that saves a large amount of state information relative to the size of the file system that state files are stored on (space I'd like to recover after resuming), I found that there's no utility function for removing an existing piece of state without breaking the fourth wall and directly deleting the state file from the file system. This (attached) simple patch against the Git master branch implements a "removestate" function providing that missing ability.
Comment 1 Adam Jackson 2018-06-29 19:57:11 UTC
pm-utils hasn't been touched in eight years, none of this is likely to get addressed. Closing bugs and disabling the bz product.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.