Reduces memory occupation for hardlinks and empty dirs.

This commit is contained in:
Andrea Mazzoleni 2013-05-30 23:50:26 +02:00
parent 1633fb2a89
commit f8420e1dff
4 changed files with 14 additions and 9 deletions

6
elem.h
View file

@ -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;