Commit Graph

9469 Commits

Author SHA1 Message Date
pooka
326638b53f In case we create a file, reclaim the vnode, and lookup the file
without the directory timeout expiring, we get vattr_null as the
attributes for that file.  Ensure that we always report sane
attributes by getting them from the server if this is the case.
(also, sprinkle some const)

Fixes problem reported by dyoung.   But wait!  The bug's medallion
begins to glow!  The bug looks much better!  I crumble to dust.

There's probably another similar bug related to "lazy open".  It
will trigger if we reclaim a node before the response to the open
arrives.  Even the comments (typoless) know about this bug ...
But verifying it exists and fixing it will have to wait for another
day.
2010-04-01 02:34:09 +00:00
pooka
f53fd22c3c fix typo (at least it was in an error string instead of a comment) 2010-03-31 14:54:07 +00:00
pooka
be33b37b2e regen 2010-03-31 14:49:46 +00:00
pooka
5e15c7d5fc MAP_COPY is available only in _KERNEL .... uh, so don't use it here. 2010-03-31 14:49:02 +00:00
pooka
5fb5ff121c Add note saying that the manual page is autogenerated and all parts
may not apply to this particular server.

TODO: have three different texts, one for device backed file systems
(e.g. ffs), another for network backed (e.g. nfs), and a third for
fictional (e.g. kernfs)
2010-03-31 14:45:59 +00:00
pooka
e83b6a1151 generate 2010-03-31 14:33:37 +00:00
pooka
bde226973a Add kernfs server.
Don't build & install it by default, since it represents the state
of the rump virtual kernel and not the host kernel.  However, it's
useful for debugging kernfs.
2010-03-31 14:22:27 +00:00
cegger
0cffce294c make this build again after ieee1394 update 2010-03-29 10:49:34 +00:00
dholland
d4ca0466e8 Avoid SIGSEGV in forked child process for (some?) instant-disconnect clients. 2010-03-25 16:36:00 +00:00
jruoho
260563ef8c Note also here that this is a legacy daemon that is more or less deprecated. 2010-03-20 09:22:37 +00:00
jruoho
7e4def2e7d Add a note that APM was deprecated by the PC manufacturers in about 1996.
Mention the APM emulation layer of ACPI. In addition, some small fixes.
2010-03-20 07:59:44 +00:00
cnst
deaf16ef51 Remove aiboost(4) as obsolete and redundant since the introduction of aibs(4).
http://mail-index.netbsd.org/tech-kern/2010/03/06/msg007458.html

Reviewed by <pgoyette>, <cegger>, <jruoho>, <tech-kern>.
2010-03-19 04:04:27 +00:00
wiz
35d2900127 Quote question mark so it's correctly marked up.
Problem reported by Ryo HAYASAKA in PR 42963.
2010-03-12 09:36:15 +00:00
christos
0fa7bdbba6 PR/42943: Takashi Sogabe: pppd generates invalid netmask 2010-03-10 13:45:39 +00:00
wiz
8c68fa47ec Sort sections. Try to improve description of -t. 2010-03-09 10:54:01 +00:00
kiyohara
cecd9b8efc Remove white-spaces. 2010-03-09 02:01:51 +00:00
plunky
c683e41b5d use %zd for ssize_t argument 2010-03-08 21:48:42 +00:00
plunky
7937d424ef fix compilation errors 2010-03-08 21:19:29 +00:00
kiyohara
3e3acb56cf Add -t, -F, -P. 2010-03-08 18:35:51 +00:00
kiyohara
4670060018 Add option 'test mode'(-t).
Can test your Bluetooth module via com-port.
  This mode guess speed for bcsp(4) or btuart(4), if not respond.
2010-03-08 17:59:52 +00:00
kiyohara
45be6911c0 Add options 'no parity'(-P) and 'disable flow control'(-F).
Also default enable parity for bcsp.
2010-03-08 17:41:11 +00:00
pooka
50cfd7e754 add commented out nqmfs 2010-03-08 12:48:31 +00:00
pooka
c11c0f21f8 Not Quite MFS
Instead of copulating with newfs to produce a new FFS image into
memory, mmap() a given existing image and pass that as the backing
store.  If -s is given, mmap is done with MAP_SHARED and changes
are kept across mounts, else MAP_COPY (i.e. MAP_PRIVATE for us) is
done and changes are lost when the server exits.

Note: -s does not guarantee any kind of file system safety whatsoever
and in case of kill, crash, exit or other form of elusion,
everything will be, according to our theme, quite screwed.
2010-03-08 12:46:33 +00:00
plunky
6f9cc4f169 add some LOG_DEBUG 2010-03-07 10:58:40 +00:00
pooka
ed49ad5f70 Give usage() a chance.
XXX: UKFS_DEVICE_ARGVPROBE() interface
2010-03-03 17:37:01 +00:00
joerg
bfbe4c3572 Use HUGE_VAL instead of INFINITY as positive infinity (or maximum value)
is good enough and the side effects of ISO C99 7.12 (4) are not desired.
2010-03-01 00:13:47 +00:00
mlelstv
68b19a91fd Adjust for change in kernel that stores physical block numbers
in superblock that point to the journal.
2010-02-27 12:07:40 +00:00
wiz
60e71df88e Sort options. 2010-02-27 10:49:58 +00:00
wiz
55641935f7 Sort options. Add -j to SYNOPSIS. Bump date for -j. 2010-02-27 10:49:42 +00:00
mlelstv
f8f395ea25 Print both commit headers, even for disks with larger block sizes. 2010-02-27 09:53:33 +00:00
mlelstv
b13adfa46e Add support to print the WAPBL journal. 2010-02-27 09:05:59 +00:00
cegger
14bab12404 check for svm feature flags if cpuid function 0x8000000a is available. 2010-02-23 08:46:33 +00:00
bouyer
1d8e4d24e4 Make block fields one char wider; allows to sanely display quotas up to
99.9GB while still fitting 80 columns.
Something else needs to be found for the long term ...
2010-02-17 18:55:14 +00:00
pooka
d317936de6 umgah. meant fts, not fsu 2010-02-17 15:54:10 +00:00
pooka
046f5845a2 Bump the initial rootdir link count guess to a ludicrous value. 2010-02-17 15:50:54 +00:00
pooka
73655f9fb0 Save "." attributes in readdir. This fixes the root link count
after readdir is called for the root dir the first time (yes,
there's still a window of wrong link count after the fs is mounted.
it's currently quite difficult to call sftp_readdir() from outside
the main loop).

Should fix "find /mnt" problem for a mountpoint with more than the
"guessed" amount of subdirectories, as reported by dyoung.
2010-02-17 15:47:36 +00:00
plunky
de7a8fb394 sort entries in structure
clarify init name type for CSR modules
2010-02-17 09:49:41 +00:00
mlelstv
03a893b3fd Read the padded superblocks to avoid problems with disks that have
larger sectors than 512 Bytes.
2010-02-16 18:57:53 +00:00
mrg
f23127ca0a don't call most/all Core2's "(Merom)". 2010-02-16 00:13:14 +00:00
pgoyette
c4b330d512 Document the new {high, maximum}-capacity keywords, and some general
clean-up.
2010-02-15 23:04:11 +00:00
pgoyette
55a81df24d Update cross-reference to refer to new aibs(4) instead of aiboost(4) 2010-02-15 22:38:28 +00:00
pgoyette
74999bdda4 Update userland envstat(8) to handle new {high,maximum}-capacity limits. 2010-02-15 22:37:14 +00:00
njoly
9a9cbde160 Fix double free, when requesting an invalid sensor. 2010-02-12 14:26:27 +00:00
cnst
7397d018ca remove the fourth (empty) column from the -T printouts; ok pgoyette 2010-02-12 05:02:40 +00:00
cnst
0854bc43a8 fix a typo resulting in warn-max being shown in two columns (one time instead of crit-min); ok pgoyette 2010-02-09 05:32:51 +00:00
cnst
1c23afa3cb New aibs(4) driver for ASUSTeK AI Booster (ACPI ATK0110) hardware monitor
with limit support.

        http://thread.gmane.org/gmane.os.netbsd.devel.kernel/35654

Reviewed by <pgoyette>, <jruoho> and <tech-kern>.
2010-02-09 03:19:50 +00:00
he
76d4444c78 When using -lcurses, you also need -lterminfo.
This fixes the build for sun2, and also builds with LDSTATIC=-static,
since archive libraries don't record inter-library dependencies.
2010-02-06 23:45:24 +00:00
pooka
70b8adf303 Give credit: psshfs was inspired by FUSE sshfs. 2010-02-03 17:16:29 +00:00
pooka
7face90494 statvfs:
Since bresvd is not available from the server, calculate:
	bresvd = bfree - bavail.

Then df calculates:
	bavail = bfree - bresvd;

And we now get a much more accurate report from df on how much one
can write to the fs.
2010-02-03 17:02:52 +00:00
roy
98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00