1
1

VFS: tarfs can now be switched off

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Этот коммит содержится в:
Enrico Weigelt, metux IT service 2010-07-13 11:38:38 +04:00 коммит произвёл Andrew Borodin
родитель 19390ab2d7
Коммит f33f7a5031
6 изменённых файлов: 18 добавлений и 7 удалений

Просмотреть файл

@ -16,11 +16,13 @@ BASICFILES = \
utilvfs.c utilvfs.h \
local.c local.h \
gc.c gc.h \
tar.c \
extfs.c \
sfs.c
CPIOFILES = cpio.c
TARFILES = tar.c
SFSFILES = sfs.c
EXTFSFILES = extfs.c
UNDELFILES = undelfs.c
NETFILES = \
@ -34,6 +36,9 @@ libvfs_mc_la_SOURCES = $(BASICFILES)
if ENABLE_VFS_CPIO
libvfs_mc_la_SOURCES += $(CPIOFILES)
endif
if ENABLE_VFS_TAR
libvfs_mc_la_SOURCES += $(TARFILES)
endif
if ENABLE_VFS_UNDELFS
libvfs_mc_la_SOURCES += $(UNDELFILES)
endif
@ -47,6 +52,7 @@ endif
EXTRA_DIST = HACKING README \
$(BASICFILES) \
$(CPIOFILES) \
$(TARFILES) \
$(UNDELFILES) \
$(NETFILES) \
$(SMBFILES)

Просмотреть файл

@ -114,10 +114,12 @@ void *vfs_s_open (struct vfs_class *me, const char *file, int flags, mode_t mode
#ifdef ENABLE_VFS_CPIO
void init_cpiofs (void);
#endif
#ifdef ENABLE_VFS_TAR
void init_tarfs (void);
#endif
void init_extfs (void);
void init_fish (void);
void init_sfs (void);
void init_tarfs (void);
#ifdef ENABLE_VFS_UNDELFS
void init_undelfs (void);
#endif

Просмотреть файл

@ -1335,10 +1335,12 @@ vfs_init (void)
init_extfs ();
init_sfs ();
init_tarfs ();
#ifdef ENABLE_VFS_CPIO
init_cpiofs ();
#endif /* ENABLE_VFS_CPIO */
#ifdef ENABLE_VFS_TAR
init_tarfs ();
#endif /* ENABLE_VFS_TAR */
#ifdef ENABLE_VFS_UNDELFS
init_undelfs ();
#endif /* ENABLE_VFS_UNDELFS */

Просмотреть файл

@ -66,7 +66,6 @@ AC_DEFUN([AC_MC_VFS_CHECKS],[
AC_MSG_NOTICE([Enabling VFS code])
AC_MC_VFS_TARFS
AC_MC_VFS_FTP
AC_MC_VFS_FISH
AC_MC_VFS_EXTFS
@ -77,7 +76,6 @@ AC_DEFUN([AC_MC_VFS_CHECKS],[
else
vfs_type="Plain OS filesystem"
AM_CONDITIONAL(ENABLE_VFS_TAR, [false])
AM_CONDITIONAL(ENABLE_VFS_FTP, [false])
AM_CONDITIONAL(ENABLE_VFS_FISH, [false])
AM_CONDITIONAL(ENABLE_VFS_EXTFS, [false])
@ -85,6 +83,7 @@ AC_DEFUN([AC_MC_VFS_CHECKS],[
fi
AC_MC_VFS_CPIOFS
AC_MC_VFS_TARFS
AC_MC_VFS_UNDELFS
AM_CONDITIONAL(ENABLE_VFS, [test x"$enable_vfs" = x"yes"])

Просмотреть файл

@ -2,8 +2,8 @@ dnl TAR filesystem support
AC_DEFUN([AC_MC_VFS_TARFS],
[
AC_ARG_ENABLE([vfs-tar],
[ --enable-vfs-tar Support for tar filesystem [[yes]]])
if test x"$enable_vfs_tar" != x"no"; then
AC_HELP_STRING([--enable-vfs-tar], [Support for tar filesystem [[yes]]]))
if test "$enable_vfs" != "no" -a x"$enable_vfs_tar" != x"no"; then
enable_vfs_tar="yes"
AC_MC_VFS_ADDNAME([tar])
AC_DEFINE([ENABLE_VFS_TAR], [1], [Support for tar filesystem])

Просмотреть файл

@ -36,7 +36,9 @@ static const char *const vfs_supported[] = {
#ifdef ENABLE_VFS_CPIO
"cpiofs",
#endif
#ifdef ENABLE_VFS_TAR
"tarfs",
#endif
"extfs",
#ifdef ENABLE_VFS_UNDELFS
"undelfs",