kleink
9c03d5cf55
When doing a CREATE, RENAME or DELETE w/ DOWHITEOUT and ISWHITEOUT lookup on a
...
non-existent file and the end of the pathname is reached, and this `current'
directory resides on a read-only mounted file system, don't update/prepare
its inode for the actual operation but return EROFS.
1997-05-12 19:04:16 +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
mikel
55f53d7fdb
return EPERM from ufs_setattr() if an attempt is made by non-superuser
...
to change superuser-only file flags; fixes PR kern/3491.
1997-04-23 05:47:54 +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
kleink
2cfcc6c893
Return immediately upon zero byte reads, as updating st_atime in this case
...
violates POSIX.1 read() semantics.
1997-04-04 14:21:32 +00:00
mikel
b81091e992
POSIX.1 specifies that a failed link() to a directory must return EPERM,
...
and EMLINK was not documented; from Klaus Klein in PR standards/3397.
Also documented EOPNOTSUPP for filesystems that don't support hard links.
1997-03-27 07:30:25 +00:00
mycroft
66c4e32b11
Just increment the generation count. Using the time is bogus and defeats
...
fsirand(8).
1997-03-10 06:18:28 +00:00
fvdl
8b21bbed9b
Implement similar fix as in the NQNFS fix from BSDI, to avoid race conditions
...
when unmounting. It cleans up the loop a bit too.
1997-02-22 03:25:05 +00:00
thorpej
727078d31e
- Add ffs_mountroot to ffs_vfsops.
...
- Only attempt to mount a root FFS on a DV_DISK class device.
1997-01-31 03:05:31 +00:00
tls
d0c43309b5
add support for noatime mount flag
1997-01-30 09:52:26 +00:00
tls
0024ac02cf
Correct old inode flag names in comment, and reformat for 80 character screen
1997-01-27 10:30:14 +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
is
ebe1c82eda
Make the struct lfs 512 bytes long on 32bit machines whose compiler doesn't
...
align 32bit integers. Use explicit sized typing at some other places.
XXX This still won't fix lfs for 64bit machines, as we have some
assumptions about sizeof(pointer)=sizeof(u_int32_t) in here, and (if I
looked right) a misaligned u_int64_t. The right fix (to cite cgd) will
be to seperate on-disk-representation from in-core, but I don't have
the time (at the moment) to do this.
1996-12-05 19:01:46 +00:00
cgd
f6e4567c57
cast int64_t-sized types to "long long" before printing them with %qd.
...
gcc thinks that the 'q' modifier describes a "long long", and so -Wformat
whines when printing with 'q' on the alpha, since int64_t-sized types are
done with variations on "long" rather than "long long".
1996-11-15 23:11:56 +00:00
thorpej
34e2fb3bb6
Performance enhancement from Kirk McKusick <mckusick@McKusick.COM>:
...
When freeing an indirect block, there is no need to write it (synchronously,
no less!) before tossing it.
1996-11-06 03:02:59 +00:00
christos
90c7de0919
revert previous kprintf changes
1996-10-12 21:58:44 +00:00
christos
de1b2b437e
printf -> kprintf, sprintf -> ksprintf
1996-10-10 17:16:17 +00:00
christos
2dff852a85
Add prototype for quotactl.
1996-09-28 19:07:06 +00:00
christos
9cdf304505
Make this compile cleanly from userland (fsck_ffs).
1996-09-20 22:14:59 +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
mycroft
261382c331
Change VOP_UPDATE() semantics:
...
* Make 2nd and 3rd args timespecs, not timevals.
* Consistently pass a Boolean as the 4th arg (except in LFS).
Also, fix ffs_update() and lfs_update() to actually change the nsec fields.
1996-05-11 18:26:27 +00:00
pk
44af669e3d
Appease gcc: unused variables if !QUOTA
1996-03-25 12:53:35 +00:00
christos
48fda0b4ca
Fix printf format strings
1996-03-17 02:16:18 +00:00
scottr
c9f7e94a5c
Remove hack to work around <sys/dirent.h> DIRSIZ conflict
1996-03-09 19:42:41 +00:00
gwr
331e377b30
Need to #undef DIRSIZ from <sys/dirent.h> before we redefine it.
1996-02-29 20:09:56 +00:00
cgd
9c95634273
in mfs_print: mfs_baseoff is a pointer, should be printed as %p, and
...
should NOT be cast to unsigned int.
1996-02-21 00:06:45 +00:00
christos
7e24291099
Protect include in lfs_cksum.c so that it can be used by userland programs.
1996-02-16 02:22:05 +00:00
christos
e2c2c98181
di_size is a quad and needs %qu not %lu
1996-02-12 22:08:47 +00:00
christos
11e9f2ce94
Add fwd declaration for struct ucred
1996-02-12 15:20:12 +00:00
christos
fb9b45b582
put back traditional symlink change that somehow got lost.
1996-02-11 02:06:13 +00:00
christos
9fe380e1ab
cross that t and dot that i. Typo in last commit.
1996-02-09 23:30:19 +00:00
christos
273fa18bff
ufs prototype changes
1996-02-09 22:36:00 +00:00
christos
573481f5fc
mfs prototypes
1996-02-09 22:31:27 +00:00
christos
7bd9e243f3
lfs prototypes
1996-02-09 22:28:45 +00:00
christos
ec3d880232
ffs prototypes
1996-02-09 22:22:18 +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
b73662fea2
Revert to sane symlink semantics. This is something we should have done
...
long ago. Fixes many PRs.
1996-02-07 17:01:25 +00:00
jtc
dd05bd5124
Rename struct timespec fields to conform to POSIX.1b
1996-02-01 00:04:52 +00:00
cgd
b567511c78
Fix from Lite-2: when reloading the file system, save fs_maxcluster and
...
the old summary structure pointers, and recalculate cluster per cyl. grp.
information.
1995-12-19 23:27:53 +00:00
mycroft
7edc899fdd
ffs -> ufs
1995-11-11 22:00:15 +00:00
mycroft
1dde00e8a4
Correct a comment regarding cookies, from Greg Hudson.
1995-10-09 11:19:32 +00:00
thorpej
1955514b6c
Make system calls conform to a standard prototype and bring those
...
prototypes into scope.
1995-09-21 23:39:20 +00:00
mycroft
b2f17c7648
Do any pending I/O before trying to unmount, per John Kohl.
1995-09-01 19:39:18 +00:00
cgd
e9d17d38b5
avoid unnecessary aging of buffers. This used to make sense, when buffer
...
caches were much smaller, but makes little sense now, and will become more
useless as RAM (and buffer cache) sizes grow. Suggested by Bob Baron.
1995-07-24 21:19:27 +00:00
cgd
60db543a18
don't just throw away updates to the cylinder group bitmaps, actually
...
write them to disk! From Keith Smith at Harvard, via Kirk McKusick.
fixes the occasional `blkfree: freeing free block' that has been seen
when cluster reallocation code is enabled.
1995-07-19 15:47:36 +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
cgd
94b7cf1b85
compensate for timeval/timespec/stat structure changes.
1995-06-15 23:22:41 +00:00
mycroft
ae9e49ed0d
Fix thinko in previous commit. Do this as suggested by John Kohl.
1995-05-30 11:41:38 +00:00