mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-12-12 03:15:40 +08:00
571dbc5784
For some reason, when the monted device is "/dev/mapper/*", a record in the form "/dev/dm-*" ends up in /etc/mtab and the device cannot be unmounted. The reason is unclear, the /dev/mapper name is not a symlink, and the function doing the name change is not known. No detailed feedback from the users having met the issue. The patch changes the name back to the /dev/mapper name after realpath() is called, and, if there is an actual change, both the name passed to ntfs-3g and the one passed to fuse and mount are logged in the hope of getting a clue about what is happening. But ntfs-3g is probably not the right place for a fix.
82 lines
1.6 KiB
Makefile
82 lines
1.6 KiB
Makefile
|
|
MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
|
|
|
|
if INSTALL_LIBRARY
|
|
rootlib_LTLIBRARIES=#Create directory
|
|
lib_LTLIBRARIES = libntfs-3g.la
|
|
pkgconfig_DATA = libntfs-3g.pc
|
|
else
|
|
noinst_LTLIBRARIES = libntfs-3g.la
|
|
endif
|
|
|
|
libntfs_3g_la_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/include/ntfs-3g
|
|
|
|
libntfs_3g_la_LDFLAGS = -version-info $(LIBNTFS_3G_VERSION) -no-undefined
|
|
|
|
libntfs_3g_la_SOURCES = \
|
|
acls.c \
|
|
attrib.c \
|
|
attrlist.c \
|
|
bitmap.c \
|
|
bootsect.c \
|
|
cache.c \
|
|
collate.c \
|
|
compat.c \
|
|
compress.c \
|
|
debug.c \
|
|
device.c \
|
|
dir.c \
|
|
efs.c \
|
|
index.c \
|
|
inode.c \
|
|
lcnalloc.c \
|
|
logfile.c \
|
|
logging.c \
|
|
mft.c \
|
|
misc.c \
|
|
mst.c \
|
|
object_id.c \
|
|
realpath.c \
|
|
reparse.c \
|
|
runlist.c \
|
|
security.c \
|
|
unistr.c \
|
|
volume.c \
|
|
xattrs.c
|
|
|
|
if NTFS_DEVICE_DEFAULT_IO_OPS
|
|
if WINDOWS
|
|
libntfs_3g_la_SOURCES += win32_io.c
|
|
else
|
|
libntfs_3g_la_SOURCES += unix_io.c
|
|
endif
|
|
endif
|
|
|
|
# We may need to move .so files to root
|
|
# And create ldscript or symbolic link from /usr
|
|
install-exec-hook: install-rootlibLTLIBRARIES
|
|
if INSTALL_LIBRARY
|
|
if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \
|
|
$(MV) -f "$(DESTDIR)/$(libdir)"/libntfs-3g.so* "$(DESTDIR)/$(rootlibdir)"; \
|
|
fi
|
|
if GENERATE_LDSCRIPT
|
|
if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \
|
|
$(install_sh_PROGRAM) "libntfs-3g.script.so" "$(DESTDIR)/$(libdir)/libntfs-3g.so"; \
|
|
fi
|
|
else
|
|
if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \
|
|
$(LN_S) "$(rootlibdir)/libntfs-3g.so" "$(DESTDIR)/$(libdir)/libntfs-3g.so"; \
|
|
fi
|
|
endif
|
|
endif
|
|
|
|
uninstall-local:
|
|
if INSTALL_LIBRARY
|
|
$(RM) -f "$(DESTDIR)/$(rootlibdir)"/libntfs-3g.so*
|
|
endif
|
|
|
|
if ENABLE_NTFSPROGS
|
|
libs: $(lib_LTLIBRARIES)
|
|
endif
|
|
|