gnunet-fuse

GNUnet file-sharing directory mounting via FUSE
Log | Files | Refs | Submodules | README | LICENSE

commit 262e08b8d54f9dae5709509d766221f31e9ebaf9
parent 0a3cf0aef5660e1fef46cd9165a2436b09a24bb0
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed,  6 Jun 2012 09:37:15 +0000

-test URI

Diffstat:
Msrc/fuse/getattr.c | 6++++++
Msrc/fuse/gnunet-fuse.c | 9+++++++++
Msrc/fuse/open.c | 5+++++
Msrc/fuse/read.c | 6++++++
Msrc/fuse/readdir.c | 9++++++++-
5 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/src/fuse/getattr.c b/src/fuse/getattr.c @@ -30,6 +30,12 @@ * ignored. The 'st_ino' field is ignored except if the 'use_ino' * mount option is given. */ +/** + * @file fuse/getattr.c + * @brief 'stat' for fuse files + * @author Christian Grothoff + */ + #include "gnunet-fuse.h" #include "gfs_download.h" diff --git a/src/fuse/gnunet-fuse.c b/src/fuse/gnunet-fuse.c @@ -275,6 +275,15 @@ run (void *cls, ret = 3; return; } + if ( (GNUNET_YES != GNUNET_FS_uri_test_chk (uri)) && + (GNUNET_YES != GNUNET_FS_uri_test_loc (uri)) ) + { + fprintf (stderr, + _("The given URI is not for a directory and can thus not be mounted\n"), + emsg); + ret = 4; + return; + } map_mutex = GNUNET_mutex_create (GNUNET_NO); map = GNUNET_CONTAINER_multihashmap_create (1024); diff --git a/src/fuse/open.c b/src/fuse/open.c @@ -41,6 +41,11 @@ * Changed in version 2.2 */ +/** + * @file fuse/open.c + * @brief opening files + * @author Christian Grothoff + */ #include "gnunet-fuse.h" #include "gfs_download.h" diff --git a/src/fuse/read.c b/src/fuse/read.c @@ -34,6 +34,12 @@ * * Changed in version 2.2 */ + +/** + * @file fuse/read.c + * @brief reading files + * @author Christian Grothoff + */ #include "gnunet-fuse.h" #include "gfs_download.h" diff --git a/src/fuse/readdir.c b/src/fuse/readdir.c @@ -18,7 +18,7 @@ */ /* - * reddir.c - FUSE read directory function + * readdir.c - FUSE read directory function * * Created on: Mar 14, 2012 * Author: MG, Christian Grothoff, Matthias Wachs, @@ -45,6 +45,11 @@ * * Introduced in version 2.3 */ +/** + * @file fuse/readdir.c + * @brief readdir of fuse + * @author Christian Grothoff + */ #include "gnunet-fuse.h" #include "gfs_download.h" @@ -196,3 +201,5 @@ gn_readdir (const char *path, void *buf, fuse_fill_dir_t filler, GNUNET_FUSE_path_info_done (path_info); return ret; } + +/* end of readdir.c */