# AC_ARG_ENABLE(lufs,[--enable-lufs=[no/yes/auto]],,enable_lufs=auto)
have_lufs_includes=false
-PATH_LUFSMOUNT=""
+# Although it would be more appropriate to use lufsmount(1) instead of lufsd(1)
+# we use lufsd(1) as lufsmount(1) is just a dumb wrapper and it would cost us
+# another big binary file for the static build package version.
+PATH_LUFSD=""
if test x$enable_lufs != no;then
have_lufs_includes=true
dnl If ACTION-IF-NOT-FOUND is given, it is executed when one of the header
AC_MSG_WARN([Although LUFS include files were found they are too old. df(1) will not show available NTFS disk space.])
fi
],[#include <lufs/proto.h>])
- AC_PATH_PROGS(PATH_LUFSMOUNT,lufsmount)
- if test x$PATH_LUFSMOUNT = x;then
+ AC_PATH_PROGS(PATH_LUFSD,lufsd)
+ if test x$PATH_LUFSD = x;then
if test x$enable_lufs = xyes;then
- AC_MSG_ERROR([LUFS client was requested (--enable-lufs) but no lufsmount(1) binary was found. Install 'lufs-*-*captive*' package.])
+ AC_MSG_ERROR([LUFS client was requested (--enable-lufs) but no lufsd(1) binary was found. Install 'lufs-*-*captive*' package.])
else
- AC_MSG_WARN([LUFS client not being compiled as no lufsmount(1) binary was found. Install 'lufs-*-*captive*' package.])
+ AC_MSG_WARN([LUFS client not being compiled as no lufsd(1) binary was found. Install 'lufs-*-*captive*' package.])
fi
fi
fi
-AM_CONDITIONAL(ENABLE_LUFS,[ $have_lufs_includes && test x$PATH_LUFSMOUNT != x -a x$enable_lufs != no ])
-AC_SUBST(PATH_LUFSMOUNT)
+AM_CONDITIONAL(ENABLE_LUFS,[ $have_lufs_includes && test x$PATH_LUFSD != x -a x$enable_lufs != no ])
+AC_SUBST(PATH_LUFSD)
dnl for $(top_srcdir)/src/libcaptive/client/
dnl Do not use '[client server]' as $4 to prevent: configure: test: too many arguments
B<GNU/Linux> system to access NTFS drives by Microsoft Windows drivers in
the most common way of kernel-level filesystem implementation.
-{B<-c CHAN>|B<--channels>=B<CHAN>} option of B<lufsmount>(1) is respected
+{B<channels>} option of B<lufsd>(1) is respected
although the final filesystem operations are always processed in single-channel
mode. Do not set B<CHAN> to B<1> as it would invoke errors by LUFS kernel
driver.
print <<'POD_EOF';
=head1 SEE ALSO
-B<mount.@PACKAGE@>(8), B<lufsmount>(1), B<@PACKAGE@>(7)
+B<mount.@PACKAGE@>(8), B<lufsd>(1), B<@PACKAGE@>(7)
=head1 AUTHOR
#! /usr/bin/perl -w
#
# $Id$
-# External mount command for mount(8) to interface lufsmount(1)
+# External mount command for mount(8) to interface lufsd(1)
# Copyright (C) 2003 Jan Kratochvil <project-captive@jankratochvil.net>
#
# This program is free software; you can redistribute it and/or modify
my $vardir='@localstatedir@/lib/captive';
$vardir=~s#\$\Q{prefix}\E#'@prefix@';#ge;
$vardir="/var/lib/captive" if $vardir=~/^@/;
-my $lufsmount_bin='@PATH_LUFSMOUNT@';
-$lufsmount_bin="/usr/bin/lufsmount" if $lufsmount_bin=~/^@/;
+my $lufsd_bin='@PATH_LUFSD@';
+$lufsd_bin="/usr/bin/lufsd" if $lufsd_bin=~/^@/;
my $captive_sandbox_server_bin='@sbindir@/captive-sandbox-server';
$captive_sandbox_server_bin=~s#\$\Q{exec_prefix}\E#'@exec_prefix@';#ge;
$captive_sandbox_server_bin=~s#\$\Q{prefix}\E#'@prefix@';#ge;
}
$oo=""
+ ."fs=captivefs,"
."mntent.mnt_fsname=$image,mntent.mnt_type=captive-$fsname," # Double-dashes forbidden.
."dir_cache_entries=0,"
."image=$image,"
warn "$0: '-n' not supported - ignored" if $nomtab;
# Use "'$oo'" to permit another expansion by bash(1) during lufsmnt(8) execution.
-my @argv=($lufsmount_bin,"captivefs://",$dir,"-o","'$oo'");
+my @argv=($lufsd_bin,"none",$dir,"-o",$oo);
print STDERR "$0: @argv\n" if $verbose;
-exec $lufsmount_bin @argv;
+exec $lufsd_bin @argv;
die "Failed to execute: @argv";
=head1 DESCRIPTION
B<mount.@PACKAGE@>(8) provides B<mount>(8) interface to B<lufs-@PACKAGE@fs>(7)
-by calling B<lufsmount>(1) with appropriate arguments. You should never call
+by calling B<lufsd>(1) with appropriate arguments. You should never call
this command directly - use B<mount>(8) instead.
B<mount.@PACKAGE@>(8) (B<@PACKAGE@> filesystem type) is never used - this command
=item B<-v>
-Enable verbose mode. Command B<lufsmount>(1) being called is shown.
+Enable verbose mode. Command B<lufsd>(1) being called is shown.
=item B<-o> B<options>
See the B<@PACKAGE@>(7) manpage for details on options prefixed by
double-dashes (B<-->) will be used for B<lufs-@PACKAGE@fs>(7) /
B<mount.captive>(8). Options without double-dashes (B<-->) will be used for
-B<lufsmount>(1). You may be interested in these unprefixed options:
+B<lufsd>(1). You may be interested in these unprefixed options:
=over
filesystems in such case.
This is the only option is interpreted by B<mount.@PACKAGE@> itself; it is not
-B<lufs-@PACKAGE@fs>(7) nor B<lufsmount>(1) option.
+B<lufs-@PACKAGE@fs>(7) nor B<lufsd>(1) option.
=item B<uid>=B<500>
=head1 SEE ALSO
-B<lufs-@PACKAGE@fs>(7), B<lufsmount>(1)
+B<lufs-@PACKAGE@fs>(7), B<lufsd>(1)
=head1 AUTHOR