Commit Graph

367 Commits

Author SHA1 Message Date
uwe b37b5fea79 Support IPv6.
Use getaddrinfo(3).  Add -4 and -6 command line options.  Obey USE_INET6.
2020-06-13 13:45:06 +00:00
uwe e03c12d8dc Fix extra whitespace added by accident. 2020-06-01 13:30:52 +00:00
uwe 3cee218d31 Initialize puffs9p::server (though it's not used anywhere). 2020-05-30 02:53:30 +00:00
uwe 2da8d56162 Provide list of options for ease of reference. 2020-05-30 00:00:35 +00:00
uwe 22cb1031f1 Fix vio9p device name in a comment. 2020-05-29 23:49:08 +00:00
uwe 63a7cdaa84 Do not send dummy Tauth, it's completely unnecessary.
The best way to not use authentication is to not use authentication.
Cf. http://man.cat-v.org/plan_9/5/attach
2020-05-28 14:00:05 +00:00
uwe 3e763228f4 puffs9p_node_rename - 9P rename is done with Twstat and can only
change the last pathname component.  Return EXDEV for attempts to move
a file to a different directory to make mv(1) fall back to copying.
2020-05-27 03:25:13 +00:00
uwe 8deaf9c1c0 noderemove - do not call puffs_setback here. noderemove is called
from rename (for existing target) and calling setback is not
appropriate in that context.  Do that call instead directly in the
callers (remove, rmdir).

From Nicola Girardi, part of PR/54829.
2020-05-27 00:36:07 +00:00
uwe b2db326b70 puffs9p_node_rename - noderename takes puffs_node, not p9pnode, but
this goes undetected b/c pn_data we pass is a pointer to void.

From Nicola Girardi, part of PR/54829.
2020-05-27 00:05:22 +00:00
uwe c92f8ba0f7 Use the typedef to declare tag in AUTOVAR. Do not allocate 9P tags in
advance in AUTOVAR, do it right before we need them.  Do no reuse tags.
If we are going to use sequential tags, we might as well try to make
them really sequential.
2020-05-26 22:54:43 +00:00
uwe 41b86583fb Do not allocate 9P tags in advance, do it right before we need them.
If we are going to use sequential tags, we might as well try to make
them really sequential.
2020-05-26 22:33:04 +00:00
uwe 2c2f0a9518 puffs9p_node_lookup - use the right type for tfid. 2020-05-26 22:08:11 +00:00
uwe 80d3119c60 proto_getstat - g/c debug printfs. 2020-05-26 19:41:36 +00:00
uwe 795a40f9c2 getdfwithoffset - do not issue dummy read to seek to offset zero on a
newly opened fid as it's already there.  This is redundant and also
seems to confuse inferno when issued against the root directory.  Now
you can ls the mount point of

    styxlisten -A 'tcp!*!styx' export /

While here fix the seek logic to actually repeatedly seek forward
instead of always doing it from zero.
2020-05-26 19:38:14 +00:00
christos 965581664f reverse the order for sun2 2020-05-17 18:59:02 +00:00
christos d9e593034a Oops forgot to commit this. 2020-05-16 12:30:35 +00:00
christos 82bbf8637f We don't have smbfs anymore. 2020-04-04 17:05:06 +00:00
wiz 74ae0cee76 Sort SEE ALSO. "file system" police. 2019-10-28 13:42:28 +00:00
ozaki-r 1dfe73716b mount_9p: enable to communicate with vio9p via its character device file
With this feature, we can mount an exported filesystem by a VM host via
virtio-9p.
2019-10-28 02:59:25 +00:00
christos 38a0431bfa Restore binary compatibility by using the statvfs90 structure internally. 2019-09-23 12:00:57 +00:00
brad 6f990d2afc The cleaner is compiled into rump_lfs and executed as a thread. Pass
in the raw device using the new -J option.  This avoids the use of
getdiskrawname which is not particularly rump safe in this context and
insures that the rump container device is used for cleaning, not the
outer device.
2019-08-30 23:41:48 +00:00
ozaki-r 3a48a88c0a Handle Rerror and return errno correctly (only for 9P2000.u for now) 2019-06-07 05:34:34 +00:00
ozaki-r 5bdf72767f mount_9p: add missing -u option to the help message 2019-05-20 08:55:31 +00:00
wiz 315c68e54c Merge single-letter options in SYNOPSIS.
Add an article.
2019-05-17 08:56:12 +00:00
ozaki-r e674e58b44 mount_9p: add initial support for 9P2000.u
The implementation enables to work with a server talking 9P2000.u.  However, it
doesn't use the extended fields yet; it just ignores those of received messages
and sets "please ignore" values to those of sending messages such as zero-length
strings and maximum unsigned values.

The feature is enabled by the -u option.
2019-05-17 08:48:04 +00:00
wiz 5e9199761d Add missing .Re. 2019-05-17 08:26:20 +00:00
ozaki-r 9e63ef91c4 Refer the current official page 2019-05-17 07:50:49 +00:00
ozaki-r 3f3df26172 Document the -s option 2019-05-17 07:50:09 +00:00
mrg 8dec05958d don't check the return value of execvp() for failure to call err().
assume if it returns at all something has failed.
2019-02-01 09:06:07 +00:00
riastradh ef315f7931 Remove MKCRYPTO option.
Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export.  The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated.  I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S.  Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet...  That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
2017-05-21 15:28:36 +00:00
ozaki-r 7c181550a9 Fix build of puffs 2017-03-14 14:05:52 +00:00
christos 67f5543283 nothing is executable. 2016-11-23 17:25:11 +00:00
christos 07e020dd99 - protect against node not found SEGV
- fix reversed logic; if we find it in the cache we return it, otherwise
  we create it.
2016-11-23 17:22:44 +00:00
christos 4a4baf005d PR/514612: Mateusz Paszwa: When no more data, bail out (reading from empty
files) instead of stuck looping.
2016-10-07 21:09:57 +00:00
christos ffeb8dbf4e Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
christos 6c340bb484 Add usage function, various cosmetics; no functional change. 2015-11-12 16:51:18 +00:00
christos 017f121465 Some of the puffs mount programs don't need RUMP, re-enable them. 2015-11-08 20:00:22 +00:00
dholland 9263edc766 Use the lfs header file and lfs's mount args struct, not ufsmount.h
and the ffs mount args struct, for mounting lfs.

(they are the same, so this doesn't matter yet, but still...)
2015-08-02 18:11:57 +00:00
szptvlfn 20e418f0d1 s/stavfs/statvfs/ 2014-06-25 23:22:18 +00:00
joerg 5c4c6caf71 Make the abs() use check non-fatal for a bogus use in the LFS cleanerd. 2014-03-04 21:06:47 +00:00
christos 2b043c75b6 eliminate use of bsd.sys.mk from Makefiles 2014-01-16 01:15:32 +00:00
christos 1497d945c9 smbfs has moved. 2013-12-25 23:35:17 +00:00
riastradh 014f25f78d After mount_lfs_parseargs, reset getopt for lfs_cleaner_main. 2013-01-10 08:35:26 +00:00
reed 71cb89f544 fix spelling typo 2012-12-25 20:31:03 +00:00
njoly 3373228440 Fix mandoc(1) output, use right arrow special character. 2012-11-14 23:11:27 +00:00
christos 8c13db6ad0 add the headers you need 2012-11-04 22:47:21 +00:00
christos 4f048a363d include the headers you use 2012-11-04 22:46:08 +00:00
christos 24f9b938a0 add missing header 2012-11-04 22:38:19 +00:00
riz d41e703879 Disable default build of debugging info. 2012-09-06 16:39:07 +00:00
jakllsch c53184c92c Ensure psshfs_node_read() completely reads all data before return.
Fixes file corruption in psshfs exposed with kernel MAXPHYS at 128KiB.
2012-01-20 22:07:58 +00:00