Up to [cvs.netbsd.org] / src / lib / libpuffs
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.44.2.1 / (download) - annotate - [select for diffs], Wed May 23 10:07:33 2012 UTC (2 days, 20 hours ago) by yamt
Branch: yamt-pagecache
Changes since 1.44: +4 -1
lines
Diff to previous 1.44 (colored) next main 1.45 (colored)
sync with head.
Revision 1.44.4.1 / (download) - annotate - [select for diffs], Mon Apr 23 16:48:58 2012 UTC (4 weeks, 4 days ago) by riz
Branch: netbsd-6
Changes since 1.44: +4 -1
lines
Diff to previous 1.44 (colored) next main 1.45 (colored)
Pull up following revision(s) (requested by manu in ticket #195): lib/libskey/skeysubr.c: revision 1.27 lib/libkvm/kvm_getloadavg.c: revision 1.11 lib/libwrap/update.c: revision 1.9 lib/liby/yyerror.c: revision 1.9 lib/libpuffs/puffs_ops.3: revision 1.30 lib/libwrap/misc.c: revision 1.10 lib/libwrap/hosts_access.c: revision 1.20 lib/libpuffs/pnode.c: revision 1.11 lib/libperfuse/subr.c: revision 1.17 lib/libpuffs/pnode.c: revision 1.12 lib/libperfuse/subr.c: revision 1.18 lib/libwrap/options.c: revision 1.15 lib/libwrap/fix_options.c: revision 1.11 lib/libperfuse/ops.c: revision 1.52 lib/libperfuse/ops.c: revision 1.53 lib/libperfuse/ops.c: revision 1.54 lib/libwrap/hosts_ctl.c: revision 1.5 lib/libintl/gettext.c: revision 1.27 lib/libwrap/shell_cmd.c: revision 1.6 lib/libpuffs/dispatcher.c: revision 1.39 lib/libperfuse/perfuse_priv.h: revision 1.27 lib/libwrap/socket.c: revision 1.19 lib/libpuffs/puffs.3: revision 1.50 lib/libperfuse/perfuse_priv.h: revision 1.28 lib/libpuffs/puffs_priv.h: revision 1.45 lib/libpuffs/puffs.3: revision 1.51 lib/libperfuse/perfuse_priv.h: revision 1.29 lib/libwrap/percent_x.c: revision 1.5 lib/libpuffs/puffs.3: revision 1.52 lib/libperfuse/debug.c: revision 1.11 sys/fs/puffs/puffs_vnops.c: revision 1.165 lib/libwrap/tcpd.h: revision 1.13 sys/fs/puffs/puffs_vnops.c: revision 1.166 lib/libwrap/eval.c: revision 1.7 sys/fs/puffs/puffs_msgif.h: revision 1.78 sys/fs/puffs/puffs_vfsops.c: revision 1.101 lib/libwrap/rfc931.c: revision 1.9 lib/libwrap/clean_exit.c: revision 1.5 lib/libpuffs/puffs.h: revision 1.120 lib/libc/stdlib/jemalloc.c: revision 1.27 lib/librmt/rmtlib.c: revision 1.26 lib/libpuffs/puffs.h: revision 1.121 sys/fs/puffs/puffs_sys.h: revision 1.79 lib/librumpclient/rumpclient.c: revision 1.48 lib/libwrap/refuse.c: revision 1.5 lib/libperfuse/perfuse.c: revision 1.26 lib/libperfuse/perfuse.c: revision 1.27 tests/fs/puffs/t_fuzz.c: revision 1.5 lib/libperfuse/perfuse.c: revision 1.28 lib/libpuffs/dispatcher.c: revision 1.40 sys/fs/puffs/puffs_node.c: revision 1.24 lib/libwrap/diag.c: revision 1.9 lib/libintl/textdomain.c: revision 1.13 Use C89 function definition Add name and atttribute cache with filesytem provided TTL. lookup, create, mknod, mkdir, symlink, getattr and setattr messages have been extended so that attributes and their TTL can be provided by the filesytem. lookup, create, mknod, mkdir, and symlink messages are also extended so that the filesystem can provide name TTL. Add PUFFS_KFLAG_CACHE_FS_TTL flag to puffs_init(3) to use name and attribute cache with filesystem provided TTL. lookup, create, mknod, mkdir, symlink, getattr and setattr messages have been extended so that attributes and their TTL can be provided by the filesytem. lookup, create, mknod, mkdir, and symlink messages are also extended so that the filesystem can provide name TTL. The filesystem updates attributes and TTL using puffs_pn_getvap(3), puffs_pn_getvattl(3), and puffs_pn_getcnttl(3) Use new PUFFS_KFLAG_CACHE_FS_TTL option to puffs_init(3) so that FUSE TTL on name and attributes are used. This save many PUFFS operations and improves performances. PUFFS_KFLAG_CACHE_FS_TTL is #ifdef'ed in many places for now so that libperfuse can still be used on netbsd-5. Split file system. Comma fixes. Remove dangling "and". Bump date for previous. - Makesure update_va does not change vnode size when it should not. For instance when doing a fault-issued VOP_GETPAGES within VOP_WRITE, changing size leads to panic: genfs_getpages: past eof. -Handle ticks wrap around for vnode name andattribute timeout - When using PUFFS_KFLAG_CACHE_FS_TTL, do not use puffs_node to carry attribute and TTL fora newly created node. Instead extend puffs_newinfo and add puffs_newinfo_setva() and puffs_newinfo_setttl() - Remove node_mk_common_final in libperfuse. It used to set uid/gid for a newly created vnode but has been made redundant along time ago since uid and gid are properly set in FUSE header. - In libperfuse, check for corner case where opc = 0 on INACTIVE and RECLAIM (how is it possible? Check for it to avoid a crash anyway) - In libperfuse, make sure we unlimit RLIMIT_AS and RLIMIT_DATA so that we do notrun out of memory because the kernel is lazy at reclaiming vnodes. - In libperfuse, cleanup style of perfuse_destroy_pn() Do not set PUFFS_KFLAG_CACHE_FS_TTL for PUFFS tests
Revision 1.45 / (download) - annotate - [select for diffs], Wed Apr 18 00:57:22 2012 UTC (5 weeks, 3 days ago) by manu
Branch: MAIN
CVS Tags: yamt-pagecache-base5,
HEAD
Changes since 1.44: +4 -1
lines
Diff to previous 1.44 (colored)
- When using PUFFS_KFLAG_CACHE_FS_TTL, do not use puffs_node to carry attribute and TTL fora newly created node. Instead extend puffs_newinfo and add puffs_newinfo_setva() and puffs_newinfo_setttl() - Remove node_mk_common_final in libperfuse. It used to set uid/gid for a newly created vnode but has been made redundant along time ago since uid and gid are properly set in FUSE header. - In libperfuse, check for corner case where opc = 0 on INACTIVE and RECLAIM (how is it possible? Check for it to avoid a crash anyway) - In libperfuse, make sure we unlimit RLIMIT_AS and RLIMIT_DATA so that we do notrun out of memory because the kernel is lazy at reclaiming vnodes. - In libperfuse, cleanup style of perfuse_destroy_pn()
Revision 1.43.4.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:18:39 2011 UTC (11 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.43: +2 -2
lines
Diff to previous 1.43 (colored) next main 1.44 (colored)
Catchup with rmind-uvmplock merge.
Revision 1.44 / (download) - annotate - [select for diffs], Mon Jun 20 09:11:17 2011 UTC (11 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
netbsd-6-base
Branch point for: yamt-pagecache,
netbsd-6
Changes since 1.43: +2 -2
lines
Diff to previous 1.43 (colored)
various build fixes for gcc 4.5. from chuq. XXX i'm not sure all of these work properly wtf pointer aliasing, but there are no casts at least... the lib/libpuffs/puffs_priv.h is definately a real bug fix. from chuq.
Revision 1.43 / (download) - annotate - [select for diffs], Mon Dec 6 14:50:34 2010 UTC (17 months, 2 weeks ago) by pooka
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231,
cherry-xenmp-base,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: cherry-xenmp
Changes since 1.42: +2 -8
lines
Diff to previous 1.42 (colored)
Remove PUFFS_WITH_THREADS ifdef garbage, just use libc weak symbols.
Revision 1.42 / (download) - annotate - [select for diffs], Tue Jan 12 18:42:39 2010 UTC (2 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.41: +3 -2
lines
Diff to previous 1.41 (colored)
Add convenience routine puffs_unmountonsignal(), which does exactly that.
Revision 1.39.6.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:39:24 2008 UTC (3 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.39: +14 -7
lines
Diff to previous 1.39 (colored) next main 1.40 (colored)
Sync with wrstuden-revivesa-base-2.
Revision 1.41 / (download) - annotate - [select for diffs], Mon Aug 11 16:23:37 2008 UTC (3 years, 9 months ago) by pooka
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-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,
netbsd-5,
matt-premerge-20091211,
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,
jym-xensuspend-nbase,
jym-xensuspend-base,
jym-xensuspend
Changes since 1.40: +2 -1
lines
Diff to previous 1.40 (colored)
clear cached puffs_cc's in puffs_exit()
Revision 1.40 / (download) - annotate - [select for diffs], Mon Aug 11 15:59:01 2008 UTC (3 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.39: +13 -7
lines
Diff to previous 1.39 (colored)
* make sure we come out of mainloop in the main context. otherwise in certain cases the server would jump to hyperspace when unmounted * sprinkle some debug prints
Revision 1.20.2.3 / (download) - annotate - [select for diffs], Sun Mar 23 00:40:29 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.20.2.2: +57 -51
lines
Diff to previous 1.20.2.2 (colored) next main 1.21 (colored)
sync with HEAD
Revision 1.39 / (download) - annotate - [select for diffs], Mon Jan 28 18:35:50 2008 UTC (4 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.38: +49 -47
lines
Diff to previous 1.38 (colored)
Implement lazy contexts for file systems using puffs_mainloop(). Previously each request was executed on its own callcontext and switched to every time the request was being processed. Now requests borrow the mainloop context and switch only if/when they yield. This takes two context switches away from a file system request bringing down the typical amounts 2->0 (e.g. dtfs) and 4->2 (e.g. psshfs). The interfaces for manually executing requests changed a bit: puffs_dispatch_create() and puffs_dispatch_exec() must now be used. They are not tested, as nothing in-tree wants them and I doubt anyone else is really interested in them either. Also do some misc code cleanup related to execution contexts. The "work-in-progress checkpoint" committed over a year ago was starting to look slightly weed-infested.
Revision 1.38 / (download) - annotate - [select for diffs], Wed Jan 16 21:30:00 2008 UTC (4 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.37: +9 -5
lines
Diff to previous 1.37 (colored)
Cache a number of execution contexts instead of re-initializing them every time. Speeds up pure in-memory file systems such as sysctlfs or dtfs quite a bit. For actual I/O-workhorses the result is of course less tasty.
Revision 1.20.2.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:36:52 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.20.2.1: +36 -45
lines
Diff to previous 1.20.2.1 (colored)
sync with HEAD
Revision 1.37 / (download) - annotate - [select for diffs], Tue Dec 25 20:38:01 2007 UTC (4 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.36: +3 -3
lines
Diff to previous 1.36 (colored)
Add a public interface for setting a cookie mapper.
Revision 1.36 / (download) - annotate - [select for diffs], Sun Dec 16 20:02:58 2007 UTC (4 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.35: +1 -4
lines
Diff to previous 1.35 (colored)
* nuke puffs_cc_get{specific,usermount} for good
* move prototypes for puffs_docc and puffs_dopufbuf into the
public header, as they are should be exposed
Revision 1.35 / (download) - annotate - [select for diffs], Sat Dec 8 19:57:03 2007 UTC (4 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: cube-autoconf-base,
cube-autoconf
Changes since 1.34: +1 -11
lines
Diff to previous 1.34 (colored)
Now that "l" is gone both as an argument to operations and from componentname, remove all vestiges of puffs_cid.
Revision 1.34 / (download) - annotate - [select for diffs], Wed Dec 5 12:11:56 2007 UTC (4 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.33: +4 -1
lines
Diff to previous 1.33 (colored)
Send a response message for flush operations from the kernel instead of abusing the return value of write(2).
Revision 1.33 / (download) - annotate - [select for diffs], Tue Dec 4 21:24:12 2007 UTC (4 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.32: +32 -33
lines
Diff to previous 1.32 (colored)
Part 3/n of extensive changes to message handling: Get rid of the original puffs_req(3) framework and use puffs_framebuf(3) instead for file system requests. It has the advantage of being suitable for transporting a distributed message passing protocol and therefore us being able to run the file system server on any host. Ok, puffs is not quite here yet: libpuffs needs to grow request routing support and the message contents need to be munged into a host independent format. Saying which format would be telling, but it might begin with an X, end in an L and have the 13th character in the middle. Keep an eye out for the sequels: Parts 3+m/n.
Revision 1.32 / (download) - annotate - [select for diffs], Fri Nov 16 18:35:10 2007 UTC (4 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.31: +3 -1
lines
Diff to previous 1.31 (colored)
Introduce puffs_daemon(), which works like daemon(3) except that it also synchronizes with puffs_mount() and does not return (exit) in the parent process until the file system has been mounted. This makes it possible to reliably run e.g. mount_foo jippi /kai ; cd /kai/ee
Revision 1.20.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:11:54 2007 UTC (4 years, 6 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.20: +41 -27
lines
Diff to previous 1.20 (colored)
sync with HEAD
Revision 1.31 / (download) - annotate - [select for diffs], Wed Oct 31 16:09:09 2007 UTC (4 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.30: +3 -3
lines
Diff to previous 1.30 (colored)
Fix a few bugs and memleaks with the threading code.
Revision 1.30 / (download) - annotate - [select for diffs], Mon Oct 29 15:52:45 2007 UTC (4 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.29: +12 -1
lines
Diff to previous 1.29 (colored)
Sprinkle some hackish locks here and there, just enough to allow libp2k & rump to run multithreaded.
Revision 1.29 / (download) - annotate - [select for diffs], Sun Oct 28 18:40:31 2007 UTC (4 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.28: +4 -1
lines
Diff to previous 1.28 (colored)
Add possibility to set pre- and post callbacks which will be called for all operations before or after executing the specific callback (the api is not be final yet, though).
Revision 1.28 / (download) - annotate - [select for diffs], Fri Oct 26 17:35:02 2007 UTC (4 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.27: +16 -7
lines
Diff to previous 1.27 (colored)
Add some very initial support for a threading worker model as an alternative to the (vastly superior ;) continuation model. This is very preliminary stuff and not compiled by default (which it even won't do without some other patches I cannot commit yet). The raison d'commit of the patch is a snippet which ensures proper in-order dispatching of all operations, including those which don't require a response. Previously many of them would be dispatched simultaneosly, e.g. fsync and reclaim on the same node, which obviously isn't all that nice for correct operation.
Revision 1.27 / (download) - annotate - [select for diffs], Fri Oct 26 13:51:15 2007 UTC (4 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.26: +2 -2
lines
Diff to previous 1.26 (colored)
mmap stacks, makes it possible to align them
Revision 1.26 / (download) - annotate - [select for diffs], Thu Oct 25 10:59:45 2007 UTC (4 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.25: +2 -2
lines
Diff to previous 1.25 (colored)
Make pu_haskq a flag instead of its own variable.
Revision 1.25 / (download) - annotate - [select for diffs], Sun Oct 21 19:25:58 2007 UTC (4 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.24: +2 -1
lines
Diff to previous 1.24 (colored)
Add puffs_cc_schedule() which marks a pcc runnable and will pass execution to it when in the main loop the next time.
Revision 1.24 / (download) - annotate - [select for diffs], Sun Oct 21 14:28:05 2007 UTC (4 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.23: +6 -1
lines
Diff to previous 1.23 (colored)
Always provide caller information from the kernel based on curlwp. (but don't deprecate the old puffs_cid interface just yet)
Revision 1.23 / (download) - annotate - [select for diffs], Thu Oct 11 19:41:15 2007 UTC (4 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.22: +2 -20
lines
Diff to previous 1.22 (colored)
Part 1/n of some pretty extensive changes to how the kernel module
interacts with the userspace file server:
* since the kernel-user communication is not purely request-response
anymore (hasn't been since 2006), try to rename some "request" to
"message". more similar mangling will take place in the future.
* completely rework how messages are allocated. previously most of
them were borrowed from the stack (originally *all* of them),
but now always allocate dynamically. this makes the structure
of the code much cleaner. also makes it possible to fix a
locking order violation. it enables plenty of future enhancements.
* start generalizing the transport interface to be independent of puffs
* move transport interface to read/write instead of ioctl. the
old one had legacy design problems, and besides, ioctl's suck.
implement a very generic version for now; this will be
worked on later hopefully some day reaching "highly optimized".
* implement libpuffs support behind existing library request
interfaces. this will change eventually (I hate those interfaces)
Revision 1.22 / (download) - annotate - [select for diffs], Thu Sep 27 21:14:49 2007 UTC (4 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.21: +3 -1
lines
Diff to previous 1.21 (colored)
Add error notifications, which are used to deliver errors from the kernel to the file server for silly things the file server did, e.g. attempting to create a file with size VSIZENOTSET. The file server can handle these as it chooses, but the default action is for it to throw its hands in the air and sing "goodbye, cruel world, it's over, walk on by".
Revision 1.21 / (download) - annotate - [select for diffs], Sat Sep 1 16:42:42 2007 UTC (4 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.20: +2 -1
lines
Diff to previous 1.20 (colored)
Add gotframe callback, which is called if an incoming frame matches no outstanding request.
Revision 1.20 / (download) - annotate - [select for diffs], Sat Aug 18 10:26:05 2007 UTC (4 years, 9 months ago) by pooka
Branch: MAIN
Branch point for: matt-armv6
Changes since 1.19: +4 -2
lines
Diff to previous 1.19 (colored)
puffs_cc_create/destroy aren't supposed to be exported to the user
Revision 1.19.4.2 / (download) - annotate - [select for diffs], Fri Jul 20 13:14:57 2007 UTC (4 years, 10 months ago) by pooka
Branch: matt-mips64
Changes since 1.19.4.1: +243 -0
lines
Diff to previous 1.19.4.1 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)
Add puffs_framev_enqueue_waitevent, which waits for read/write/error events from an i/o descriptor. It yields until an event happens and continues execution when the event loop notices the event has happened.
Revision 1.19.4.1, Fri Jul 20 13:14:56 2007 UTC (4 years, 10 months ago) by pooka
Branch: matt-mips64
Changes since 1.19: +0 -243
lines
FILE REMOVED
file puffs_priv.h was added on branch matt-mips64 on 2007-07-20 13:14:57 +0000
Revision 1.19 / (download) - annotate - [select for diffs], Fri Jul 20 13:14:56 2007 UTC (4 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: matt-mips64-base,
hpcarm-cleanup
Branch point for: matt-mips64
Changes since 1.18: +14 -7
lines
Diff to previous 1.18 (colored)
Add puffs_framev_enqueue_waitevent, which waits for read/write/error events from an i/o descriptor. It yields until an event happens and continues execution when the event loop notices the event has happened.
Revision 1.18 / (download) - annotate - [select for diffs], Thu Jul 19 12:52:28 2007 UTC (4 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.17: +6 -2
lines
Diff to previous 1.17 (colored)
Don't float puffs_kargs needlessly around after mount, saves a couple k of memory (and there was much rejoycing!)
Revision 1.17 / (download) - annotate - [select for diffs], Sat Jul 7 21:13:42 2007 UTC (4 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.16: +13 -4
lines
Diff to previous 1.16 (colored)
Make puffs_framebuf better suited from environments with multiple sources: * in addition add/remove, allow enable/disable, which can be used to control events for descriptors without having to remove all the data associated with them * add directsend/receive, which can be used to pass the same buffer from the caller to read/writeframe and back again * add flags to enqueue functions and allow urgent buffers to be processed as the next PDU
Revision 1.16 / (download) - annotate - [select for diffs], Sun Jul 1 18:39:39 2007 UTC (4 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.15: +8 -1
lines
Diff to previous 1.15 (colored)
Instead of requesting various pieces of information from node-creating methods using "please fill me"-pointers, pass "struct puffs_newinfo *" and provide methods to fill in new node info.
Revision 1.15 / (download) - annotate - [select for diffs], Sun Jul 1 17:42:19 2007 UTC (4 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.14: +7 -7
lines
Diff to previous 1.14 (colored)
cast to void * instead of actual (albeit incomplete) type to silence gcc about type punning with -fstrict-alias
Revision 1.14 / (download) - annotate - [select for diffs], Sun Jul 1 17:22:18 2007 UTC (4 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.13: +11 -1
lines
Diff to previous 1.13 (colored)
Instead of supplying a plain pid, supply an abstract struct puffs_cid *, which can currently be used to query the pid and lwpid.
Revision 1.13 / (download) - annotate - [select for diffs], Sun Jul 1 15:30:15 2007 UTC (4 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.12: +10 -1
lines
Diff to previous 1.12 (colored)
make puffs_cred an opaque type
Revision 1.12 / (download) - annotate - [select for diffs], Wed Jun 6 01:55:01 2007 UTC (4 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.11: +1 -4
lines
Diff to previous 1.11 (colored)
Move puffs to a two clause license where it already isn't so. And as agc pointed out, even files with the third clause were already effectively two clause because of a slight bug in the language...
Revision 1.11 / (download) - annotate - [select for diffs], Sun May 20 16:24:37 2007 UTC (5 years ago) by pooka
Branch: MAIN
Changes since 1.10: +2 -2
lines
Diff to previous 1.10 (colored)
Change the signature of puffs_respcmp to return -1,0,1 for smaller, equal, larger, respectively instead of 0/1 for non/equal. This will allow sorting the buffers for faster matching in libpuffs. While here, change the name from respcmp to framecmp, as that better reflects the purpose. NOTE! there is no obvious way to make compilation fail for file systems which may already be using this feature (although I don't think there are any outside our tree, as the feature is two weeks old). Nevertheless, non-updated file systems will fail very quickly.
Revision 1.10 / (download) - annotate - [select for diffs], Tue May 15 13:44:47 2007 UTC (5 years ago) by pooka
Branch: MAIN
Changes since 1.9: +39 -27
lines
Diff to previous 1.9 (colored)
Step 3 and currently final step of a more general purpose event loop: support removal and addition of i/o file descriptors on the fly. * detect closed file descriptors * automatically free waiters of a dead file descriptor * give the file server the possibility to specify a callback which notifies of a dead file descriptor * move loop function to be a property of the mainloop instead of framebuf (doesn't change effective behaviour) * add the possibility to configure a timespec parameter which attempts to call the loop function periodically * move the event loop functions from the puffs_framebuf namespace to puffs_framev to differential between pure memory management functions
Revision 1.9 / (download) - annotate - [select for diffs], Fri May 11 21:27:13 2007 UTC (5 years ago) by pooka
Branch: MAIN
Changes since 1.8: +40 -3
lines
Diff to previous 1.8 (colored)
Step 2 of general-purpose eventloop: get rid of puffs_framebuf_eventloop(). puffs_mainloop() now handles that functionality as well.
Revision 1.8 / (download) - annotate - [select for diffs], Thu May 10 12:26:28 2007 UTC (5 years ago) by pooka
Branch: MAIN
Changes since 1.7: +3 -3
lines
Diff to previous 1.7 (colored)
Add some kludges to be able to execute requests on the regular program stack instead of the continuation stack. This is for lib/36011, where pthread gets confused since we aren't running on the regular stack. I'm not really sure which direction to go to with this quite yet, so make the hack hard to enable on purpose. The whole request dispatch code needs cleaning anyway.
Revision 1.7 / (download) - annotate - [select for diffs], Sat May 5 15:48:18 2007 UTC (5 years ago) by pooka
Branch: MAIN
Changes since 1.6: +5 -1
lines
Diff to previous 1.6 (colored)
Add puffs "frame buffers", which are an abstraction of the buffering and event handling mechanisms required in file servers with blocking I/O backends. puffs_framebuf is built on the concept of puffs_cc and uses those to multiplex execution where needed. File systems are required to implement three methods: * read frame * write frame * compare if frame is a response to the given one Memory management is provided by puffs_framebuf, but the file systems must still, of course, interpret the protocol and do e.g. byte order conversion. As always, puffs_framebuf is work in progress. Current users are mount_psshfs and mount_9p.
Revision 1.6 / (download) - annotate - [select for diffs], Fri Apr 13 13:35:46 2007 UTC (5 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.5: +2 -3
lines
Diff to previous 1.5 (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.5 / (download) - annotate - [select for diffs], Thu Apr 12 15:09:01 2007 UTC (5 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.4: +29 -1
lines
Diff to previous 1.4 (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.4 / (download) - annotate - [select for diffs], Mon Jan 15 00:39:02 2007 UTC (5 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.3: +3 -1
lines
Diff to previous 1.3 (colored)
Checkpoint some more work in progress: for the benefit those file system backends which operate purely based on paths, push out more path management into the library and make path management more abstract: enable a file system to define a bunch of path management callbacks, which are used by the framework. Management of normal /this/is/a/path type paths is provided by the library.
Revision 1.3 / (download) - annotate - [select for diffs], Sat Jan 6 18:22:09 2007 UTC (5 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.2: +3 -5
lines
Diff to previous 1.2 (colored)
* get rid of the mount callback; it's no great surprise to the server that it needs to mount the file system backend if it wants to call mount * provide some options for getmntopts(), assume that callers will parse command line (or fstab) args * reorganize the puffs_cc interface just a bit, preparing for a bigger revamp later
Revision 1.2 / (download) - annotate - [select for diffs], Fri Dec 29 15:28:11 2006 UTC (5 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.1: +66 -4
lines
Diff to previous 1.1 (colored)
checkpoint some experimental work-in-progress, namely: Add support for having multiple outstanding operations. This is done by exposing enough interfaces so that it is convenient to have the main event loop in the implementation itself and by providing a continuation framework for convinient blocking and rescheduling. works fine, but will undergo further cleanup & development
Revision 1.1 / (download) - annotate - [select for diffs], Thu Dec 7 23:15:20 2006 UTC (5 years, 5 months ago) by pooka
Branch: MAIN
outline & export code for interfacing with kernel GET/PUT requests