AFAIK UFS is not copy on write. How would I go about overwriting a file in it? I have googled but I can't seem to find anything related. Namely I want to write new data on top of the old data, like it is possible with Linux's ext2, where simply doing
The file contains GELI keys for file systems on the machine; I usually keep the keys off the host for security and when they are needed I put them in a memory-backed file system so they never touch the local disk but this time it was not possible that way. I want to make sure its contents are overwritten before I simply remove it.
$ echo xxxxxxxxxxxxx > file
overwrites the actual bytes instead of allocating a new region, write the data there, move pointers around, invalidate the old region, etc., on-disk-consistency etc.The file contains GELI keys for file systems on the machine; I usually keep the keys off the host for security and when they are needed I put them in a memory-backed file system so they never touch the local disk but this time it was not possible that way. I want to make sure its contents are overwritten before I simply remove it.