--- copyfs-1.0.1.orig/copyfs.1 +++ copyfs-1.0.1/copyfs.1 @@ -1,26 +1,38 @@ -.TH COPYFS "1" "October 2006" "copyfs" "Versionned File System" +.TH COPYFS "1" "May 2008" "copyfs" "Versioning File System" .SH NAME -copyfs +CopyFS \- Versioning File System for FUSE .SH DESCRIPTION -CopyFS is a copy-on-write, versionned file system. This file system is usefull for example when you have a directory containing important files, for which you want to track changes, and be able to revert to an older version. CopyFS lets you do that by transparently making backups of each file that you modify. You are then able to see what version are available for a file, and get an older version. +CopyFS is a copy-on-write, versioning file system for FUSE. CopyFS can +be used to maintain the revision history of a directory containing files +for which you want to track changes, and be able to revert to any older +version. CopyFS lets you do that by transparently making backups of each +file that you modify so that you can review and revert to any previous +revision. -The main commands related to CopyFS are : +Here is the list of commands related to CopyFS. See their man pages for +additional documentation. .TP -\fBcopyfs-mount\fR : -The command that you should use to mount a CopyFS file system. +\fIcopyfs-mount\fR(1) +Allows a directory to be placed under CopyFS revision control. .TP -\fBcopyfs-daemon\fR : -The CopyFS file system itself. You should not have to run it by yourself, instead use the copyfs-mount command. +\fIcopyfs-fversion\fR(1) +This command lets you check the revision history of a file, and +revert to an older version. .TP -\fBcopyfs-fversion\fR : -The command that you should use when you want to check which version are available for a file, and maybe revert to an older version. +\fIcopyfs-daemon\fR(1) +The CopyFS file system itself. You should not have to run it directly, +instead use the copyfs-mount command. + .SH HISTORY CopyFS 1.0 was released in December 2004. .SH AUTHORS CopyFS was created by Thomas Joubert and Nicolas Vigier -.SH "MORE INFOS" -http://n0x.org/copyfs/ +.SH LINKS + + CopyFS web site. + + FUSE - Filesystem in USErspace .SH SEE ALSO copyfs-fversion(1), copyfs-mount(1), copyfs-daemon(1) --- copyfs-1.0.1.orig/copyfs-fversion.1 +++ copyfs-1.0.1/copyfs-fversion.1 @@ -1,11 +1,15 @@ -.TH COPYFS-FVERSION "1" "October 2006" "copyfs-fversion" "User Commands" +.TH COPYFS-FVERSION "1" "May 2008" "copyfs-fversion" "User Commands" .SH NAME -copyfs-fversion +copyfs-fversion \- manage file revisions .SH SYNOPSIS -.B copyfs-fversion [-h] [-r] [-s] [-l version] [-g] file -[\fIOPTIONS\fR]... +.B copyfs\-fversion [\fI\-h\fR] [\fI\-r\fR] [\fI\-s\fR] [\fI\-l version\fR] [\fI\-g\fR] file +.br +.B copyfs\-fversion [\fI\-t tag\-name\fR] directory +.br +.B copyfs\-fversion [\fI\-u tag\-name\fR] directory .SH DESCRIPTION -This is the copyfs-fversion program. This programs lets you see and change versions informations on files hosted on a copyfs file system. +\fBcopyfs-fversion\fR lets you view and modify version information of +files hosted on a CopyFS file system. .TP \fB\-h\fR Print help and exit @@ -22,16 +26,21 @@ \fB\-l\fR \fIversion\fR Lock this version .TP -\fB\-t\fR \fItagfile\fR -Create a tagfile. This tagfile will contain the versions informations about the selected files. You can then restore thoses version later using this tagfile. +\fB\-t\fR \fItag\fR +Tag the current revisions of files in a directory. This tag will hold +the version information of the affected files and will allow the user +to later restore files to the state they were in when the tag was created. .TP -\fB\-u\fR \fItagfile\fR -Restore a tagfile. +\fB\-u\fR \fItag\fR +Restore revisions of the files to the state at the point of the tag. + .SH AUTHORS CopyFS was created by Thomas Joubert and Nicolas Vigier -.SH "MORE INFOS" +.SH LINKS + + CopyFS web site. -http://n0x.org/copyfs/ + FUSE - Filesystem in USErspace .SH SEE ALSO copyfs(1), copyfs-mount(1), copyfs-daemon(1) --- copyfs-1.0.1.orig/copyfs-daemon.1 +++ copyfs-1.0.1/copyfs-daemon.1 @@ -1,16 +1,20 @@ -.TH COPYFS-DAEMON "1" "October 2006" "copyfs-daemon" "User Commands" +.TH COPYFS-DAEMON "1" "May 2008" "copyfs-daemon" "User Commands" .SH NAME -copyfs-daemon +copyfs-daemon \- CopyFS daemon .SH SYNOPSIS .B copyfs-daemon [\fIOPTIONS\fR]... .SH DESCRIPTION -This is the copyfs-daemon. You should not run this program directly, instead, use copyfs-mount. +This is the copyfs-daemon. You should not run this program directly, +instead, use copyfs-mount. .SH AUTHORS -CopyFS was created by Thomas Joubert and Nicolas Vigier -.SH "MORE INFOS" +CopyFS was created by Thomas Joubert and Nicolas Vigier + +.SH LINKS -http://n0x.org/copyfs/ + CopyFS web site. + + FUSE - Filesystem in USErspace .SH SEE ALSO copyfs(1), copyfs-fversion(1), copyfs-mount(1) --- copyfs-1.0.1.orig/copyfs-mount.1 +++ copyfs-1.0.1/copyfs-mount.1 @@ -1,20 +1,44 @@ -.TH COPYFS-MOUNT "1" "October 2006" "copyfs-mount" "User Commands" +.TH COPYFS-MOUNT "1" "May 2008" "copyfs-mount" "User Commands" .SH NAME -copyfs-mount +copyfs-mount \- mounts a versioned file system .SH SYNOPSIS .B copyfs-mount \fIversion-directory\fR \fImount-point\fR .SH DESCRIPTION -This script lets you mount a copyfs file system. \fIversion-directory\fR is the directory where the files and versions informations will be stored, so choose a directory where a lot of free space is available. This directory should not be accessed by the users, to it is a good idea to put that directory inside a directory owned by root, for which you don't allow access to users. If you mount your copyfs file system for the first time, an empty directory should be fine (copyfs-mount will create the required files before running copyfs-daemon). \fImount-point\fR is the directory where the copyfs file system should be mounted. This is where the users will access the files. +This script lets you mount a CopyFS file system. \fIversion-directory\fR +is the directory where the files and version information will be stored by +CopyFS. -In order to unmount the filesystem, use the \fIfusermount\fR command : -.IP "" -$ fusermount \-u \fImount-point\fR +When using CopyFS for the first time, copyfs-mount will create +the required files in the \fIversion-directory\fR before running +copyfs-daemon. \fImount-point\fR is the directory where the copyfs +file system will be mounted. This is where the users will have access +to the files. + +If you want to mount a CopyFS at '/mnt/fs', whose version directory is +at /var/versions, you would use: + + \fBroot@host# copyfs-mount /var/versions /mnt/fs\fR + +To unmount it, simply do: + + \fBroot@host# umount /mnt/fs\fR + +As you would do for any other filesystem. + +You can also allow an ordinary non-root users to mount and unmount CopyFS +filesystems provided that the user is added to the 'fuse' group. Ordinary +users will be able unmount the filesystem, using the \fIfusermount\fR +command: + + \fB$ fusermount \-u \fImount-point\fR \fR .SH AUTHORS CopyFS was created by Thomas Joubert and Nicolas Vigier -.SH "MORE INFOS" +.SH LINKS + + CopyFS web site. -http://n0x.org/copyfs/ + FUSE - Filesystem in USErspace .SH SEE ALSO -copyfs(1), copyfs-fversion(1), copyfs-daemon(1) +copyfs(1), copyfs-fversion(1), copyfs-daemon(1), fusermount(1) --- copyfs-1.0.1.orig/copyfs-mount +++ copyfs-1.0.1/copyfs-mount @@ -38,7 +38,7 @@ fi fi -if [ $UID == 0 ]; then +if [ $UID = 0 ]; then # Allow other users and check permissions if run by root FILESYSTEM_PARAMETERS="${FILESYSTEM_PARAMETERS} -o default_permissions,allow_other" fi --- copyfs-1.0.1.orig/copyfs-fversion +++ copyfs-1.0.1/copyfs-fversion @@ -77,7 +77,7 @@ my ($output, $error); my $cmd; - $cmd = "getfattr -h -n '$name' --only-values -- '$file'"; + $cmd = "getfattr --absolute-names -h -n '$name' --only-values -- '$file'"; ($output, $error) = run_command($cmd); $error =~ s/^getfattr: // if $error; return ($output, $error); --- copyfs-1.0.1.orig/debian/compat +++ copyfs-1.0.1/debian/compat @@ -0,0 +1 @@ +5 --- copyfs-1.0.1.orig/debian/rules +++ copyfs-1.0.1/debian/rules @@ -0,0 +1,66 @@ +#!/usr/bin/make -f + +export DH_VERBOSE=1 + +CFLAGS = -g -Wall + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +config.status: configure + dh_testdir + +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + +build: build-stamp + +build-stamp: config.status + dh_testdir + + $(MAKE) + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + [ ! -f Makefile ] || $(MAKE) distclean clean + rm -f config.log config.cache config.sub config.guess config.status Makefile + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) prefix=$(CURDIR)/debian/copyfs/usr install + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installman + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- copyfs-1.0.1.orig/debian/copyright +++ copyfs-1.0.1/debian/copyright @@ -0,0 +1,29 @@ +This package was debianized by Anuradha Weeraman on +Thu, 06 Mar 2008 22:06:06 -0500. + +The current Debian maintainer is Anuradha Weeraman + +It was downloaded from http://n0x.org/copyfs/ + +Upstream Authors: + Nicolas Vigier (boklm@mars-attacks.org) + Thomas Joubert (widan@net-42.eu.org) + +Copyright (C) 2004 Nicolas Vigier , + Thomas Joubert + +CopyFS is distributed under the terms of GPL. On Debian systems, the +full text of the license can be found at /usr/share/common-licenses/GPL. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License with +the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL; +if not, write to the Free Software Foundation, Inc., 51 Franklin Street, +Fifth Floor, Boston, MA 02110-1301 USA + +The Debian packaging is (C) 2008, Anuradha Weeraman and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- copyfs-1.0.1.orig/debian/control +++ copyfs-1.0.1/debian/control @@ -0,0 +1,15 @@ +Source: copyfs +Section: utils +Priority: optional +Maintainer: Anuradha Weeraman (anu) +Build-Depends: debhelper (>= 5), autotools-dev, libattr1-dev, libfuse-dev +Standards-Version: 3.7.3 +Uploaders: NIIBE Yutaka +Homepage: http://n0x.org/copyfs/ + +Package: copyfs +Architecture: any +Depends: ${shlibs:Depends}, attr, perl +Description: Versioning filesystem for FUSE + CopyFS keeps versioned copies of all changes done to files under its + control and allows the user to revert back to any previous revision. --- copyfs-1.0.1.orig/debian/dirs +++ copyfs-1.0.1/debian/dirs @@ -0,0 +1 @@ +usr/bin --- copyfs-1.0.1.orig/debian/docs +++ copyfs-1.0.1/debian/docs @@ -0,0 +1,2 @@ +README +TODO --- copyfs-1.0.1.orig/debian/watch +++ copyfs-1.0.1/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://n0x.org/copyfs/copyfs-(.*)\.tar\.bz2 --- copyfs-1.0.1.orig/debian/README.Debian +++ copyfs-1.0.1/debian/README.Debian @@ -0,0 +1,7 @@ +copyfs for Debian +----------------- + +for non-root users to be able to mount the CopyFS filesystem, the user needs to +be added to the 'fuse' group. + +-- Anuradha Weeraman (anu) Mon, 10 Mar 2008 00:04:18 -0500 --- copyfs-1.0.1.orig/debian/changelog +++ copyfs-1.0.1/debian/changelog @@ -0,0 +1,20 @@ +copyfs (1.0.1-3) unstable; urgency=low + + * Modified copyfs-fversion to work with absolute paths + * Tweaks to the man pages + + -- Anuradha Weeraman (anu) Wed, 07 May 2008 22:58:21 -0400 + +copyfs (1.0.1-2) unstable; urgency=low + + * Bashism (Closes: #473684) + * Updated debian/control, added Uploaders and Homepage fields + + -- Anuradha Weeraman (anu) Thu, 03 Apr 2008 19:11:40 -0400 + +copyfs (1.0.1-1) unstable; urgency=low + + * Initial release (Closes: #469530) + + -- Anuradha Weeraman (anu) Thu, 06 Mar 2008 22:06:06 -0500 +