summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_syscalls.c
AgeCommit message (Collapse)Author
1999-02-26adaptation to uvm vnode pagerArtur Grabowski
1999-02-15reorder some flag handling in unmount for safer lockingArtur Grabowski
1999-02-15Fail correctly when trying to match a filesystem on the old typenumArtur Grabowski
and the typenum is out of range
1999-01-19Single Unix specification 2 says that rmdir(".") should suceed or give EBUSYArtur Grabowski
1999-01-10remove unnecessary declaration of dounmountArtur Grabowski
1998-12-28remove old leftovers from lite2 upgradeArtur Grabowski
1998-12-23Opps. the flag that says that we are sleeping is MNT_MWAIT, not MNT_WAITArtur Grabowski
1998-12-21return EOPNOTSUPP when there is no support for this filesystem in the kernel.Artur Grabowski
This is what most mount_* expect.
1998-12-10Several fixes to dounmount.Artur Grabowski
- Check for MNT_UNMOUNT before doing the actual unmount. It shouldn't matter for normal unmounts that go through sys_unmount, because they won't be able to do a lookup on the mountpoint when it's being unmounted, but mfs calls dounmount directly (and there was still a race). - clear the MNT_UNMOUNT flag after reenabling the lock (almost impossible race). - clear the MNT_MWAIT flag after doing a wakeup on the mountpoint.
1998-11-12Integrate latest soft updates patches for McKusick.Constantine Sapuntzakis
Integrate cleaner ffs mount code from FreeBSD. Most notably, this mount code prevents you from mounting an unclean file system read-write.
1998-09-27Only update vfs_refcount when the mount succeeds and MNT_UPDATE not set.Todd C. Miller
1998-08-17Make sure the file system is unbusied on error.Constantine Sapuntzakis
1998-08-17Fix turd left over from soft updates patch.Constantine Sapuntzakis
MNT_LAZY is not a bit flag.
1998-07-13Part 1) of a fix to the "mount /mnt /mnt" problem.Constantine Sapuntzakis
Don't mount the file system in the kernel name space before calling VFS_MOUNT.
1998-07-13ftpd: sleep for an indeterminate amount for non-existant loginsTodd C. Miller
to simulate a crypt, like login does. Use SEEK_* not L_* and kill some 0L's used in lseek while we're there.
1998-04-25readlink() 3rd param is size_t; XPGTheo de Raadt
1998-04-06Missing wakeup in unmount error case, yet another amiga release staller :-)Niklas Hallqvist
1998-03-25for *utimes(), deal with tv_sec == VNOVAL; problem noted by ↵Theo de Raadt
syssgm@dtir.qld.gov.au
1998-02-16Make "flags" field in f?chflags(2) consistent--unsigned intTodd C. Miller
1998-01-09A better fix for the mkdir ("path/") bug. This fix strips the trailing slashesConstantine Sapuntzakis
(except in the case where the path is just /////) in the following three cases: 1) The path in mkdir 2) The destination path in rename if the source was a directory 3) The destination path in link if the source was a directory Note #3 isn't strictly necessary since most of our file systems don't support hard links of directories anyway.
1998-01-02make {f,}chflags(.., -1) return EINVAL because -1 is VNOVAL; problem noted ↵Theo de Raadt
by provos
1997-12-11do not clear setuid/setgid for *chmod(-1,-1); pointed out by provosTheo de Raadt
1997-12-09fix O_TRUNC and O_{SH,EX}LOCK properly; problem found by provosTheo de Raadt
1997-11-24Fix non-DIAGNOSTIC (and non-COMPAT*) compilationNiklas Hallqvist
1997-11-20Fix for open(2) when O_TRUNC and O_??LOCK are used together. ITodd C. Miller
ran the fix by Kirk, who said it was an OK solution and pointed out two problems.
1997-11-18Use 0177777, not 07777 as the mask to check for EINVAL. This allowsTodd C. Miller
one to use the st_mode field in struct stat as an argument to f?chmod().
1997-11-17only consider 9 bits for the umaskTheo de Raadt
1997-11-17make chmod() and fchmod() return EINVAL for bad mode bitsTheo de Raadt
1997-11-06Updates for VFS Lite 2 + soft update.Constantine Sapuntzakis
1997-10-06back out vfs lite2 till after 2.2Theo de Raadt
1997-10-06VFS Lite2 ChangesConstantine Sapuntzakis
1997-03-02Add noatime option to not update atime on files in a filesystem (unlessTodd C. Miller
ctime or mtime has changed). Useful for laptops and news servers.
1997-02-26From tholo: Do not do strict POSIX offset checking on character devices.Niklas Hallqvist
This fixes the problem of not being able to read kernel virtual memory on the alpha, thus breaking things like ps etc.
1997-02-14hide fsid in getfsstat too, clone of millert fix, problem spotted by bitbltTheo de Raadt
1997-02-13Don't expose f_fsid to non-root.Todd C. Miller
1997-02-02Prevent seeking to negative offsets when seeking from the end of a file;Thorsten Lockert
noticed by Tim Newsham <newsham@aloha.net>
1997-01-26Add lchown(2).Jason Downs
1997-01-25Only disclose generation number to root.dm
1997-01-02pulled out the duplicated, conditional code from both kern/vfs_syscalls.cMichael Shalayeff
and compat/common/vfs_syscalls_43.c and placed a single copy of that code into miscfs/union/union_subr.c (seemed like a good place to put it, since it's union-fs related). as a side effect you can build unionfs in lkm. (netbsd pr#2950, Paul Goyette <paul@pgoyette.bdt.com>)
1996-10-27Better error checking for lseek(2)Thorsten Lockert
1996-10-26rename(from, to) where from and to are the name file (linked) is a no-opThorsten Lockert
1996-10-04usermount sysctl, default to prevent users from using mount syscallTheo de Raadt
1996-09-24no mknod in chrootTheo de Raadt
1996-09-24unescapeable chroot; thanks to nirva and asriel for helpingTheo de Raadt
1996-08-08Make {,f}chown(2) behaviour POSIX.1 compliant with SUID / SGID filesThorsten Lockert
Enable CTL_FS processing by sysctl(3) Add CTL_FS request to disable clearing SUID / SGID bit when a files owner or group is changed by root Make sysctl(8) understand CTL_FS requests
1996-08-08Lose the SUID bit if owner changes in {,f}chownThorsten Lockert
Lose the SGID bit if group changes in {,f}chown
1996-08-02Return EINVAL for invalid mode flags to access(2)Thorsten Lockert
1996-06-02explictly state getvnode's return typeNiklas Hallqvist
1996-05-14fix NetBSD PR#1145.Michael Shalayeff
1996-05-02Implement futimes()Theo de Raadt