summaryrefslogtreecommitdiffstats
path: root/support/nfs/xio.c
Commit message (Collapse)AuthorAgeFilesLines
* nfs-utils: remove xflock timeoutBen Myers2010-02-121-17/+1
| | | | | | | Remove this 10 second timeout which can cause unexpected behavior and corruption in the rmtab when hit. Signed-off-by: Steve Dickson <steved@redhat.com>
* Mountd should use separate lockfilesBen Myers2009-04-031-5/+7
| | | | | | | | | | | | | | | | Mountd keeps file descriptors used for locks separate from those used for io and seems to assume that the lock will only be released on close of the file descriptor that was used with fcntl. Actually the lock is released when any file descriptor for that file is closed. When setexportent() is called after xflock() he closes and reopens the io file descriptor and defeats the lock. This patch fixes that by using a separate file for locking, cleaning them up when finished. Signed-off-by: Ben Myers <bpm@sgi.com> Signed-off-by: Steve Dickson <steved@redhat.com>
* It appears that a recent glibc update now enforces the requirement for a modeSteve Dickson2008-07-151-1/+7
| | | | | | | | | | parameter for open calls with the O_CREAT flag set. nfs-utils support code defines a function xflock used by exportfs and mountd that calls open with O_CREAT but no mode parameter. This causes exportfs and mountd to dump core, with the error message: *** invalid open64 call: O_CREAT without mode ***:rpc.mountd terminated Signed-off-by: Steve Dickson <steved@redhat.com>
* nfs-utils: specify a create mode with open(...O_CREAT) call in xflockJeff Layton2007-08-091-1/+1
| | | | | | | | | The xflock function can create a file via open() with O_CREAT, but does not specify the create mode when it does so. I think 0644 should be appropriate given the current usage of this function. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Neil Brown <neilb@suse.de>
* Fix comment parsing (again)Neil Brown2006-06-231-6/+6
| | | | | | | | Bruce Fields noticed that I broke comment parsing... as xskip() is always called before xgettok(), that is the best place to put xskipcomment and still maintain proper semantics of xskip and xgettok.
* Only treat '#' as starting a comment when at the start of a tokenNeil Brown2006-06-051-2/+5
| | | | otherwise '#' in filenames cannot be read.
* Autogen updateneilbrown2005-12-201-1/+3
|
* 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>hjl2001-11-291-1/+1
| | | | | * support/nfs/xio.c (xskip): Call `xungetc' instead of `ungetc' to keep x_line more properly.
* 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>neilbrown2001-09-121-1/+19
| | | | | | | | | * support/nfs/exports.c (putexportent): \octal quote any spaces etc in a path name * support/nfs/xio.c (xgettok): recognise double-quote and \octal quoting in path names * utils/exportfs/exports.man: document quoting conventions for path names
* 2001-01-20 Chip Salzenberg <chip@valinux.com>chip2001-01-211-5/+5
| | | | | | | | * support/include/xio.h (xgetc): Declare to return int. * support/nfs/xio.c (xgetc): Return int. (xgettok, xskip, xskipcomment): Use int for value of xgetc. * utils/statd/statd.c (main): Use int for value of getopt. * debian/changelog: Version 0.2.1-5.
* 2000-12-03 Chip Salzenberg <chip@valinux.com>chip2000-12-031-1/+1
| | | | * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
* 1/ be less trusting of information in /var/lib/nfs/xtab. Add things toneilbrown2000-08-231-1/+1
| | | | | | kernel even if they are in here. 2/ O_CREAT [ex]log when locking for write incase they don't exist 3/ added etc/debian diretory with some files
* Fix typo in previous change.chip2000-02-261-6/+7
|
* Fix line numbers in tokenizer, which reads /etc/exports etc.chip2000-02-261-3/+6
|
* Initial revisionhjl1999-10-181-0/+151