Commit Graph

77 Commits

Author SHA1 Message Date
kleink
9ee75a4fcc Add _PC_FILESIZEBITS to pathconf vnop. 1999-03-22 19:21:07 +00:00
wrstuden
862a56e88b Modify vfsops to seperate vfs_fhtovp() into two routines. vfs_fhtovp() now
only handles the file handle to vnode conversion, and a new call,
vfs_checkexp(), performs the export verification.
1999-02-26 23:44:43 +00:00
bouyer
8be15977ce Correct both in my previous commit (#ifdef around by Matthew Jacob). 1999-02-11 09:49:46 +00:00
mjacob
99fb54992d ifdef around merge botch 1999-02-10 21:56:23 +00:00
bouyer
22d556f6cf Make sure a buffer optained from bread() is always bresle()'d in case of
error. Closes PR kern/1448 from Wolfgang Solfrank.
1999-02-10 13:14:08 +00:00
thorpej
d0bcffb9a3 Use the pool allocator and the "nointr" pool page allocator for adosfs nodes. 1998-09-01 03:33:26 +00:00
kleink
1bbb6339c8 In readlink, don't copy the string's NUL-terminator, and remove a redundant
check.
1998-08-19 13:12:40 +00:00
kleink
5350df2953 Per POSIX, fail with EINVAL if advisory locking is attempted on a file type
that doesn't support it, rather than using a homegrown EBADF or EOPNOTSUPP.
1998-08-13 10:06:31 +00:00
matthias
574106c52b create miscfs/genfs/genfs_vnops.c:genfs_enoioctl and make all the other
filesystems use it instead of a private version.
1998-08-10 08:11:10 +00:00
perry
27ca6798df bzero->memset, bcopy->memcpy, bcmp->memcmp 1998-08-09 20:15:38 +00:00
kleink
e9ef31ed72 msdosfs -> adosfs 1998-08-09 17:54:50 +00:00
kleink
12a866151b Recognize _PC_SYNC_IO. 1998-08-03 14:19:57 +00:00
mhitch
7fee5ec13e Fix a typo in a panic message. 1998-07-10 20:14:59 +00:00
jonathan
d275e56dee * defopt COMPAT_{09,10,11,12,13} and COMPAT_NOMID.
TODO: revisit interaction between native compat and emul compat usage.
1998-07-05 08:49:30 +00:00
thorpej
0f66e53c03 Use genfs_lease_check() 1998-06-25 22:20:39 +00:00
cgd
651b44e211 Rework the way kernel include files are installed. In the new method,
as with user-land programs, include files are installed by each directory
in the tree that has includes to install.  (This allows more flexibility
as to what gets installed, makes 'partial installs' easier, and gives us
more options as to which machines' includes get installed at any given
time.)  The old SYS_INCLUDES={symlinks,copies} behaviours are _both_
still supported, though at least one bug in the 'symlinks' case is
fixed by this change.  Include files can't be build before installation,
so directories that have includes as targets (e.g. dev/pci) have to move
those targets into a different Makefile.
1998-06-12 23:22:30 +00:00
scottr
7171cca4b8 Protect various config(8)-generated files from inclusion while
building LKMs.  Fixes PR 5557.
1998-06-09 07:46:31 +00:00
scottr
d48f258f90 Use the newly-defined opt_quota.h. 1998-06-08 04:27:50 +00:00
fvdl
e5bc90f40c Merge with Lite2 + local changes 1998-03-01 02:20:01 +00:00
thorpej
b5bf2ed6d0 Place a pointer to an array of our vnodeopv_desc *'s in our vfsops
structure, for use by vfs_attach().
1998-02-18 07:05:47 +00:00
fvdl
fd5433c6bc Bump last argument to VOP_READDIR to off_t (from u_long). 1997-10-10 01:57:31 +00:00
kleink
c2b4ef7d65 Fix a masking botch from last commit; make this more intuitive. 1997-07-08 09:11:29 +00:00
kleink
4c2700de65 * Include the actual type of a bad primary block in diagnostic output.
* Add diagnostic output for bad secondary block types.
From Michael van Elst <mlelstv@serpens.swb.de> in PR kern/3785.
1997-06-26 21:36:58 +00:00
kleink
d1380abbfd In AmigaDOS, read permission on a directory has the effect read and execute
permission has in VFS; execute permission permission on a directory is ignored
by AmigaDOS:  when translating permissions from AmigaDOS to VFS, set up VFS
execute permission for AmigaDOS-readable directories.
Fixes PR kern/3787 from Michael van Elst <mlelstv@serpens.swb.de>.
1997-06-26 21:04:32 +00:00
veego
2aba644f04 Fix a cut&paste (?) mistake. pr#3622 1997-05-14 19:00:17 +00:00
mycroft
e3f99a9397 Pass the vnode type to vaccess(), and use it when checking VEXEC. Make sure
that the mode bits passed to vaccess() and returned by foo_getattr() contain
only permission bits.
1997-05-08 16:19:43 +00:00
mycroft
837a72363d VEXEC -> VLOOKUP, as appropriate. 1997-05-08 10:57:17 +00:00
kleink
9c16cd8a46 Implement a POSIX compliant genfs VOP_SEEK() and use it in the appropriate
places; by Chris G. Demetriou and myself.
1997-04-11 21:52:00 +00:00
cgd
90688fce27 Change the second and third args to struct vfsops' (*vfs_mount)() to
'const char *', and 'void *', respectively.  The second arg is taken directly
from user arguments, and is const there, so must be const in the prototypes
and functions.  The third arg is also taken directly from user arguments.
It doesn't have to be changed, but since it's cleaner to keep the type
the same as the user arg's type, and I'm already making the 'const char *'
change...
1996-12-22 10:10:12 +00:00
cgd
ce53653783 make the namei struct members ni_dirp and ni_next, and the componentname
struct member cn_nameptr 'const', since they should never be used to
modify the path name.  (Only the pathname buffer, cn_pnbuf, should be
modified.)  Propagate the const poisoning to code that uses the namei
and componentname structs.
1996-10-25 23:13:58 +00:00
christos
520aa2aeba backout previous kprintf change 1996-10-13 02:52:06 +00:00
mhitch
84abe4ea20 Where did that "l" come from? Another hiccup from the netbsd-1-2 branch
merge.
1996-10-12 05:28:14 +00:00
christos
5476886e52 printf -> kprintf, sprintf -> ksprintf 1996-10-10 17:47:29 +00:00
thorpej
8ef7e73ff1 Merge netbsd-1-2 branch back into mainline. 1996-10-08 22:18:02 +00:00
mycroft
2bc736661a Implement poll(2). 1996-09-07 12:40:22 +00:00
mycroft
c52352c819 Add a set of generic file system operations that most file systems use.
Also, fix some time stamp bogosities.
1996-09-01 23:47:48 +00:00
veego
ee871d0972 Fixed pr#2681
The prototyp of adoscaseequ was right in adosfs.h
1996-08-10 07:28:49 +00:00
is
ab97b65e37 Finish adosfs' support for International FFS (we not only have to use an
internationalized hash function to search for files, but also to use an
internationalized compare to compare the candidates). This also removes one
use of strcasecmp() in the kernel.
1996-05-24 20:16:02 +00:00
mhitch
7327b8ff44 Set file size of a softlink to the length of the symbolic link path,
to match what FFS does.  Fixes PR #2316.
1996-04-28 06:18:12 +00:00
veego
5bdb632088 u_int -> u_long fixes for printf's 1996-04-23 05:18:29 +00:00
mhitch
a0e658617d Add support for OFS, International FileSystems, and blocksizes > 512.
Corrrect floppy rootblock calculation.  Validate filesystem type. (Closes
PR 2232)
Filename hashing requires unsigned characters.  (Closes PR 1026)
Soft link path is null-terminated string, not BSTR.
Use actual file header block info for hard links.
Set nlink to 2 for hard linked files in adosfs_getattr().
Load allocation bitmap and set correct free space.
1996-04-05 05:06:07 +00:00
christos
43854c5755 compiler warning police 1996-02-13 17:05:47 +00:00
christos
3e701ffc5a Add forward decls. 1996-02-10 00:44:18 +00:00
christos
2140eeda0f Adosfs prototyping changes. 1996-02-09 19:06:38 +00:00
mycroft
53fccab940 Fix vop_link, vop_symlink, and vop_remove semantics in several ways:
* Change the argument names to vop_link so they actually make sense.
* Implement vop_link and vop_symlink for all file systems, so they do proper
  cleanup.
* Require the file system to decide whether or not linking and unlinking of
  directories is allowed, and disable it for all current file systems.
1996-02-09 14:45:36 +00:00
jtc
dd05bd5124 Rename struct timespec fields to conform to POSIX.1b 1996-02-01 00:04:52 +00:00
jtc
0cd793449e merge in changes from 1.1 release branch 1995-11-30 00:56:23 +00:00
chopps
b84f35f3f0 make nfsable from osymh@gemini.oscs.montana.edu (Michael L. Hitch) 1995-08-18 15:14:33 +00:00
cgd
8f62c773e8 don't assume the f_fsnamelen is nul-truncated or longer than MFSNAMELEN 1995-06-18 14:45:14 +00:00
chopps
dbd3d08cf0 set blocksize in adosfs_getattr(). fixes pr#968 1995-04-17 12:22:08 +00:00