What does reiserfs_do_truncate do?
Good day all,
I know that reiserfs_do_truncate is used to truncate the tails of arbitrary files, but what does truncation really do? Is it an action to remove the file? What do you mean by packing the tails? Compressing it or to delete them or?
Kathy
Hello
Quoted 5 lines · Kathy KN (HK)
Good day all,
I know that
reiserfs_do_truncateis used to truncate the tails of arbitrary files, but what does truncation really do?
reiserfs stores files as a set of items in a filesystem tree which is built of disk blocks.
reiserfs_do_truncate removes from the tree items (or part of items) of file which represent portion of file which is to be truncated.
Quoted 1 line
Is it an action to remove the file?
it is to make file of shorter size. File deletion uses it to make file of zero length - that is to remove all file items.
Quoted 2 lines
What do
you mean by packing the tails?
packing tails in reiserfs means to store last incomplete block of file in a formatted node(s) so that one formatted node may contains tails of several files.
Quoted 5 lines
Compressing it or
to delete them or?Kathy