rink
048d5cc4aa
Prevent mountd(8) from resetting mount options when exporting a filesystem.
...
Approved by: imp (mentor)
Sponsored by: Quality Service Provider BV
MFC after: 3 days
2006-10-09 17:38:18 +00:00
rodrigc
42f2307385
In get_exportlist(), properly loop over mounted filesystems.
...
PR: bin/99873
Submitted by: Danny Braniss <danny at cs dot huji dot ac dot il>
2006-07-08 13:49:24 +00:00
rodrigc
88f89f303f
For network filesystems (NFS, samba, etc.), do not pass "export" nmount()
...
parameter to try to delete an NFS export. It won't work, and will log
a spurious warning to syslog.
Tested by: Arno J. Klaassen <arno at heho dot snv dot jussieu dot fr>
MFC after: 3 days
2006-06-06 21:56:49 +00:00
rodrigc
f5f4b77a10
Do not log "can't delete export" messages if nmount() returns ENOTSUP.
...
This eliminates spurious log entries for trying to delete exports
for filesystems like devfs and procfs.
2006-05-28 18:59:28 +00:00
rodrigc
155325e141
Convert to nmount() and remove hardcoded checks for ufs, msdosfs, ntfs,
...
and cd9660.
PR: bin/97642
2006-05-24 11:49:39 +00:00
rodrigc
04be51fc90
Convert mountd to nmount(). Remove some hardcoded dependencies
...
on ufs, cd9660, msdosfs, and ntfs, but not all dependencies.
2006-05-23 17:10:17 +00:00
keramida
9474672d95
Note that when -d flag is used, mountd(8) will not detach from the
...
controlling terminal.
PR: docs/96660
Submitted by: Jeff Ito <ijk@speakeasy.net>
MFC after: 1 week
2006-05-02 21:00:43 +00:00
jkoshy
e67c2fab9c
Use ".Pa" for path names.
...
MFC after: 3 days
2006-01-29 08:44:05 +00:00
pjd
c71407b589
Pidfiles should be created with permission preventing users from opening
...
them for reading. When user can open file for reading, he can also
flock(2) it, which can lead to confusions.
Pointed out by: green
2005-09-16 11:24:28 +00:00
pjd
a834e2610e
Use pidfile(3) in mountd(8). There is no need to use /var/run/mountd.lock
...
anymore.
2005-08-24 19:17:06 +00:00
ume
e33ba03345
NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines
...
NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special
for it, now.
2005-05-13 16:31:11 +00:00
stefanf
ce3085bbfb
Remove unused variables.
2005-04-09 14:59:10 +00:00
ru
c05985f13f
Sort sections.
2005-01-18 20:02:45 +00:00
phk
fe016ce224
Also do not send junk mount arguments when removing exports.
2004-12-11 12:51:20 +00:00
stefanf
d00a4eaaea
Pass an array of gid_t rather than an array of int to getgroups().
...
PR: 56646
2004-10-02 11:40:48 +00:00
imp
9fbed704d5
Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived software
...
(with permission of addtional copyright holders where appropriate)
2004-08-07 04:28:56 +00:00
ru
3d43f7de86
Markup nits.
2004-06-04 19:23:12 +00:00
ceri
d0f528517f
Correct typo in the last revision.
2004-03-27 14:23:25 +00:00
ceri
35087eb94c
Note that only one webnfs share is allowed per NFS server.
...
PR: docs/45371
Submitted by: Mattias Pantzare <pantzer@ludd.luth.se>,
Matthew D. Fuller <fullermd@over-yonder.net>
MFC after: 2 days
2004-03-22 21:05:57 +00:00
markm
0b0ae8e16e
Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)
...
that this provokes. "Wherever possible" means "In the kernel OR NOT
C++" (implying C).
There are places where (void *) pointers are not valid, such as for
function pointers, but in the special case of (void *)0, agreement
settles on it being OK.
Most of the fixes were NULL where an integer zero was needed; many
of the fixes were NULL where ascii <nul> ('\0') was needed, and a
few were just "other".
Tested on: i386 sparc64
2004-03-05 08:10:19 +00:00
bms
9edf770955
Add a new option to mountd(8), -p <port>. This allows the user to specify
...
a known port for use in firewall rulesets; otherwise the port is chosen
at run-time by bindresvport().
MFC after: 1 week
2004-03-04 04:42:52 +00:00
obrien
f97ef1fb86
Be consistent in the EXAMPLES formatting.
2004-01-01 00:59:58 +00:00
peter
446d2f7e9f
Rename the 'log' variable rather than -fno-builtin-log
2003-10-30 22:57:43 +00:00
peter
18ddddadd0
Use -fno-builtin-log. Fix svc_sendreply() missing required casts.
...
It is now WARNS=2 clean again.
2003-10-26 05:58:21 +00:00
rwatson
003334ca8f
When reporting errors binding IPv6 TCP sockets, don't call them UDP
...
sockets in the printf.
Fix two minor co-located whitespace glitches.
Product of: France
2003-07-17 10:11:26 +00:00
obrien
a920d12f89
style.Makefile(5)
2003-04-04 17:49:21 +00:00
mbr
f4b7d59385
Implement nonblocking tpc-connections. rpcgen -m does still
...
produce backcompatible code.
Reviewed by: rwatson
Obtained from: NetBSD
MFC after: 1 day
2003-01-16 07:27:30 +00:00
schweikh
fec6546e12
english(4) police.
2002-12-27 12:15:40 +00:00
ru
041d1287e8
Uniformly refer to a file system as "file system".
...
Approved by: re
2002-12-12 17:26:04 +00:00
charnier
de3f4fb0c5
s/rpc.mountd/mountd/
...
Add FBSDID
Reorder #if/#endif around sccsid to conform style(9)
2002-10-16 16:04:50 +00:00
mike
86a758e51b
Use the standardized CHAR_BIT constant instead of NBBY in userland.
2002-09-25 04:06:37 +00:00
markm
7214c4fb56
Kerberised NFS has never (as far as I can tell) worked outside
...
BSD 4.4. Nuke mention of Kerberos from the documentation here.
MFC after: 1 week
2002-09-20 20:03:27 +00:00
mux
fdf494091a
Update manpage to match the code, vfsload() isn't used
...
here since some time, kldload() is used instead.
2002-08-11 15:21:06 +00:00
ume
9c2c51a1e6
use IPV6_V6ONLY instead of non standard IPV6_BINDV6ONLY.
...
MFC after: 1 week
2002-07-22 15:22:53 +00:00
joerg
63afba9f66
Try to give a more descriptive error message for the pilot error of
...
attempting to export the non-root of a filesystem with -alldirs. This
pilot error seems to be very common, and the "could not remount" error
message doesn't give much hints about the real reason. See the old PR
below for an example.
While i was at it, make it possible to entirely omit the often
annoying error message in that case by specifying the "quiet" exports
flag. This allows to specify something like
/cdrom -alldirs,ro,quiet <where to export to>
which will silently fail if nothing is mounted under /cdrom, but do
the rigth thing as soon as you mount something.
While doing this, i've put the embedded example in the exports(5) man
page into a subsection of its own as it ought to be.
Thanks for Paul Southworth for reminding me about this problem.
PR: bin/4448
MFC after: 1 month
2002-07-18 20:52:17 +00:00
alfred
b53eff381d
If an RPC fails, try a shorter reply in case the fault lies with the
...
size of the response.
PR: misc/26320
MFC After: 2 weeks
2002-07-15 18:34:27 +00:00
charnier
a2accd01f0
The .Nm utility
2002-07-06 19:34:18 +00:00
alfred
03ae273076
Remove old pre-TIRPC code for getting transport handles. The code that
...
follows spams over the contents of them making the removed code useless.
2002-06-25 22:55:53 +00:00
trhodes
896f3841bf
more file system > filesystem
2002-05-16 04:10:46 +00:00
iedowse
36cd292d7d
Use fgetln to remove the static limit on the length of lines in
...
/etc/exports. Oversized lines were unlikely due to the large 10k
limit, but any found would cause mountd to exit with an error. Also
fix one or two compiler warnings.
2002-05-14 23:24:28 +00:00
imp
baca1664d9
o __P removed
...
o main prototype removed
2002-03-21 13:14:21 +00:00
obrien
73c6870b18
Remove 'register' keyword.
...
It does not help modern compilers, and some may take some hit from it.
(I also found several functions that listed *every* of its 10 local vars with
"register" -- just how many free registers do people think machines have?)
2002-03-20 17:55:10 +00:00
dd
70372059b0
Chase sysctl name.
...
Submitted by: Christopher Sharp <christopher_sharp@web.de>
2002-03-11 00:07:55 +00:00
dd
c8a6bd9922
Introduce a version field to `struct xucred' in place of one of the
...
spares (the size of the field was changed from u_short to u_int to
reflect what it really ends up being). Accordingly, change users of
xucred to set and check this field as appropriate. In the kernel,
this is being done inside the new cru2x() routine which takes a
`struct ucred' and fills out a `struct xucred' according to the
former. This also has the pleasant sideaffect of removing some
duplicate code.
Reviewed by: rwatson
2002-02-27 04:45:37 +00:00
obrien
9baf2f1b03
Default to WARNS=2.
...
Binary builds that cannot handle this must explicitly set WARNS=0.
Reviewed by: mike
2001-12-04 02:19:58 +00:00
peter
0bbcfd5027
Deal with module name changes and autoloading.
2001-09-20 02:15:17 +00:00
peter
68a5e33921
Userland part of nfs client/server split and cleanup.
2001-09-18 23:34:44 +00:00
kris
5e75b336b9
Silence non-constant format string warnings by marking functions
...
as __printflike()/__printf0like(), adding const, or adding missing "%s"
format strings, as appropriate.
MFC after: 2 weeks
2001-08-19 08:19:37 +00:00
ru
f858dca3dc
mdoc(7) police: join split punctuation to macro calls.
2001-08-10 17:35:21 +00:00
dd
a145482cf6
Remove whitespace at EOL.
2001-07-15 07:53:42 +00:00