head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.10 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.8 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.6 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.4 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.2 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q1:1.1.1.1.0.16 pkgsrc-2009Q1-base:1.1.1.1 pkgsrc-2008Q4:1.1.1.1.0.14 pkgsrc-2008Q4-base:1.1.1.1 pkgsrc-2008Q3:1.1.1.1.0.12 pkgsrc-2008Q3-base:1.1.1.1 cube-native-xorg:1.1.1.1.0.10 cube-native-xorg-base:1.1.1.1 pkgsrc-2008Q2:1.1.1.1.0.8 pkgsrc-2008Q2-base:1.1.1.1 cwrapper:1.1.1.1.0.6 pkgsrc-2008Q1:1.1.1.1.0.4 pkgsrc-2008Q1-base:1.1.1.1 pkgsrc-2007Q4:1.1.1.1.0.2 pkgsrc-2007Q4-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.2 date 2009.04.09.03.33.13; author manu; state dead; branches; next 1.1; 1.1 date 2007.11.27.18.55.40; author pooka; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2007.11.27.18.55.40; author pooka; state Exp; branches; next ; desc @@ 1.2 log @Update to 1.1.1 From changelog: Bugs fixed since ChironFS 1.1.0: o ChironFS could not locate the correct place where chirctl was when called using the environment variable $PATH to find it. Now chirctl is called in the same way as ChironFS, leaving this work to $PATH searches. Changes since ChironFS 1.1.0 --------------------- o ChironFS could not locate the correct place where chirctl was when called using the environment variable $PATH to find it. Now chirctl is called in the same way as ChironFS, leaving this work to $PATH searches. Changes since ChironFS 1.0.0 --------------------- o Added the --ctl (or -c) option which allows to mount a pseudo-filesystem (like /proc) to control the behavior of the Chiron filesystem being mounted. Currently, it's only possible to show the status of the replicas and change their status. Dynamically generated nagios plugin scripts are provided too. o Updated the howto in the chapter 5, explaining the use of the --ctl option. @ text @$NetBSD: patch-ac,v 1.1 2007/11/27 18:55:40 pooka Exp $ --- src/chironfs.c.orig 2007-11-27 17:00:15.000000000 +0100 +++ src/chironfs.c 2007-11-27 19:08:07.000000000 +0100 @@@@ -27,8 +27,7 @@@@ #define FUSE_USE_VERSION 25 #include -#include -#include +#include #include #include #include @@@@ -43,13 +42,17 @@@@ #ifdef HAVE_SETXATTR #include #endif +#ifdef __linux__ #include #include -#include #include +#endif +#include #include #include +#include "config.h" + #define _CHIRON_H_ #include "chironfs.h" @@@@ -186,6 +189,16 @@@@ } } +char *do_realpath(const char *path, char *resolvedpath) +{ + +#ifndef __linux__ + if (resolvedpath == NULL) + resolvedpath = malloc(PATH_MAX); +#endif + return realpath(path, resolvedpath); +} + //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// // @@@@ -2234,7 +2247,7 @@@@ return(NULL); } } else { - realbasedir = realpath(basedir,NULL); + realbasedir = do_realpath(basedir,NULL); if (realbasedir==NULL) { free(basedir); return(NULL); @@@@ -2383,6 +2396,7 @@@@ dbg(("\nfuse_argv: %s %s %s", fuse_argv[0], fuse_argv[1], fuse_argv[2])); dbg(("\n-------------------------------------------------------------------------------")); +#ifdef HAVE_GETMNTENT FILE *mtab; struct mntent *mntentry; mtab = setmntent("/etc/mtab", "r"); @@@@ -2393,6 +2407,7 @@@@ } } while(mntentry!=NULL); endmntent (mtab); +#endif dbg(("\n-------------------------------------------------------------------------------")); res = fuse_main(3, fuse_argv, &chiron_oper); @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @ChironFS, replicating file system which operates like RAID1 on a file system level, i.e. is configured by collecting several mountpoints into one virtual replicated file system. @ text @@