I mean safe in the sense that it would not destroy data outside of that file (no matter if writing was successful or not) or even destroy/add errors to the filesystem.(ext*, f2fs, fat*, ...).
On Tue, Aug 23, 2016 at 9:59 PM, Andrei Borzenkov <arvidj...@gmail.com> wrote: > 23.08.2016 21:51, Michael Zimmermann пишет: > > Hi, > > > > how safe is the usage of save_env? I'm considering writing like 100MB to > a > > loop file using the technique used by this command. > > > > Define "safe". Command is filesystem agnostic and expects fully > preallocated file; it writes on block level. It also builds full content > of environment file in memory before writing it out; so it may fail on > systems with small amount of memory. > > It attempts to verify that file can be represented by block lists and it > does not overwrite blocks outside of allocated for the file. > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel