this post was submitted on 24 Oct 2023
1719 points (96.9% liked)

Memes

45629 readers
1165 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 9 points 1 year ago (1 children)

There IS 'lockable mode' since System V era. It is extensively used by package managers and similar stuff.

Deleting file does not actually deletes it from disk until last program closes it. And there are ways to open file such that changes to file will not be seen in program.

[โ€“] [email protected] 1 points 1 year ago* (last edited 1 year ago)

Yeah with "lockable mode" I mean locking by default instead of requiring every program to specifically call for locking.

It would probably break lots of software, but only using such mode for the users home (or maybe even specific Downloads/documents/desktop/etc folders within the home directory) could reduce the impact.

[Edit] wait I think there is whole fs locking mode on mounting, with the "mand" option, going to test it.