ext4 features
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 11 lines · Petr Tesarik
Salvaging files would be done with a separate tool. Of course, if you delete more files with the same name in the same directory, you'd need to tell that tool which one of them you want to salvage. Yes, I really mean you'd have more than one deleted file with the same name in the directory.
Anyway, I doubt we want such feature for ext4, because to make things efficient, you'd need to provide some kind of pointer from the deleted (but not yet purged) blocks to the corresponding file. Hard links are also problematic and there is a whole lot of other troubles I haven't even thought of.
You can add the original directory inode of the deleted file to an attribute. The name can be stored in the same way, so you can have multiple files with the same name in the trashcan directory. (Heuristics for the in-trashcan-name can be e.g. the original inode number or "n-$ORIGINALNAME" if it's unique, but just using the number will be good enough.)
Using the directory inode you can follow the '..'-chain to the root in order to present a nice 'original' name, but you should also be able to undelete files into any directory (even chroots) if both the trashcan and the target directory are visible and you've got apropiate permissions.
BTW: If you're using the trashcan on linked files, you will need to store multiple sources for an inode.
Signature · 4 lines
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF verbreiteten Lügen zu sabotieren. http://david.woodhou.se/why-not-spf.html
Quoted 2 lines · Bodo Eggert
BTW: If you're using the trashcan on linked files, you will need to store multiple sources for an inode.
No, if it's a multiply linked file, you want all unlinks except the last to operate the way they always have, and only the LAST link moves to the trashcan.
Otherwise, if you have a file with two links, and one moves to the trashcan, it's then subject to reaping and overwriting - which will come as a great surprise to the still-existing link....
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: ext4 features (salvage)
Quoted 7 lines · Matthew Frost
We silently keep files around in many filesystems, at least until whatever reclamation process runs. The delete event doesn't itself generally purge the data from disk. However, this is a matter of simple tools doing simple things. Designing an intentional structure around not actually deleting deleted files, but keeping them around just in case may be lauded as "user-friendly", but it is counter-intuitive. It is cleverness over clarity, good design smothered under feature demand.
[...]
Quoted 2 lines
If you have to add a "really delete, I mean it" command, you're breaking fundamental assumptions.
Even without the patch, you can't guarantee that nobody will create a link just before the supposed-to-be-final unlink(), or copies the file around. Having undelete() will just make this risk very obvious.
BTW: If you really want to delete files, use shred.
[...]
Quoted 4 lines
Why add non-free space to the free space count, when we're intentionally keeping those files? If you have to be counter-intuitive, why go the second counter of hiding it from the user who "wants us to keep and index his deleted files"?
It is free space, but it can be unfreed in order to
a) restore the data (on demand)
b) store new data (automatically, no tool needed)
If b happens before a, it's called bad luck.
This concept is fundamentally different from keeping a recycle bin of 10 % disksize for each of the 20 users (adding up to 200 % of the disk size), which is well-known from a colorfull "operating" system.
Signature · 4 lines
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF verbreiteten Lügen zu sabotieren. http://david.woodhou.se/why-not-spf.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · Lew Palm
Quoted 6 lines · Jeffrey V. Merkey
The old novell model is simple. When someone unlinks a file, don't delete it, just mv it to another special directory called DELETED.SAV. Then setup the
fs space allocation to reuse these files when the drive fills up by oldest files first. It's very simple. Then you have a salvagable file system.
Quoted 3 lines
A complete foolproof car is a car with a maximum speed of 0 mph. As a user I give commands to my computer, for example an order to delete a file. And this is what I expect it to do.
You don't delete a file but a filename, and that's what your system will still do.
Quoted 4 lines
If I want it to move a file to another position in the filesystem, I would use another command. I don't want my operating system to josh me, that's why I use Linux.
Stealthy keeping of deleted files somewhere is a security black hole.
Depending on unlinked file to be inaccessible and never have been copied just because you called unlink is the real security hole.
Quoted 3 lines
But accidents happen. Hardware perishes, users are making mistakes, sometimes coffee is pouring...
That's why we backup important data regulary.
And the salvaging fs will do exactly this whenever you unlink() the final reference. You could also use a userspace library catching each unlink call, but it would also have to intercept each write() call for each user and try to reclaim the backup copies on disk-full and would-have-to-fragment events. Off cause there are no userspace-visible would-have-to-fragment events, so besides being ugly a userspace solution would not be able to completely provide the same service.
Quoted 2 lines
A not-really-deleting-filesystem wouldn't relieve us of that duty, but would make a system more insecure and ambiguous.
It's just a marginal shift. If you can't trust yourself, you've lost. If you can't trust the current root, you're screwed, too. If you can't trust a future root, the time window in which the file can be recovered will slightly increase and the needed knowledge will be reduced. Otherwise, there is no change.
Signature · 4 lines
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF verbreiteten Lügen zu sabotieren. http://david.woodhou.se/why-not-spf.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 10 lines · Trond Myklebust
Quoted 7 lines · Bill Davidsen
But with timestamps I need remember only one number, the time of my last backup. Skipping over the question of "who's idea of time" inherent in network filesystems. I compare all ctimes with the time of the last backup and do incremental on the newer ones. If we use versioning I have to remember the version for each file! In practice I really question if the benefit justified keeping all that metadata between backups. And if I delete a file and create another by the same name, what is it's version?
Quoted 4 lines
You are completely missing the point. Our background is that all NFS clients are required to use the mtime and ctime timestamps in order to figure out if their cached data is valid. They need to do this extremely frequently (in fact, every time you
open()the file).
If the changes to these files are very infrequent compared to nanoseconds, you'll only need the version during some nanoseconds, and only during runtime. Having a second-change-within-one-timeframe-flag(*) instead of versions will be enough to make NFS mostly happy and only penalize your users for one nanosecond, and it won't force version-keeping into the filesystem. And besides that, all other filesystems will profit even without having nanosecond resolution nor versioning (but they'll suffer for up to a whole second).
*) TODO: Create a nice name
Signature · 4 lines
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF verbreiteten Lügen zu sabotieren. http://david.woodhou.se/why-not-spf.html
Quoted 8 lines · Bodo Eggert
If the changes to these files are very infrequent compared to nanoseconds, you'll only need the version during some nanoseconds, and only during runtime. Having a second-change-within-one-timeframe-flag(*) instead of versions will be enough to make NFS mostly happy and only penalize your users for one nanosecond, and it won't force version-keeping into the filesystem. And besides that, all other filesystems will profit even without having nanosecond resolution nor versioning (but they'll suffer for up to a whole second).
NFS never required file versioning. You're talking to the wrong person. It does, however, need a change attribute that logs all changes to the file. The above flag does not suffice to provide that.
Trond
Quoted 11 lines · Trond Myklebust
Quoted 8 lines · Bodo Eggert
If the changes to these files are very infrequent compared to nanoseconds, you'll only need the version during some nanoseconds, and only during runtime. Having a second-change-within-one-timeframe-flag(*) instead of versions will be enough to make NFS mostly happy and only penalize your users for one nanosecond, and it won't force version-keeping into the filesystem. And besides that, all other filesystems will profit even without having nanosecond resolution nor versioning (but they'll suffer for up to a whole second).
Quoted 3 lines
NFS never required file versioning. You're talking to the wrong person. It does, however, need a change attribute that logs all changes to the file. The above flag does not suffice to provide that.
ACK, that's why I'm suggesting this doublechange-flag.
Signature · 4 lines
In the beginning, God created the earth and rested. Then God created Man and rested. Then God created Woman. Since then, neither God nor Man has rested.