Bug 105774 - Enable hook scripts to delete state
Summary: Enable hook scripts to delete state
Status: RESOLVED WONTFIX
Alias: None
Product: pm-utils
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-27 23:34 UTC by Chris Novakovic
Modified: 2018-06-29 19:57 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch to pm/functions.in implementing "removestate" function (919 bytes, patch)
2018-03-27 23:34 UTC, Chris Novakovic
Details | Splinter Review

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.