The NetBSD Project

CVS log for src/lib/librefuse/refuse.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / librefuse

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.95.6.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:28:00 2013 UTC (13 months, 3 weeks ago) by tls
Branch: tls-maxphys
Changes since 1.95: +7 -5 lines
Diff to previous 1.95 (colored) next main 1.96 (colored)

resync with head

Revision 1.94.2.2 / (download) - annotate - [select for diffs], Wed Jan 23 00:05:26 2013 UTC (14 months, 3 weeks ago) by yamt
Branch: yamt-pagecache
Changes since 1.94.2.1: +7 -5 lines
Diff to previous 1.94.2.1 (colored) to branchpoint 1.94 (colored) next main 1.95 (colored)

sync with head

Revision 1.89.4.3 / (download) - annotate - [select for diffs], Sun Jan 13 17:57:48 2013 UTC (15 months ago) by bouyer
Branch: netbsd-5
Changes since 1.89.4.2: +8 -6 lines
Diff to previous 1.89.4.2 (colored) to branchpoint 1.89 (colored) next main 1.90 (colored)

Pull up following revision(s) (requested by tron in ticket #1836):
	lib/librefuse/refuse.c: revision 1.96 via patch
FUSE seems to allow short writes without errors but PUFFS doesn't. Work
around this by returning ENOSPC in case of a short write to avoid protocol
errors. This change is based on problem analysis provided by Antti Kantee.
This fixes PR lib/45129 by myself.

Revision 1.95.2.1 / (download) - annotate - [select for diffs], Mon Jan 7 15:54:00 2013 UTC (15 months, 1 week ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Changes since 1.95: +7 -5 lines
Diff to previous 1.95 (colored) next main 1.96 (colored)

Pull up following revision(s) (requested by tron in ticket #772):
	lib/librefuse/refuse.c: revision 1.96
FUSE seems to allow short writes without errors but PUFFS doesn't. Work
around this by returning ENOSPC in case of a short write to avoid protocol
errors. This change is based on problem analysis provided by Antti Kantee.
This fixes PR lib/45129 by myself.

Revision 1.96 / (download) - annotate - [select for diffs], Sun Dec 30 10:04:22 2012 UTC (15 months, 2 weeks ago) by tron
Branch: MAIN
CVS Tags: yamt-pagecache-base8, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, agc-symver-base, agc-symver, HEAD
Changes since 1.95: +7 -5 lines
Diff to previous 1.95 (colored)

FUSE seems to allow short writes without errors but PUFFS doesn't. Work
around this by returning ENOSPC in case of a short write to avoid protocol
errors. This change is based on problem analysis provided by Antti Kantee.

This fixes PR lib/45129 by myself.

Revision 1.94.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:32 2012 UTC (2 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.94: +5 -2 lines
Diff to previous 1.94 (colored)

sync with head

Revision 1.95 / (download) - annotate - [select for diffs], Thu Nov 24 01:56:22 2011 UTC (2 years, 4 months ago) by manu
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: tls-maxphys, netbsd-6
Changes since 1.94: +5 -2 lines
Diff to previous 1.94 (colored)

Set eofflag in puffs_fuse_node_readdir() from librefuse.

From Evgeniy Ivanov <lolkaantimat@gmail.com>

Revision 1.89.4.2 / (download) - annotate - [select for diffs], Mon Aug 8 19:56:50 2011 UTC (2 years, 8 months ago) by riz
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Changes since 1.89.4.1: +5 -5 lines
Diff to previous 1.89.4.1 (colored) to branchpoint 1.89 (colored)

Pull up following revision(s) (requested by tron in ticket #1650):
	lib/librefuse/refuse.c: revision 1.94
Call the FUSE init operation before we try to access the file-system.
This prevents a crash in "fuse_ext2" which I previously worked around
with a patch.

Revision 1.89.4.1 / (download) - annotate - [select for diffs], Mon Aug 8 19:53:29 2011 UTC (2 years, 8 months ago) by riz
Branch: netbsd-5
Changes since 1.89: +4 -4 lines
Diff to previous 1.89 (colored)

Pull up following revision(s) (requested by tron in ticket #1648):
	lib/librefuse/refuse.c: revision 1.93
Don't ignore "userdata" argument in "fuse_main_real". This can crash
a FUSE file-system that passes a non-NULL argument here.

Revision 1.94 / (download) - annotate - [select for diffs], Sat Jul 9 17:16:46 2011 UTC (2 years, 9 months ago) by tron
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.93: +5 -5 lines
Diff to previous 1.93 (colored)

Call the FUSE init operation before we try to access the file-system.
This prevents a crash in "fuse_ext2" which I previously worked around
with a patch.

Revision 1.93 / (download) - annotate - [select for diffs], Sat Jul 9 14:50:00 2011 UTC (2 years, 9 months ago) by tron
Branch: MAIN
Changes since 1.92: +4 -4 lines
Diff to previous 1.92 (colored)

Don't ignore "userdata" argument in "fuse_main_real". This can crash
a FUSE file-system that passes a non-NULL argument here.

Revision 1.91.2.1 / (download) - annotate - [select for diffs], Wed May 13 19:18:35 2009 UTC (4 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.91: +3 -3 lines
Diff to previous 1.91 (colored) next main 1.92 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.92 / (download) - annotate - [select for diffs], Thu Mar 5 01:21:57 2009 UTC (5 years, 1 month ago) by msaitoh
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.91: +3 -3 lines
Diff to previous 1.91 (colored)

fix typo (s/stucture/structure/)

Revision 1.91 / (download) - annotate - [select for diffs], Mon Jan 26 04:00:40 2009 UTC (5 years, 2 months ago) by lukem
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.90: +3 -3 lines
Diff to previous 1.90 (colored)

sign-compare fix

Revision 1.90 / (download) - annotate - [select for diffs], Mon Jan 19 10:01:38 2009 UTC (5 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored)

fix -Wsign-compare issue

Revision 1.88.6.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:39:24 2008 UTC (5 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.88: +27 -6 lines
Diff to previous 1.88 (colored) next main 1.89 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.89 / (download) - annotate - [select for diffs], Fri Aug 1 15:54:09 2008 UTC (5 years, 8 months ago) by dillo
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Branch point for: netbsd-5
Changes since 1.88: +27 -6 lines
Diff to previous 1.88 (colored)

Add API version 2.6 variant of fuse_setup.

Reviewed by agc.

Revision 1.75.2.3 / (download) - annotate - [select for diffs], Sun Mar 23 00:40:29 2008 UTC (6 years ago) by matt
Branch: matt-armv6
Changes since 1.75.2.2: +3 -3 lines
Diff to previous 1.75.2.2 (colored) next main 1.76 (colored)

sync with HEAD

Revision 1.88 / (download) - annotate - [select for diffs], Mon Jan 14 16:07:00 2008 UTC (6 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-base, matt-armv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Branch point for: wrstuden-revivesa
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored)

return -ret from statfs

Revision 1.75.2.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:36:54 2008 UTC (6 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.75.2.1: +35 -55 lines
Diff to previous 1.75.2.1 (colored)

sync with HEAD

Revision 1.87 / (download) - annotate - [select for diffs], Thu Dec 27 11:39:06 2007 UTC (6 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.86: +2 -3 lines
Diff to previous 1.86 (colored)

Uncommit accidentally committed PUFFS_FLAG_OPDUMP.

overextensive library verbosity noticed by riz

Revision 1.86 / (download) - annotate - [select for diffs], Wed Dec 12 16:37:56 2007 UTC (6 years, 4 months ago) by xtraeme
Branch: MAIN
Changes since 1.85: +3 -3 lines
Diff to previous 1.85 (colored)

puffs_fuse_node_create: if create() is specified set S_IFREG explicitly
to avoid passing unspecified mode. Fixes latest ntfs-3g... patch
from pooka tested by myself.

Revision 1.85 / (download) - annotate - [select for diffs], Fri Nov 30 19:02:29 2007 UTC (6 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: cube-autoconf-base, cube-autoconf
Changes since 1.84: +29 -45 lines
Diff to previous 1.84 (colored)

Rototill.

Ok, ok, a few more words about it: stop holding puffs_cc as a holy
value and passing it around to almost every possible place (popquiz:
which kernel variable does this remind you of?).  Instead, pass
the natural choice, puffs_usermount, and fetch puffs_cc via
puffs_cc_getcc() only in routines which actually need it.  This
not only simplifies code, but (thanks to the introduction of
puffs_cc_getcc()) enables constructs which weren't previously sanely
possible, say layering as a curious example.

There's still a little to do on this front, but this was the major
fs interface blast.

Revision 1.84 / (download) - annotate - [select for diffs], Tue Nov 27 11:31:20 2007 UTC (6 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.83: +10 -14 lines
Diff to previous 1.83 (colored)

Remove "puffs_cid" from the puffs interface following l-removal
from the kernel vfs interfaces.  puffs_cc_getcaller(pcc) can be
used now should the same information be desired.

Revision 1.83 / (download) - annotate - [select for diffs], Thu Nov 8 17:08:46 2007 UTC (6 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.82: +3 -2 lines
Diff to previous 1.82 (colored)

I've written more than a fair share of this to see my name up in
lights.  Wine & women, come to me now!

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:11:57 2007 UTC (6 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.75: +35 -35 lines
Diff to previous 1.75 (colored)

sync with HEAD

Revision 1.82 / (download) - annotate - [select for diffs], Mon Nov 5 17:48:18 2007 UTC (6 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored)

Pull the daemonizing code out of the library mainloop into the file
servers.  Calling daemon() (i.e. fork()ing) inside a library can
cause nice surprises for e.g. threaded programs.  As discussed with
Greg Oster & others.

Revision 1.81 / (download) - annotate - [select for diffs], Mon Nov 5 13:41:52 2007 UTC (6 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.80: +7 -4 lines
Diff to previous 1.80 (colored)

Header cleanup: don't need defs.h to do a few includes for us.  Also,
use #include <> for global headers instead of #include "".

Revision 1.80 / (download) - annotate - [select for diffs], Mon Nov 5 13:38:27 2007 UTC (6 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.79: +25 -12 lines
Diff to previous 1.79 (colored)

* Fix pthread key creation to depend on if it hasn't been created before
  instead of depending if a lock was succesfully acquired.  Also, add
  a comment explaining why it is such complex (for all I could guess).
* replace err()'s with abort()
* replace some abort()'s by returning failure

Revision 1.79 / (download) - annotate - [select for diffs], Sun Oct 28 18:41:54 2007 UTC (6 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.78: +4 -22 lines
Diff to previous 1.78 (colored)

Use puffs prepost ops for setting pid/lwpid instead of separate
calls in all methods.

Revision 1.78 / (download) - annotate - [select for diffs], Tue Oct 23 17:19:19 2007 UTC (6 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.77: +19 -1 lines
Diff to previous 1.77 (colored)

revert 1.77, MULTITHREADED_REFUSE has problems

Revision 1.77 / (download) - annotate - [select for diffs], Sun Oct 21 16:46:52 2007 UTC (6 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.76: +3 -21 lines
Diff to previous 1.76 (colored)

Get rid of MULTITHREADED_REFUSE for context queries.  We can simply
use the pthread codepaths always.

Revision 1.76 / (download) - annotate - [select for diffs], Sun Oct 21 14:36:35 2007 UTC (6 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.75: +24 -22 lines
Diff to previous 1.75 (colored)

Use new puffs features to provide correct caller info instead of
sometimes returning stale data.

Revision 1.75 / (download) - annotate - [select for diffs], Sat Aug 25 12:03:59 2007 UTC (6 years, 7 months ago) by pooka
Branch: MAIN
Branch point for: matt-armv6
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored)

Now that we don't dump operations by default, might as well detach
from the console by default also.  (but still would be nice if someone
provided options to toggle these using the fuse options framework)

Revision 1.74 / (download) - annotate - [select for diffs], Sun Aug 12 15:32:39 2007 UTC (6 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.73: +5 -2 lines
Diff to previous 1.73 (colored)

In case a file system doesn't provide st_blksize, default to DEV_BSIZE.

Revision 1.73.4.2 / (download) - annotate - [select for diffs], Wed Jul 18 22:05:42 2007 UTC (6 years, 9 months ago) by pooka
Branch: matt-mips64
Changes since 1.73.4.1: +1436 -0 lines
Diff to previous 1.73.4.1 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored)

Don't stay on the foreground and dump operations by default.

XXX: someone(tm) should make it possible to set PUFFS_OPFLAG_DUMP
using the fuse options framework

Revision 1.73.4.1, Wed Jul 18 22:05:41 2007 UTC (6 years, 9 months ago) by pooka
Branch: matt-mips64
Changes since 1.73: +0 -1436 lines
FILE REMOVED

file refuse.c was added on branch matt-mips64 on 2007-07-18 22:05:42 +0000

Revision 1.73 / (download) - annotate - [select for diffs], Wed Jul 18 22:05:41 2007 UTC (6 years, 9 months ago) by pooka
Branch: MAIN
CVS Tags: matt-mips64-base, hpcarm-cleanup
Branch point for: matt-mips64
Changes since 1.72: +2 -3 lines
Diff to previous 1.72 (colored)

Don't stay on the foreground and dump operations by default.

XXX: someone(tm) should make it possible to set PUFFS_OPFLAG_DUMP
using the fuse options framework

Revision 1.72 / (download) - annotate - [select for diffs], Tue Jul 17 11:34:53 2007 UTC (6 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.71: +4 -3 lines
Diff to previous 1.71 (colored)

* add mntfromname parameter to puffs_init()
* set it in file servers

Revision 1.71 / (download) - annotate - [select for diffs], Sun Jul 1 18:40:16 2007 UTC (6 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.70: +30 -26 lines
Diff to previous 1.70 (colored)

adapt: **newnode etc. pointers -> struct puffs_newinfo

Revision 1.70 / (download) - annotate - [select for diffs], Sun Jul 1 17:23:45 2007 UTC (6 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.69: +32 -28 lines
Diff to previous 1.69 (colored)

adapt: pid -> const struct puffs_cid *

Revision 1.69 / (download) - annotate - [select for diffs], Sun Jul 1 15:32:02 2007 UTC (6 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.68: +11 -11 lines
Diff to previous 1.68 (colored)

adapt: pcn->pcn_cred is now a pointer

Revision 1.68 / (download) - annotate - [select for diffs], Sun Jun 24 22:25:49 2007 UTC (6 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.67: +3 -4 lines
Diff to previous 1.67 (colored)

Actually, keep PUFFS_KFLAG_NOCACHE and -o cache around as shorthand
to neither page- nor namecache.

Revision 1.67 / (download) - annotate - [select for diffs], Sun Jun 24 22:18:38 2007 UTC (6 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.66: +4 -3 lines
Diff to previous 1.66 (colored)

PUFFS_KFLAG_NOCACHE became two, so introduce the command line options
-o nonamecache and -o nopagecache and adapt file systems where necessary.

Revision 1.66 / (download) - annotate - [select for diffs], Tue Jun 12 18:57:05 2007 UTC (6 years, 10 months ago) by agc
Branch: MAIN
Changes since 1.65: +164 -75 lines
Diff to previous 1.65 (colored)

Use pthread_[gs]etspecific to store a pointer to the fuse_context
information, enabled if MULTITHREADED_REFUSE is defined at build
time. This is not enabled by default since libpuffs is not
threadsafe yet.

librefuse is still not threadsafe, but this gets rid of a whole lot of
problems in the meantime.

Revision 1.65 / (download) - annotate - [select for diffs], Tue Jun 12 18:54:36 2007 UTC (6 years, 10 months ago) by agc
Branch: MAIN
Changes since 1.64: +10 -10 lines
Diff to previous 1.64 (colored)

Minor cleanup - change uses of malloc, memset to calloc.

Use EXIT_FAILURE in preference to the less informational 1.

Revision 1.64 / (download) - annotate - [select for diffs], Tue Jun 12 18:53:29 2007 UTC (6 years, 10 months ago) by agc
Branch: MAIN
Changes since 1.63: +31 -29 lines
Diff to previous 1.63 (colored)

Re-work the way the SET_FUSE_CONTEXT* macros are done, following
feedback from Antti.

Revision 1.63 / (download) - annotate - [select for diffs], Mon Jun 11 20:54:33 2007 UTC (6 years, 10 months ago) by agc
Branch: MAIN
Changes since 1.62: +10 -6 lines
Diff to previous 1.62 (colored)

# use puffs_cred_getuid(3) and puffs_cred_getgid(3)

for i in `jot 100 1`; do
	echo "I must respect the abstractions which pooka put in puffs_cred(3)"
done

Revision 1.62 / (download) - annotate - [select for diffs], Mon Jun 11 20:10:00 2007 UTC (6 years, 10 months ago) by agc
Branch: MAIN
Changes since 1.61: +95 -34 lines
Diff to previous 1.61 (colored)

Set the uid, gid and pid wherever possible (i.e. where known). This gets
us far enough along that fuse-loggedfs now works with the correct command,
uid and gid being displayed.

Revision 1.61 / (download) - annotate - [select for diffs], Thu May 24 00:55:57 2007 UTC (6 years, 10 months ago) by agc
Branch: MAIN
Changes since 1.60: +5 -2 lines
Diff to previous 1.60 (colored)

After we've malloc'd an area of storage, zero out this storage, "just in
case".

Revision 1.60 / (download) - annotate - [select for diffs], Thu May 17 21:28:12 2007 UTC (6 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.59: +12 -4 lines
Diff to previous 1.59 (colored)

Calling puffs_exit() in fuse_{exit,unmount}() is wrong, as those
shouldn't release resources.  As a quick hack to prevent double
frees etc, introduce "dead" variable into fuse channel to signal
if the backing puffs resource was already freed.  XXX: the check
is only in exit/unmount currently.

Proper fix really depends on some puffs features I still haven't
gotten around to doing.

Revision 1.59 / (download) - annotate - [select for diffs], Thu May 17 21:00:32 2007 UTC (6 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.58: +3 -2 lines
Diff to previous 1.58 (colored)

create hash for the root path object

Revision 1.58 / (download) - annotate - [select for diffs], Thu May 17 16:41:18 2007 UTC (6 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.57: +3 -2 lines
Diff to previous 1.57 (colored)

initialize refusenode contents to 0

(don't change malloc to calloc and expect things not to break)

Revision 1.57 / (download) - annotate - [select for diffs], Thu May 17 14:13:04 2007 UTC (6 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.56: +6 -7 lines
Diff to previous 1.56 (colored)

reflect changes in fs mount: use puffs_mount() instead of
puffs_domount() & puffs_start()

Revision 1.56 / (download) - annotate - [select for diffs], Thu May 17 01:55:43 2007 UTC (6 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.55: +6 -38 lines
Diff to previous 1.55 (colored)

More fixes:
- make sure that the args array is NULL terminated.
- make sure argc is initialized and argv is set to NULL after freeing.
- make the deep copy function an opt interface function.

Revision 1.55 / (download) - annotate - [select for diffs], Wed May 16 21:39:08 2007 UTC (6 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.54: +38 -27 lines
Diff to previous 1.54 (colored)

- Always check strdup return. For now we are lazy and bail instead of cleaning
  up.
- Use malloc and free instead of macros, delete macros.
- Merge the two copies of deep copy and free args that were slightly buggy
  into one and use that one.

XXX: Lots of ints should be size_t.
XXX: Bailing on error is not a good thing for a library.
XXX: Defs.h should be eliminated completely. Not all files need all the headers.

Revision 1.54 / (download) - annotate - [select for diffs], Wed May 16 10:53:41 2007 UTC (6 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.53: +4 -2 lines
Diff to previous 1.53 (colored)

Enable puffs_fakecc.  FUSE file systems don't use continuations anyway,
and now file servers linked against libpthread won't crash when they
attempt to malloc something.

Revision 1.53 / (download) - annotate - [select for diffs], Tue May 15 22:56:16 2007 UTC (6 years, 11 months ago) by agc
Branch: MAIN
Changes since 1.52: +44 -16 lines
Diff to previous 1.52 (colored)

When parsing arguments for the directory to mount, search backwards from
the end of the argument vector for an argument that doesn't begin with '-',
and use it - this improves upon the previous naive approach of using the
last argument, which could have been placed there by one of the argument
appending functions.

Be consistent with the mount name processing, and always do the
puffs:refuse:filesystem substitution once and once only.

% priv mount.ntfs-3g ntfs-refuse.img /mnt
% df /mnt
Filesystem           1K-blocks      Used     Avail Capacity  Mounted on
puffs:refuse:ntfs-3g   1000943     66309    934634     6%    /mnt
% priv umount /mnt
% priv /usr/src/share/examples/refuse/id3fs/id3fs /mnt &
% df /mnt
Filesystem         1K-blocks      Used     Avail Capacity  Mounted on
puffs:refuse:id3fs         0         0         0   100%    /mnt
% priv umount /mnt
%

Revision 1.52 / (download) - annotate - [select for diffs], Tue May 15 22:46:06 2007 UTC (6 years, 11 months ago) by agc
Branch: MAIN
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored)

When puffs_mount fails, display the name of the directory which wasn't
able to be mounted.

Revision 1.51 / (download) - annotate - [select for diffs], Thu May 3 21:02:54 2007 UTC (6 years, 11 months ago) by agc
Branch: MAIN
Changes since 1.50: +110 -71 lines
Diff to previous 1.50 (colored)

Implement fuse_setup(), and fuse_teardown() - necessary for the python
bindings for refuse.

Revision 1.50 / (download) - annotate - [select for diffs], Wed May 2 18:05:54 2007 UTC (6 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.49: +10 -2 lines
Diff to previous 1.49 (colored)

In case a fuse fs hands an stbuf with an inode number 0 to the
readdir filler, fake the inode number.  Our readdir() doesn't show
entries with inode number 0.

per discussion with Stephen Borrill

Revision 1.49 / (download) - annotate - [select for diffs], Tue May 1 15:58:25 2007 UTC (6 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.48: +3 -2 lines
Diff to previous 1.48 (colored)

use PUFFS_FLAG_HASHPATH

Revision 1.48 / (download) - annotate - [select for diffs], Mon Apr 16 09:55:51 2007 UTC (7 years ago) by agc
Branch: MAIN
Changes since 1.47: +47 -8 lines
Diff to previous 1.47 (colored)

Flesh out the args management a bit more:

+ put some meat into the add_arg and insert_arg functions
+ implement the free_args function
+ use 0 and 1 return values, instead of EXIT_SUCCESS and EXIT_FAILURE, in
  internal functions (they bear no relation to shell exit values)
+ deep copy argument structures in refuse.c - we need to do this because
  some FUSE file systems attempt to obliterate^Wcloak the argument vector
  "for security reasons"
+ a side benefit of this is that we get the specific refuse file system
  name back again:

[10:48:43] agc@inspiron1300 ...src/lib/librefuse 38 > df
Filesystem         1K-blocks      Used     Avail Capacity  Mounted on
/dev/dk0            28101396  19318530   7377798    72%    /
kernfs                     1         1         0   100%    /kern
procfs                     4         4         0   100%    /proc
ptyfs                      1         1         0   100%    /dev/pts
puffs:refuse:id3fs         0         0         0   100%    /mnt
[10:48:51] agc@inspiron1300 ...src/lib/librefuse 39 >

Revision 1.47 / (download) - annotate - [select for diffs], Fri Apr 13 13:35:46 2007 UTC (7 years ago) by pooka
Branch: MAIN
Changes since 1.46: +3 -4 lines
Diff to previous 1.46 (colored)

Instead of keeping on adding parameters to puffs_mount(), make it
only take the bare essentials, which currently means removing
"maxreqlen" from the argument list (all current callers I'm aware
of set it as 0 anyway).  Introduce puffs_init(), which provides a
context for setting various parameters and puffs_domount(), which
can be used to mount the file system.  Keep puffs_mount() as a
shortcut for the above two for simple file systems.

Bump development ABI version to 13.  After all, it's Friday the 13th.
Watch out!  Bad things can happen on Friday the 13th. --No carrier--

Revision 1.46 / (download) - annotate - [select for diffs], Thu Apr 12 15:09:01 2007 UTC (7 years ago) by pooka
Branch: MAIN
Changes since 1.45: +35 -34 lines
Diff to previous 1.45 (colored)

Hide struct puffs_usermount from the rest of the world and provide
accessors for interesting data in it.  Namely, you can now get
pu->pu_privdata with puffs_getspecific(), pu->pu_pn_root with
puffs_set/getroot() and pu->pu_maxreqlen with puffs_getmaxreqlen().

Revision 1.45 / (download) - annotate - [select for diffs], Wed Apr 11 21:10:51 2007 UTC (7 years ago) by pooka
Branch: MAIN
Changes since 1.44: +5 -5 lines
Diff to previous 1.44 (colored)

adapt to new readdir signature.  no functional change

Revision 1.44 / (download) - annotate - [select for diffs], Fri Mar 16 08:17:36 2007 UTC (7 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.43: +4 -3 lines
Diff to previous 1.43 (colored)

use puffs_addvtype2mode() in puffs_fuse_node_mknod()

Revision 1.43 / (download) - annotate - [select for diffs], Tue Mar 13 22:47:04 2007 UTC (7 years, 1 month ago) by agc
Branch: MAIN
Changes since 1.42: +68 -142 lines
Diff to previous 1.42 (colored)

Revert the most recent changes I made - they weren't ready for primetime.

Revision 1.42 / (download) - annotate - [select for diffs], Tue Mar 13 22:25:32 2007 UTC (7 years, 1 month ago) by agc
Branch: MAIN
Changes since 1.41: +10 -6 lines
Diff to previous 1.41 (colored)

Fix a thinko - if  we're going to do a deep copy, let's do it properly.

With  thanks to xtraeme for the viirtual PR.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Mar 13 20:50:47 2007 UTC (7 years, 1 month ago) by agc
Branch: MAIN
Changes since 1.40: +136 -66 lines
Diff to previous 1.40 (colored)

+ Only use EXIT_SUCCESS and EXIT_FAILURE for the return code to the
shell in the fuse_opt functions

+ add new debugging functions:
	+ __fuse_debug(), which is used to set and retrieve the
	debugging level, so that debugging information can be turned
	on and off from the user-level filesystem, and
	+ __fuse_pargs(), which prints out an argv vector

+ put the comment about pu_privdata back with the code it references

+ put the code to place the refuse name back into the fuse_new()
function - we have access to all the arguments there.

+ specifically include <fuse_opt.h> in <fuse.h> - this would seem to
be what FUSE itself does, judging by the number of fuse-based
filesystems I've patched to include <fuse_opt.h> specifically

+ do away with the forward reference to struct fuse_args in fuse.h,
since it is defined just after the forward reference without being
referenced in between

+ fill in the missing refuse_opt args functionality - add an arg to the
args structure in fuse_opt_add_arg() and fuse_opt_insert_arg(), and
free allocated memory in fuse_opt_free_args().

+ get rid of spurious forward declarations and prototypes.

+ if REFUSE_INHERIT_FS_CHARACTERISTICS is defined when refuse is built,
file systems inherit the vfs characteristics of their mountpoints. The
default value is NOT to inherit the vfs characteristics.

+ perform a deep copy of the fuse_args structure in fuse_mount() -
this is so that existing FUSE filesystems still DTRT when arguments
are zeroed out.

Revision 1.40 / (download) - annotate - [select for diffs], Wed Feb 28 16:23:00 2007 UTC (7 years, 1 month ago) by xtraeme
Branch: MAIN
Changes since 1.39: +2 -42 lines
Diff to previous 1.39 (colored)

* Move fuse_opt* defs and prototypes into fuse_opt.h.
* Move fuse_opt* funcs from refuse.c into refuse_opt.c.

Implement fuse_opt_parse() and fuse_opt_match(). And make the other
functions just dummy, always returning 0 (I added debugging printfs
to see what the application is trying to do).

For now there are two things that do not work in fuse_opt:

	* options accepting arguments, i.e -otimeout=%u or -ofile=%s.
	* options without arguments are not enabled, just parsed.

At least now curlftpfs works, even with verbose mode! :-)

Ok'ed by pooka.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Feb 26 22:28:11 2007 UTC (7 years, 1 month ago) by agc
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

For just now, just use "puffs:refuse" as the file system name - this will
be revisited when thee fuse_args parsing is revisited.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Feb 26 15:57:33 2007 UTC (7 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.37: +115 -52 lines
Diff to previous 1.37 (colored)

Refactor a few interfaces a bit to look more like fuse.  fuse_args
is implemented as a very dummy version (i.e. totally unimplemented),
so some effort is still needed there.

After this change it is possible to compile and run ntfs-3g.  It
works read/write for ntfs images and shows no faults at least with
superficial testing.  I did not test it against a block device,
only an image.

Thanks to Tracy and Jason for help with the test image.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Feb 26 15:09:19 2007 UTC (7 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.36: +5 -3 lines
Diff to previous 1.36 (colored)

convert FREAD/FWRITE to O_RDWR-stuff in open

Revision 1.36 / (download) - annotate - [select for diffs], Mon Feb 26 13:52:16 2007 UTC (7 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.35: +83 -31 lines
Diff to previous 1.35 (colored)

Implement readdir properly, or at least as close to possible to how
fuse does it: read directory completely into refuse buffers if starting
from read offset 0 and for later calls trickle results from the buffers
to the kernel without consulting the fuse file system.

Revision 1.35 / (download) - annotate - [select for diffs], Mon Feb 26 00:25:40 2007 UTC (7 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.34: +5 -0 lines
Diff to previous 1.34 (colored)

revert 1.34, as discussed with agc.  It creates more problems than
it solves, namely breaks ~all fuse file systems.  Proper fix is known
but not yet implemented.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Feb 23 20:51:49 2007 UTC (7 years, 1 month ago) by agc
Branch: MAIN
Changes since 1.33: +2 -7 lines
Diff to previous 1.33 (colored)

For large directories, remove the artificial restriction on one
buffer's worth of directory entries - this work is done in the higher
level (re)fuse readdir or getdir operation.

Revision 1.33 / (download) - annotate - [select for diffs], Tue Feb 20 23:49:15 2007 UTC (7 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.32: +7 -15 lines
Diff to previous 1.32 (colored)

* missing open is not a failure, just return 0
* nuke accidentally committed debug printf

Revision 1.32 / (download) - annotate - [select for diffs], Tue Feb 20 19:13:28 2007 UTC (7 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.31: +3 -4 lines
Diff to previous 1.31 (colored)

reverse order of arguments to fuse->op.symlink, remove comment
suspecting argument order reversal

Revision 1.31 / (download) - annotate - [select for diffs], Tue Feb 20 19:00:21 2007 UTC (7 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.30: +63 -38 lines
Diff to previous 1.30 (colored)

* Thread flags to VOP_OPEN (except of course O_CREAT, O_TRUNC and O_EXCL)
  through fuse_file_info to the fuse open operation.
* reference count opens for each node and do release once the count
  drops to zero (instead of waiting for inactive).  I'm still not sure
  if this exactly matches linux/fuse behaviour, but at least we do
  open when a new file descriptor is opened for each node and a do
  a release when the reference to the last file descriptor for a
  node is closed, so it ought to be pretty close

cryptofs works after these changes

Revision 1.30 / (download) - annotate - [select for diffs], Tue Feb 20 14:51:52 2007 UTC (7 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.29: +22 -15 lines
Diff to previous 1.29 (colored)

* create a refusenode also for the root node
* opendir directories in open

Revision 1.29 / (download) - annotate - [select for diffs], Mon Feb 19 23:12:29 2007 UTC (7 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.28: +13 -2 lines
Diff to previous 1.28 (colored)

Implement a very very stubby fuse_unmount(), which does ... nothing.
Pending some puffs changes that are in the queue, this is the best way
currently.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Feb 19 22:12:44 2007 UTC (7 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.27: +7 -14 lines
Diff to previous 1.27 (colored)

fix return-in-the-middle bug in inactive.  and while there, make
it always return 0, since the return value is not used for error
indication for the kernel

Revision 1.27 / (download) - annotate - [select for diffs], Mon Feb 19 22:07:51 2007 UTC (7 years, 1 month ago) by xtraeme
Branch: MAIN
Changes since 1.26: +4 -2 lines
Diff to previous 1.26 (colored)

puffs_fuse_node_inactive: initialize ret to 0 to avoid a warning.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Feb 19 22:04:26 2007 UTC (7 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.25: +177 -168 lines
Diff to previous 1.25 (colored)

* combine emulation layer tasks for node creation to a common routine
* make set/getattr easily callable from interface functions and sprinkle
  calls to locations which require them
* use libpuffs routine for stat->vattr translation instead of homegrown one
* I have concluded that we really want to do release/releasedir in
  inactive instead of reclaim.  make it so.  we'll tweak it for the next
  file system which decides it doesn't want to work

after these changes lzofs works, at least for most parts
(I'd assume the non-working parts to fail also on fuse/linux)

Revision 1.25 / (download) - annotate - [select for diffs], Sun Feb 18 23:30:45 2007 UTC (7 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.24: +29 -16 lines
Diff to previous 1.24 (colored)

* don't allow reads beyond at offset = EOF, all fuse file systems can't
  handle it
* initialize refuse root node properly
* some misc cleanup

Revision 1.24 / (download) - annotate - [select for diffs], Sun Feb 18 22:42:33 2007 UTC (7 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.23: +5 -18 lines
Diff to previous 1.23 (colored)

fix rename (yes, it's really that simple)

Revision 1.23 / (download) - annotate - [select for diffs], Sun Feb 18 22:30:59 2007 UTC (7 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.22: +13 -8 lines
Diff to previous 1.22 (colored)

* oh, and when removing, remove the target node, not its parent directory
* use PUFFS_KFLAG_NOCACHE always for now, since code is too jumpy and
  volatile to deal with caches

Revision 1.22 / (download) - annotate - [select for diffs], Sun Feb 18 22:08:42 2007 UTC (7 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.21: +37 -7 lines
Diff to previous 1.21 (colored)

* map reclaim to release, but call it only for files which were opened
* use node paths in remove/rmdir instead of pcn full paths (which are
  null for those ops)

Revision 1.21 / (download) - annotate - [select for diffs], Sun Feb 18 20:38:07 2007 UTC (7 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.20: +29 -15 lines
Diff to previous 1.20 (colored)

in create, if op.create doesn't exist, try op.mknod instead

Revision 1.20 / (download) - annotate - [select for diffs], Sun Feb 18 17:44:57 2007 UTC (7 years, 1 month ago) by agc
Branch: MAIN
Changes since 1.19: +20 -2 lines
Diff to previous 1.19 (colored)

Added extra functionality:

	fuse_opt_free_args()

	fuse_exit()

Both from Juan RP - thanks!

Revision 1.19 / (download) - annotate - [select for diffs], Sun Feb 18 00:01:18 2007 UTC (7 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.18: +63 -16 lines
Diff to previous 1.18 (colored)

support some more fuse interfaces required for setattr:
utimens, utime, truncate and ftruncate

Revision 1.18 / (download) - annotate - [select for diffs], Fri Feb 16 00:35:06 2007 UTC (7 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.17: +22 -19 lines
Diff to previous 1.17 (colored)

* can't call unlink(2) & rmdir(2) in error paths.  Rather, call
  ops specified in the fuse op vector (or, if they're missing,
  we're SOL)
* great return value overhaul: return -ret to get linuxy -errno
  right for the kernel

Revision 1.17 / (download) - annotate - [select for diffs], Fri Feb 16 00:16:39 2007 UTC (7 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.16: +5 -2 lines
Diff to previous 1.16 (colored)

write to end-of-file in case of IOAPPEND

Revision 1.16 / (download) - annotate - [select for diffs], Fri Feb 16 00:13:02 2007 UTC (7 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.15: +48 -4 lines
Diff to previous 1.15 (colored)

* first stab at create
* return proper return values from read/write

Revision 1.15 / (download) - annotate - [select for diffs], Thu Feb 15 21:57:09 2007 UTC (7 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.14: +4 -7 lines
Diff to previous 1.14 (colored)

No need to set read, readdir and write in the ops vector twice.
Pair up some ops while shuffling.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Feb 15 19:33:52 2007 UTC (7 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

Readlink should place the length of the link (without terminating
nul) in the length field.  Make it so.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Feb 15 18:35:16 2007 UTC (7 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.12: +21 -17 lines
Diff to previous 1.12 (colored)

* slightly better dirfillers
* make readlink work

Revision 1.12 / (download) - annotate - [select for diffs], Thu Feb 15 17:06:24 2007 UTC (7 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.11: +22 -9 lines
Diff to previous 1.11 (colored)

implement proper lookup

Revision 1.11 / (download) - annotate - [select for diffs], Thu Feb 15 10:54:40 2007 UTC (7 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.10: +23 -2 lines
Diff to previous 1.10 (colored)

Implement a very very hacky fuse_get_context(), needs to be visited once
threading is added (and probably otherwise also).

Revision 1.10 / (download) - annotate - [select for diffs], Sun Feb 11 18:33:30 2007 UTC (7 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.9: +2 -11 lines
Diff to previous 1.9 (colored)

link operation does not create a new node, therefore don't do it in
the code either

Revision 1.9 / (download) - annotate - [select for diffs], Sun Feb 11 18:30:55 2007 UTC (7 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored)

need to compare against PUFFS_VNOVAL instead of 0 to determnine if
fields are valid

Revision 1.8 / (download) - annotate - [select for diffs], Sun Feb 11 16:06:52 2007 UTC (7 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.7: +7 -13 lines
Diff to previous 1.7 (colored)

pass real fuse_file_info to rest of fuse ops instead of a memset-to-zero one

Revision 1.7 / (download) - annotate - [select for diffs], Sun Feb 11 16:02:24 2007 UTC (7 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.6: +28 -15 lines
Diff to previous 1.6 (colored)

sprinkle some KNF

agc ok

Revision 1.6 / (download) - annotate - [select for diffs], Sun Feb 11 14:38:00 2007 UTC (7 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

fuse directory fillers return opposite truth values from puffs_nextdent,
so invert return value to make readdir callers which check the return
value work.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Feb 11 12:12:39 2007 UTC (7 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.4: +39 -15 lines
Diff to previous 1.4 (colored)

Allocate refuse private data, refusenode, for all nodes.  Currently it
carries fuse_file_info.

.. and lo, cddafs works

Revision 1.4 / (download) - annotate - [select for diffs], Sun Feb 11 11:57:41 2007 UTC (7 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.3: +40 -11 lines
Diff to previous 1.3 (colored)

implement getdir, used by some older fuse file systems instead of readdir

Revision 1.3 / (download) - annotate - [select for diffs], Sun Feb 11 10:58:43 2007 UTC (7 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.2: +12 -11 lines
Diff to previous 1.2 (colored)

Don't release nodes in _remove or _rmdir, implement reclaim
where to do it.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Feb 11 10:51:53 2007 UTC (7 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.1: +8 -29 lines
Diff to previous 1.1 (colored)

* sprinkle some comments to obvious XXX places
* remove outdated #ifdef from write
* return 0 if unmount is not supported instead of ENOSYS

Revision 1.1 / (download) - annotate - [select for diffs], Sun Feb 11 10:31:37 2007 UTC (7 years, 2 months ago) by agc
Branch: MAIN

Add an implementation of the file system in userspace functionality,
based on top of libpuffs.  This version is still barebones and
incomplete, but will benefit from others working on it, rather than
just me.

The option code has still to be implemented, but this gets far enough
to run hellofs (from the fuse web page):

	% priv ./hellofs ~/hellofs/mnt &
	% l ~/hellofs/mnt
	total 2
	drwxr-xr-x  2 root  wheel    0 Jan  1  1970 .
	drwxr-xr-x  4 agc   agc    512 Feb  9 18:05 ..
	-r--r--r--  1 root  wheel   13 Jan  1  1970 hello
	% cat ~/hellofs/mnt/hello
	Hello World!
	% df ~/hellofs/mnt
	Filesystem           1K-blocks      Used     Avail Capacity  Mounted on
	/dev/dk0              28101396  18946682   7749646    70%    /
	kernfs                       1         1         0   100%    /kern
	procfs                       4         4         0   100%    /proc
	ptyfs                        1         1         0   100%    /dev/pts
	puffs:refuse:hellofs  28101396  18946682   7749646    70%    /home/agc/hellofs/mnt
	% mount -v -v
	...
	mount: mount_puffs not found for /home/agc/hellofs/mnt
	puffs:refuse:hellofs on /home/agc/hellofs/mnt type puffs (nosuid, nodev, fsid: 0xcb01/0x6acb, reads: sync 0 async 0, writes: sync 0 async 0)
	%

This code is not enabled by default. Yet.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>