Commit Graph

376 Commits

Author SHA1 Message Date
andvar f9faf20aef fix typos in comments, mainly s/extention/extension/ and s/sufficent/sufficient/ 2021-09-03 21:54:58 +00:00
martin 5c18a11ba1 Allow to set sanitizer flags for the rump build from the
build.sh command line, like: -V RUMP_SANITIZE=address
2021-07-07 11:51:45 +00:00
mrg c2082ece61 remove GCC_NO_ADDR_OF_PACKED_MEMBER for several subdir builds
that are now handled by lfs_accessors.h internally.
2020-09-07 03:09:53 +00:00
mrg cb93b81028 add support for new GCC 9 warnings that may be too much to fix
right now.  new address-of-packed-member and format-overflow
warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd
GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.

apply to a bunch of the tree.  mostly, these are real bugs that
should be fixed, but in many cases, only by removing the 'packed'
attribute from some structure that doesn't really need it.  (i
looked at many different ones, and while perhaps 60-80% were
already properly aligned, it wasn't clear to me that the uses
were always coming from sane data vs network alignment, so it
doesn't seem safe to remove packed without careful research for
each affect struct.)  clang already warned (and was not erroring)
for many of these cases, but gcc picked up dozens more.
2020-09-06 07:20:26 +00:00
christos 5cba22b413 include bsd.init.mk to avoid:
make: Bad conditional expression ` != "no"' in  != "no"? -DINET6 :
2020-08-30 21:12:45 +00:00
uwe 55f4124e32 Use ?:: modifier instead of .if to check for ipv6.
This way we don't have to include bsd.init.mk early.
2020-06-19 01:19:50 +00:00
uwe 44ebef0f33 Support optional square brackets around the host name.
The brackets are required when using numeric IPv6 addresses as they
contain colons as part of their syntax.  We do not enforce that the
thing in the brackets is a numeric IPv6 address - this matches scp
syntax and behavior.
2020-06-14 00:30:20 +00:00
uwe 943a91a810 Remove -46 from the -c usage. While here, sync usage with man page
(s/devfile/device).
2020-06-13 21:23:27 +00:00
wiz e38e8568c9 Add -46 to usage. 2020-06-13 16:56:46 +00:00
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