Commit Graph

8452 Commits

Author SHA1 Message Date
jmmv
d96be1e18a Add a -F option to allow passing a configuration file to ssh(1), instead
of having to use multiple -O options on the command line.  OKed by pooka@.
2007-12-14 10:56:22 +00:00
pooka
074f023a65 Record inode number in psshfs_dir also for already instantiated
nodes when doing readdir.  This makes pwd work again for cases
where getcwd() actually has to do the "READDIR + compare inode
numbers" trick.

Yet another problem reported by jmmv.
2007-12-13 14:59:00 +00:00
pooka
343d277986 *blink*, remember to update comment too 2007-12-13 14:32:47 +00:00
pooka
794adab583 Do previous in a way which causes less waste of potential inode numbers. 2007-12-13 14:31:44 +00:00
lukem
bcf893f432 use __RCSID() 2007-12-12 22:55:42 +00:00
christos
22ec0fdf7e warns=4 2007-12-12 21:56:38 +00:00
xtraeme
e2749a8b14 Xref battery_pmu(4). 2007-12-12 20:27:30 +00:00
pooka
00b48f3e40 Fix lossage noticed by jmmv (mostly for -t 0 mounts) and make sure
a node always has the inode number set.  And since I'm feeling
generous, sprinkle a few comments around the affected areas (mostly
so that I'd remember what in the world the code is trying to do).
2007-12-12 16:04:35 +00:00
martin
aff14f6816 Ooops, backout Makefile change in previous - did not intend to commit
that part
2007-12-12 10:05:44 +00:00
martin
8dee778467 When converting unicode input, replace everything with second byte != 0
with the letter A - this avoids syntax errors if real unicode strings are
used as quoted strings (for example). Fixes a problem converting some
Broadcom driver's .inf file reported on current-users.
Same output generated as with the .inf file properly converted by iconv
upfront.
2007-12-12 10:04:52 +00:00
christos
f84222f6f6 fix usage to say we can take multiple files. 2007-12-11 01:40:27 +00:00
dyoung
537fc55662 Add a todo item: read files from multiple directories. 2007-12-10 23:54:35 +00:00
pooka
faa30930fd When creating a node, do the server-dance before creating the local
data structure.  This avoids a race between create and lookup, as
the kernel now unlock the directory before the create operation
returns.
2007-12-09 18:05:42 +00:00
dogcow
f4c8a4cce7 Turns out we don't actually need to include <sys/namei.h>; since it causes
a compile error, away it goes.
2007-12-09 12:04:06 +00:00
christos
f8082d9a50 We should be able to operate on more than one file, like other unix tools. 2007-12-08 19:56:54 +00:00
pooka
a86a009392 Don't use puffs_cc_getusermount() 2007-12-07 14:59:22 +00:00
pooka
f845b0dacb Get rid of a lot of extra complexity due to doing separate getattr
requests in readdir - just use the results from the readdir rpc.
2007-12-07 14:54:08 +00:00
pooka
2195151d14 In case a node is created in lookup in the readdir path, initialize
attribute cache timestamp to be equal to that of the directory
cache timestamp.
2007-12-07 13:09:49 +00:00
christos
2220b74719 patch from pkgsrc 2007-12-06 21:58:58 +00:00
christos
1f093d4259 PR/37482: Malcolm Herbert: mtree does not check for getlogin() returning null
in spec create
2007-12-05 16:55:29 +00:00
pooka
375257e2a7 Invalidate namecache for a directory only if we've already read it
at least once.
2007-12-05 12:01:44 +00:00
pooka
30e5c41557 When scheduling waiters for re-run, remove them from the waitqueue
already when scheduling to make sure they're not scheduled more
than once.
2007-12-04 19:31:22 +00:00
wiz
6ee13c8582 Do not overload Xr macro. 2007-12-03 18:14:48 +00:00
wiz
5d9460afed Fix xrefs. Sort options. Standardize wording. 2007-12-02 21:22:03 +00:00
wiz
9fbc5e2b76 Sort options. 2007-12-02 21:03:39 +00:00
wiz
c50e337e51 Nits. Sort options. 2007-12-02 21:03:32 +00:00
wiz
4721bd8970 Drop trailing whitespace, remove superfluous Pp. 2007-12-02 20:59:29 +00:00
wiz
f2714d32d2 Fix Xref. 2007-12-02 19:19:16 +00:00
wiz
c3ff82973e Sort SEE ALSO. Minor nit fixes. 2007-12-02 19:05:51 +00:00
kiyohara
7d8e778052 Add EXAMPLES.
Reorder types.
2007-12-02 03:25:36 +00:00
kiyohara
095036e67d Add support bgb2xx.
Obsolate bt2000c.
2007-12-02 00:20:24 +00:00
wiz
8e492a60da Typo fix. 2007-12-01 19:38:38 +00:00
wiz
9e3049e77d Sort options, SEE ALSO, sections. 2007-12-01 19:00:55 +00:00
wiz
163e44444f Sort SEE ALSO. 2007-12-01 18:56:42 +00:00
wiz
ac491fe208 Punctuation and typo fixes. 2007-12-01 18:41:24 +00:00
mlelstv
3b956ed6b4 Sort queue by time and jobid so that jobs submitted within the
same second are printed in order.
Fixes PR bin/37346
2007-12-01 09:26:58 +00:00
pooka
21913eabe5 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.
2007-11-30 19:02:28 +00:00
pooka
3fe3f65454 Introduce the concept of lazyopens. This means that when a file
handle open is requested, it is waited for only if the node was
not previously succesfully opened.  The actual wait for the file
handle happens only when the file handle is actually needed (read
or write).  This in turn has the effect that reading cached files
will be quick instead of waiting for the file handle from the sftp
server first.  The wait previously could be very long if there were
serveral hundred k of outstanding requests in a limited-bandwidth
link.

The code is in some need of serious handholding, but it works, so
I'll leave that as "future work".
2007-11-30 16:24:04 +00:00
plunky
736a9db087 Clean up the way that bluetooth drivers attach to the bluetooth stack,
to remove the frobbing that drivers must do in the hci_unit structure.

- driver provides a static const interface descriptor
- hci_unit is allocated by hci_attach() rather than part of softc
- statistics are compiled by driver and provided on request
- driver provides output methods and is responsible for output queue
- stack provides input methods and is responsible for input queue
- mutex is used to arbitrate device queue access
2007-11-28 20:16:11 +00:00
pooka
6a3d9a187d 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.
2007-11-27 11:31:17 +00:00
jnemeth
91954fd117 PR/35238 - tls@ -- add _proxy to uid and gid checks 2007-11-21 10:41:03 +00:00
plunky
b0d7f48f6f use optarg instead of mode when reporting failure - mode is uninitialised 2007-11-19 19:49:58 +00:00
ad
c60c05b2ef TS_ASLEEP is gone. 2007-11-19 19:00:30 +00:00
rillig
f8d3de218d Renamed dsort to dcmp, since it doesn't sort, it only compares. 2007-11-19 08:58:54 +00:00
rillig
50e4f54b4c Even on non-BSD systems, the "-R all" option should disable printing of
the "time" attribute. Noticed by Malcolm Herbert on tech-pkg.
2007-11-19 08:42:24 +00:00
pooka
8dd9b67755 Don't bother tracking opencount and try to close file handles in
the close method - simply just wait for inactive and do it there.
2007-11-18 17:41:55 +00:00
pooka
4462e9454f use puffs_daemon() instead of daemon() 2007-11-16 18:39:01 +00:00
pooka
968196af71 If a regular file was remotely updated and a readdir was done on
the directory which contained the file before a getattr on the file
itself, the locally cached mtime would be updated without invalidating
the kernel page cache.  Thus incorrect data would be returned when
the node was read afterwards as the node size wouldn't match the
data length in the page cache.

Fix the problem by making all vattr-setting routines use the same code.

Problem noticed again by jmmv & atf (and again by running atf over
psshfs ... sometimes you're the windshield, sometimes you're the bug)
2007-11-16 15:53:47 +00:00
jmmv
55876f3f39 Drop trailing whitespace. On behalf of pooka. 2007-11-16 15:10:06 +00:00
pooka
0feebae56b When checking if the file page cache should be invalidated, compare
against cached mtime instead of attrread - attrread can be reset
these days by sending SIGHUP.

Problem noticed by jmmv & atf (well.. namely by using atf through psshfs).
2007-11-16 14:25:47 +00:00