Skip to content

Commit

Permalink
upgrade f2fs
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-Tsai committed Dec 9, 2024
1 parent e769821 commit 79f27e2
Show file tree
Hide file tree
Showing 28 changed files with 16,387 additions and 1,711 deletions.
6 changes: 3 additions & 3 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ XFS_SOURCE=xfs/libxfs/cache.c xfs/libxfs/crc32.c xfs/libxfs/defer_item.c xfs/lib

EXFATFS_SOURCE=exfat/cluster.c exfat/utf.c exfat/utils.c exfat/lookup.c exfat/io.c exfat/log.c exfat/node.c exfat/mount.c exfat/time.c

F2FS_SOURCE=f2fs/fsck.c f2fs/libf2fs.c f2fs/fsck.h f2fs/mount.c f2fs/f2fs_fs.h f2fs/list.h f2fs/f2fs.h
F2FS_SOURCE=f2fs/fsck.c f2fs/fsck.h f2fs/f2fs.h f2fs/mount.c f2fs/mkquota.c f2fs/quotaio.c f2fs/dump.c f2fs/dir.c f2fs/quotaio_v2.c f2fs/node.c f2fs/segment.c f2fs/xattr.c f2fs/dict.c f2fs/quotaio_tree.c

if ENABLE_STATIC
AM_LDFLAGS=-static
Expand Down Expand Up @@ -110,8 +110,8 @@ endif
if ENABLE_F2FS
sbin_PROGRAMS += partclone.f2fs
partclone_f2fs_SOURCES=$(main_files) f2fsclone.c f2fsclone.h $(F2FS_SOURCE)
partclone_f2fs_CFLAGS=-DF2FS
partclone_f2fs_LDADD=-luuid -lcrypto ${LDADD_static}
partclone_f2fs_CFLAGS=-DF2FS -If2fs/
partclone_f2fs_LDADD=-luuid -lcrypto -lf2fs ${LDADD_static}
endif

if ENABLE_NILFS2
Expand Down
30 changes: 30 additions & 0 deletions src/f2fs/common.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
*
* Various things common for all utilities
*
*/

#ifndef __QUOTA_COMMON_H__
#define __QUOTA_COMMON_H__

#undef DEBUG_QUOTA

#ifndef __attribute__
# if !defined __GNUC__ || __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
# define __attribute__(x)
# endif
#endif

#define log_err(format, arg ...) \
fprintf(stderr, "[ERROR] %s:%d:%s:: " format "\n", \
__FILE__, __LINE__, __func__, ## arg)

#ifdef DEBUG_QUOTA
# define log_debug(format, arg ...) \
fprintf(stderr, "[DEBUG] %s:%d:%s:: " format "\n", \
__FILE__, __LINE__, __func__, ## arg)
#else
# define log_debug(...)
#endif

#endif /* __QUOTA_COMMON_H__ */
Loading

0 comments on commit 79f27e2

Please sign in to comment.