The way it would work is:
* The underlying disk would do sequential writes only, in 1Gb blocks, rather like a log filesystem.
* The large block size enables much better information density due to being able to tolerate far more errors.
* Random reads within blocks can usually be done - but occasionally most or all of the whole block will need to be read to decode the data.
* A small capacitor+disk momentum ensures any writes that happened before a power failure can always be completed - either to the real disk or to flash.
* The OS still only sees 4k pages - versioning, packing those into 1Gb blocks, mappings and garbage collection are all handled inside the drive.
It can be also the data milliseconds after loosing power. The minimal amount of data in question is the data that the drive has acknowledged to the OS after a special command.
Anyway, this problem is already solved at least few years ago.
What's frustrating is even just a little info from the manufactures would be beneficial, like the size of a shingle so the computer could batch writes, or even if the drive is shingled!
https://dropbox.tech/infrastructure/four-years-of-smr-storag...