mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 11:26:48 -05:00
Reduces memory occupation for hardlinks and empty dirs.
This commit is contained in:
parent
1633fb2a89
commit
f8420e1dff
4 changed files with 14 additions and 9 deletions
6
elem.h
6
elem.h
|
|
@ -207,8 +207,8 @@ struct snapraid_file {
|
|||
*/
|
||||
struct snapraid_link {
|
||||
unsigned flag; /**< FILE_IS_* flags. */
|
||||
char sub[PATH_MAX]; /**< Sub path of the file. Without the disk dir. The disk is implicit. */
|
||||
char linkto[PATH_MAX]; /**< Link to. */
|
||||
char* sub; /**< Sub path of the file. Without the disk dir. The disk is implicit. */
|
||||
char* linkto; /**< Link to. */
|
||||
|
||||
/* nodes for data structures */
|
||||
tommy_node nodelist;
|
||||
|
|
@ -220,7 +220,7 @@ struct snapraid_link {
|
|||
*/
|
||||
struct snapraid_dir {
|
||||
unsigned flag; /**< FILE_IS_* flags. */
|
||||
char sub[PATH_MAX]; /**< Sub path of the file. Without the disk dir. The disk is implicit. */
|
||||
char* sub; /**< Sub path of the file. Without the disk dir. The disk is implicit. */
|
||||
|
||||
/* nodes for data structures */
|
||||
tommy_node nodelist;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue