Hello,

I try to execute the following commands :

d=/tmp
rw_branch=/tmp/write
ro_branch=/tmp/read
union_mount_pt=/tmp/mnt

mkdir -p ${rw_branch} ${ro_branch} ${union_mount_pt}

unionimap -c $d/fwd
unionimap -a $d/fwd $d/rev.rw $rw_branch
unionimap -a $d/fwd $d/rev.ro $ro_branch
    Specified fs already exists in the forward map    <=== Error message

mount -t unionfs -o dirs=${rw_branch}=rw:${ro_branch}=ro,imap=${d}/fwd:
${d}/rev.rw:${d}/rev.ro acme ${union_mount_pt}

The dmesg gives the following lines :
unionfs: invalid imap option '/tmp/fwd:/tmp/rev.rw:/tmp/rev.ro' 
unionfs_read_super: error while parsing options (err = -22)



For now, I have unionfs 1.4 + 3 patches (see below) but I cannot use.

I'd like to know where I can find the latest set of patches for unionfs
1.4.

Thanks in advance.

unionfs-1.4-Makefile.patch
============================
--- unionfs-1.4.ori/Makefile    2006-11-05 00:56:59.000000000 +0100
+++ unionfs-1.4/Makefile        2007-01-09 17:48:47.000000000 +0100
@@ -33,8 +33,8 @@

 CC     = gcc
 KERNELVERSION=$(shell echo $(KVERS) | cut -d. -f1,2)
-EXTRA_CFLAGS += ${TOPINC} -Wall -Werror ${EXTRACFLAGS}
${UNIONFS_DEBUG_CFLAG} ${UNIONFS_OPT_CFLAG} ${UNIONFS_VERSION_CFLAG}
-UCFLAGS = -I. ${UNIONFS_DEBUG_CFLAG} ${UNIONFS_OPT_CFLAG} -Wall -Werror
${EXTRAUCFLAGS}  ${UNIONFS_VERSION_CFLAG}
+EXTRA_CFLAGS += ${TOPINC} -Wall ${EXTRACFLAGS} ${UNIONFS_DEBUG_CFLAG}
${UNIONFS_OPT_CFLAG} ${UNIONFS_VERSION_CFLAG}
+UCFLAGS = -I. ${UNIONFS_DEBUG_CFLAG} ${UNIONFS_OPT_CFLAG} -Wall
${EXTRAUCFLAGS}  ${UNIONFS_VERSION_CFLAG}

 obj-m := unionfs.o
 unionfs-objs := subr.o dentry.o file.o inode.o main.o super.o \
============================


unionfs-1.4-stale_inode.c.patch
============================
--- unionfs-1.4.ori/stale_inode.c       2006-11-05 00:56:59.000000000
+0100
+++ unionfs-1.4/stale_inode.c   2007-01-09 17:47:11.000000000 +0100
@@ -10,7 +10,6 @@
  *  $Id: stale_inode.c,v 1.13 2006/03/21 09:22:11 jsipek Exp $
  */

-#include <linux/config.h>
 #include <linux/version.h>

 #include <linux/fs.h>
============================


unionfs-1.4-unionfs.h.patch
============================
--- unionfs-1.4.ori/unionfs.h   2006-11-05 00:56:59.000000000 +0100
+++ unionfs-1.4/unionfs.h       2007-01-09 17:46:28.000000000 +0100
@@ -3,7 +3,6 @@

 #ifdef __KERNEL__

-#include <linux/config.h>
 #include <linux/version.h>
 #include <linux/sched.h>
 #include <linux/kernel.h>
@@ -517,7 +516,6 @@
        dest->i_atime = src->i_atime;
        dest->i_mtime = src->i_mtime;
        dest->i_ctime = src->i_ctime;
-       dest->i_blksize = src->i_blksize;
        dest->i_blkbits = src->i_blkbits;
        dest->i_size = src->i_size;
        dest->i_blocks = src->i_blocks;
============================
-- 
Philippe Malinge

_______________________________________________
unionfs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs

Reply via email to