Re: [PATCH 1/1] hibernate: restrict writes to the snapshot device

From: Rafael J. Wysocki
Date: Tue May 19 2020 - 11:59:28 EST


It would be better to paste the patch instead of attaching it.

Anyway, note that the snapshot special device is not the target block
device for saving the image, so it would be good to avoid that
confusion in the naming.

I.e. I would rename is_hibernate_snapshot_dev() to something like
is_hibernate_image_dev() or is_hibernate_resume_dev() (for consistency
with the resume= kernel command line parameter name).

Thanks!