pooka
78302eef99
Per rumble's lead in vnodeops, clarify the bit about readdir cookies.
2007-07-31 21:48:18 +00:00
ginsbach
f5f9bb5739
Make sure that %r honors the LC_TIME t_fmt_ampm. This restores
...
functionality lost at revision 1.12!
2007-07-31 20:19:16 +00:00
joerg
577a8c7029
Add build glue for libarchive and update the various sets.
2007-07-29 17:06:00 +00:00
pooka
8631cf4e2b
mmap fflags -> prot
2007-07-27 08:28:16 +00:00
pooka
b2a631b1fe
* add missing credential handle to fsync args
...
* and now with more cosmetic attack
2007-07-25 09:10:26 +00:00
pooka
9825955cc2
pure cosmetics: minor facelift
2007-07-25 08:31:19 +00:00
dyoung
bfa27930cb
In sockaddr_snprintf(sbuf, len, fmt, sa), do not write the terminating
...
null character outside of the byte region [sbuf, sbuf + len).
1) If the length of the buffer is 0, do not write a null character
at all. Previously, sockaddr_snprintf() may have been able to
overwrite sbuf[-1] if len was 0.
2) If the length of the buffer, len, is greater than 0, then write
the null at sbuf[len - 1]. Previously, sockaddr_snprintf()
wrote the null at buf[len - 1], where `buf' was a "cursor" that
did not necessarily equal `sbuf', the start of the buffer. Now,
sockaddr_snprintf() always writes the null at sbuf[len - 1].
2007-07-24 08:45:45 +00:00
blymn
f8e74d7a72
Redraw an item when the value is changed as the mark/unmark status (if
...
applicable) may have changed.
2007-07-23 12:12:19 +00:00
pooka
b0e54182a4
document puffs_framev_enqueue_waitevent
2007-07-21 09:36:49 +00:00
pooka
e30ed21300
Return -1 and errno from puffs_framev_enqueue_waitevent instead of
...
a direct error value.
2007-07-21 09:29:07 +00:00
pooka
e2dc8334cf
simplify send loop
2007-07-20 14:55:42 +00:00
pooka
343e8df31e
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.
2007-07-20 13:14:55 +00:00
yamt
8a52d96235
add a comment.
2007-07-20 12:41:07 +00:00
pooka
99db048c69
note caveat with puffs_node_poll
2007-07-20 10:01:24 +00:00
wiz
77bf5a1ac4
Use HTML escapes. Drop trailing whitespace. Punctuation nits.
2007-07-19 19:25:09 +00:00
pooka
f2825a0ae8
Don't float puffs_kargs needlessly around after mount, saves
...
a couple k of memory (and there was much rejoycing!)
2007-07-19 12:52:28 +00:00
christos
f65c16a601
forgot include namespace.h
2007-07-19 12:05:42 +00:00
pooka
044229479a
wizd reminded me that if I provide the synopsis for puffs_node_seek(),
...
I would do well to also describe what it does. so make it so.
2007-07-19 08:32:06 +00:00
pooka
2f6b69c368
Use ioctl(PUFFSREQSIZEOP) instead of mount(MNT_GETARGS) to fetch
...
the maximum request size after mount. Calling mount(MNT_GETARGS)
from the file server is currently not kosher, as it vrele()s the
root vnode, potentially causing an inactive, which the file server
cannot handle while it itself is inactive in the kernel (deadlock).
2007-07-19 07:54:46 +00:00
pooka
638ce78980
stuff
2007-07-19 07:48:10 +00:00
wiz
4213bf340c
Uppercase logical OR operator.
2007-07-18 23:34:23 +00:00
pooka
d8a510556e
get rid of DBG=
2007-07-18 22:38:58 +00:00
pooka
9651f40228
update
2007-07-18 22:23:37 +00:00
pooka
ff87a004d6
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
2007-07-18 22:05:41 +00:00
pooka
81ec5d68ec
uncomment puffs_node_seek - it's supported and in use
2007-07-18 21:41:06 +00:00
pooka
46bd6a6148
puffs_cid* is always const
2007-07-18 21:24:40 +00:00
christos
9cd4e8de4b
Bump minor for thread support.
2007-07-18 20:16:01 +00:00
dsl
9145137adc
Fix the return value so the MNT_GETARGS returns 0, not the buffer length.
2007-07-18 20:10:47 +00:00
drochner
46c0bdf123
stopgap fix: define PATH_IPSEC_H to make it build again
...
(added manually because there is no template in the distribution anymore)
2007-07-18 17:00:04 +00:00
christos
fede0a77fc
kill MFSNAMELEN
2007-07-17 20:03:10 +00:00
joerg
e4fc1154a4
Add native mremap system call based on the UVM implementation for
...
Linux compat. Add code to enforce alignment of the new location.
Special thanks to wizd for helping with the man page.
2007-07-17 17:42:07 +00:00
pooka
08db7d7534
* add mntfromname parameter to puffs_init()
...
* set it in file servers
2007-07-17 11:34:51 +00:00
wiz
ab6c3b4502
Use HTML escapes. Use Ss for subsection. Correct date.
2007-07-15 21:37:55 +00:00
dsl
8f51f1bf76
Document the new 'data_len' argument.
...
Remove references to nfs export args and xref nfssvc(2) instead.
Change text to allow for other fs types.
2007-07-14 18:24:08 +00:00
dsl
b2dd7438f9
Change beacuse of extra parameter to mount(2).
2007-07-14 16:09:48 +00:00
dsl
0666faeea3
Add new 'data_len' parameter to mount system call.
...
Add an additional call with MNT_GETARGS to retrieve the modified
information instead of relying on the kernel code abusing the mount
interface during mount.
2007-07-14 16:02:14 +00:00
dsl
4d09898946
Change libc system callstub from 'mount' to '__mount50', add compat call.
2007-07-14 15:53:04 +00:00
jdc
7e0bb0168c
Emphasise `ncurses'.
2007-07-13 11:16:11 +00:00
jdc
05ea77093a
Note that the additional characters are for ncurses compatibility.
...
Pointed out by Thomas Dickey.
2007-07-13 11:15:33 +00:00
jdc
f0b4a51625
Document line drawing and graphics characters.
2007-07-11 18:45:40 +00:00
jdc
65f3606f46
Add additional line drawing and characters.
...
Pointed out by pooka@.
2007-07-11 18:44:46 +00:00
ad
dea8adf74d
'true' is a C99 keyword.
2007-07-09 22:28:13 +00:00
pooka
fb503062d5
add IO_NDELAY
2007-07-09 09:28:48 +00:00
pooka
181c165c35
bring up-to-date
2007-07-08 17:25:26 +00:00
pooka
3541e44ce7
g/c leftover
2007-07-08 17:24:41 +00:00
pooka
1119cb908e
make notifyfunction optional and do not call removeonclose() if
...
none is given.
2007-07-08 11:24:58 +00:00
pooka
8c9c68dbc2
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
2007-07-07 21:13:41 +00:00
christos
4fbeddc144
treat ESRCH as a soft error. From Anon Ymous
2007-07-07 18:27:26 +00:00
christos
1a4c3f68b4
- Fix kvm_getlwps not to spit errors if we lose the race:
...
- if the process does not exist anymore, return NULL
- if the process has created more lwps retry
XXX[1]: We should fix sysctl_kern_lwp() to return the number of lwps it
needs in oldlenp when ENOMEM. The we can avoid calling sysctl
twice (by starting let's say with always 1 lwp, or 10).
XXX[2]: We should fix kvm_getlwps to never spit errors.
- Silence new lint warnings
2007-07-06 14:25:42 +00:00
pooka
c3dac7fe6f
make few function types match reality
2007-07-06 10:11:02 +00:00
pooka
1451f0dabb
document PUFFS_KFLAG_LOOKUP_FULLPNBUF
2007-07-05 22:42:14 +00:00
pooka
b710306f2c
apply ketchup to recent source changes in libpuffs
2007-07-05 22:37:52 +00:00
ginsbach
15b661abe9
Fix several end cases:
...
o If a long option looks like an ambiguous abbreviation of two or more long
options, but all the possible interpretations would return the same
value, then just return that value without complaining that it's
ambiguous.
o If a long option could be interpreted either as an exact match for one
long option, or as an abbreviation for one or more other long options,
then treat it as the exact match.
These changes align NetBSD's getopt_long(3) with the current behavior of
GNU getopt_long(3), the de facto standard, and FreeBSD's getopt_long(3).
2007-07-05 16:05:40 +00:00
pooka
0e40108103
* reorder calls to get results processed even if our I/O descriptors
...
go back to zero
* don't give up on the read-side of an fd if there is still unreceived data
2007-07-05 12:27:39 +00:00
nakayama
0c74dffd74
Add strndup(3) to libnbcompat, since estrndup(3) added into efun.c calls it.
2007-07-03 12:11:09 +00:00
ginsbach
a3ae2738c9
Document that getopt_long(3) can and will accept unique abbreviated long
...
option names. This feature has been present since getopt_long(3) was first
released in NetBSD 1.5. This is also standard GNU getopt_long(3) behavior.
2007-07-02 17:56:17 +00:00
pooka
df6f052d2f
Get rid of the "int *refs" parameter to inactive: the same can be
...
accomplished now with puffs_setbacks.
2007-07-02 10:24:17 +00:00
pooka
79d81a9639
pid is gone
2007-07-01 23:04:13 +00:00
pooka
060d8639e3
add estrndup()
2007-07-01 21:41:16 +00:00
pooka
6596e0c995
adapt: **newnode etc. pointers -> struct puffs_newinfo
2007-07-01 18:40:15 +00:00
pooka
8023454664
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.
2007-07-01 18:39:39 +00:00
pooka
209b3e08de
cast to void * instead of actual (albeit incomplete) type to silence
...
gcc about type punning with -fstrict-alias
2007-07-01 17:42:19 +00:00
pooka
fe7bbdec69
adapt: pid -> const struct puffs_cid *
2007-07-01 17:23:44 +00:00
pooka
ffe0a01441
Instead of supplying a plain pid, supply an abstract struct puffs_cid *,
...
which can currently be used to query the pid and lwpid.
2007-07-01 17:22:13 +00:00
pooka
1776bc7796
adapt: pcn->pcn_cred is now a pointer
2007-07-01 15:32:02 +00:00
pooka
438f52d212
make puffs_cred an opaque type
2007-07-01 15:30:15 +00:00
xtraeme
42154df31a
Do not typedef bool as char, just include stdbool.h. Fixes a build
...
failure with regress/include/okheaders.
Suggestion by mlelstv@ and ok by blymn@.
2007-07-01 10:53:59 +00:00
pooka
5092d42715
print time elapsed between calls
2007-06-30 12:42:25 +00:00
christos
7b1793900f
make this compile without INET6 (Scott Ellis)
2007-06-29 15:53:21 +00:00
pooka
0f53ecfb54
fold in common code for node creation. no functional change.
2007-06-25 07:52:01 +00:00
pooka
c3942902c4
Since we locate in-memory nodes based on the inode number, stat a
...
file always after creation to cache the inode number given by the
backend file system. Otherwise we would not find a newly created
node from incore and create another one. In practise this was
pretty well hidden by the kernel name cache.
2007-06-24 23:02:55 +00:00
pooka
8bfc66776f
document KFLAG_NOCACHE{_PAGE,_NAME,}
2007-06-24 22:32:00 +00:00
pooka
53a4105885
Actually, keep PUFFS_KFLAG_NOCACHE and -o cache around as shorthand
...
to neither page- nor namecache.
2007-06-24 22:25:49 +00:00
pooka
5662e7f720
PUFFS_KFLAG_NOCACHE became two, so introduce the command line options
...
-o nonamecache and -o nopagecache and adapt file systems where necessary.
2007-06-24 22:18:38 +00:00
pooka
159e84cbd3
Introduce puffs_null_setops(), which initializes the ops vector with
...
puffs nullfs ops.
2007-06-24 18:42:25 +00:00
pooka
b1da438567
* document puffs_pn_remove
...
* all-around improve the manual page
2007-06-24 18:16:36 +00:00
pooka
564336f084
Introduce puffs_pn_remove() to signal that a node has been deleted
...
and destroyed, but not yet reclaimed. This prevents puffs_pn_nodewalk()
from returning stale entries. Make nullfs use this (some file
systems are a bit too happy with recycling inode numbers).
2007-06-24 17:55:07 +00:00
pooka
86e63e7e27
don't return errno from a function which returns an fd - there's
...
a "little" room for confusion. instead, return -1 and let the
caller grab errno.
2007-06-24 17:41:09 +00:00
christos
2f53e821af
Since we are going to be looking for ports many times, use a centralized
...
servent data structure and pass the stayopen hint.
2007-06-23 17:32:08 +00:00
ginsbach
2f41073256
Follow the example of other nbtool compat functions, like dirname, and
...
don't create if it is determined that the system in question doesn't need
them. This cleans up build warnings on systems with err.h (HAVE_ERR_H)
for example Mac OS X 10.3.
2007-06-18 14:13:54 +00:00
rmind
5fd6c5db8f
- Add aio_fsync(3) manual page. Reviewed and improved by <wiz>.
...
- Also, fix the accident duplicate of aio_suspend(3) entry.
2007-06-17 12:47:40 +00:00
pooka
04968eb0f0
add rcs ids
2007-06-15 09:14:50 +00:00
agc
8ff3509ad4
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.
2007-06-12 18:57:05 +00:00
agc
8dda7dd1f3
Minor cleanup - change uses of malloc, memset to calloc.
...
Use EXIT_FAILURE in preference to the less informational 1.
2007-06-12 18:54:36 +00:00
agc
e19f0cc8f0
Re-work the way the SET_FUSE_CONTEXT* macros are done, following
...
feedback from Antti.
2007-06-12 18:53:29 +00:00
agc
e9dcd39bdb
# 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
2007-06-11 20:54:33 +00:00
agc
2f101ca796
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.
2007-06-11 20:10:00 +00:00
joerg
5ccf1c578a
Add a new ioctl AUDIO_GETBUFINFO. It works like AUDIO_GETINFO, but
...
doesn't obtain the ports, gain and balance related parameters.
Those generally require reading from the hardware and therefore are much
more expensive to obtain. Modify OSS emulation to use the new ioctl
where possible.
This reduces CPU usage of mplayer during mp3 playback with my Thinkpad
from 20% to < 1% and from 50% to 20% during Xvid playback.
Review and comments from jmcneill@
2007-06-11 13:05:46 +00:00
pooka
18e8d526ea
print a specific warning if /dev/puffs cannot be opened in init
2007-06-11 06:13:34 +00:00
christos
07186f02e2
Fix tab/space confusion; from Stefan Farfeleder
2007-06-10 20:20:28 +00:00
christos
cc32d5a569
Note ZFS returning the number of entries instead of the size of the directory.
2007-06-10 01:21:53 +00:00
christos
7a5ce90a9f
PR/36464: scandir(3) corrupts heap when run on ZFS directories because ZFS
...
returns the number of entries as the directory size.
Use a new, more conservative entries estimator.
2007-06-09 23:57:25 +00:00
christos
a9df04f00d
bring in many changes from FreeBSD
2007-06-09 18:51:19 +00:00
wiz
cd4aa9ff37
Make Nm match Dt. This makes it easier to guess what the man page is
...
called when you find it with man -k.
2007-06-09 10:16:25 +00:00
pooka
b27fe77588
regen
2007-06-07 11:38:08 +00:00
pooka
f8326bf98e
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...
2007-06-06 01:54:59 +00:00
christos
1418345039
Make these work with _FORTIFY_SOURCE, by overriding the fortified definitions
2007-06-03 17:39:26 +00:00
christos
5463112942
- add read and readlink since they are used internally
...
- protect vsnprintf and vsnprintf since for lex(1) generated files <stdio.h>
is included before "namespace.h".
2007-06-03 17:38:07 +00:00
christos
fecee97ce4
We can USE_FORT now.
2007-06-03 17:36:08 +00:00
christos
aaa4c88713
provide a weak symbol for readlink since it is used internally.
2007-06-03 17:35:24 +00:00