Re: New tool to recursive compress / decompress of files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Mar 21, 2015 at 07:16:47PM +0100, Petr Bena wrote:
> I am just wondering, does that defragment trick work for non-root users?

Defragmentation works where read and write would work for the user. Root
can also defrag files that do not have the wite rwx bit set, but it's a
special case anyway.

> Also, even if it did work, I could as well make my tools use this
> defragment trick instead, because I will probably never remember that
> hacky syntax of defrag command :P doing something like compress -r
> <folder> or decompress -r <folder> is just much more easy to remember
> than multiple commands.

The tools should provide a rich set of options to do basic operations
and could provide options to do complex things, but writing wrappers is
sometimes inevitable.

In your case, we can enhance the defrag command to set the +c bit on
directories/files on the way, plus set the compression method via
properties according to the user selected method. All of this fits into
the idea of core tool support.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux