CVS commit: src/sys/coda

2020-12-19 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Dec 19 22:11:57 UTC 2020

Modified Files:
src/sys/coda: coda_psdev.c

Log Message:
Use sel{record,remove}_knote().


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/sys/coda/coda_psdev.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2020-11-20 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Fri Nov 20 10:08:47 UTC 2020

Modified Files:
src/sys/coda: coda_vfsops.c

Log Message:
When validating the mount device string make sure its length
is below *data_len and below PATH_MAX.

Reported-by: syzbot+2d3af801141509cc8...@syzkaller.appspotmail.com


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/coda/coda_vfsops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2020-11-14 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Sat Nov 14 11:42:56 UTC 2020

Modified Files:
src/sys/coda: coda.h coda_vnops.c

Log Message:
Rewrite coda_readdir() to directly process the container file.

Passing this operation down to the file system holding the container
cannot work for anything but UFS and UFS doesn't allow reading
directory from a plain file since ~2015.

Fixes PR kern/55775 Coda client, its in-kernel part, opens wrong files ...


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/coda/coda.h
cvs rdiff -u -r1.113 -r1.114 src/sys/coda/coda_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2020-11-14 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Sat Nov 14 11:41:29 UTC 2020

Modified Files:
src/sys/coda: coda_vfsops.c

Log Message:
Respect "lktype" in all paths in coda_root().


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/sys/coda/coda_vfsops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2020-11-14 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Sat Nov 14 11:42:05 UTC 2020

Modified Files:
src/sys/coda: coda_vnops.c coda_vnops.h

Log Message:
Add coda_pathconf() always returning EINVAL.


To generate a diff of this commit:
cvs rdiff -u -r1.112 -r1.113 src/sys/coda/coda_vnops.c
cvs rdiff -u -r1.16 -r1.17 src/sys/coda/coda_vnops.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2020-02-24 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Mon Feb 24 20:53:11 UTC 2020

Modified Files:
src/sys/coda: coda_vnops.c

Log Message:
v_interlock -> vmobjloc


To generate a diff of this commit:
cvs rdiff -u -r1.109 -r1.110 src/sys/coda/coda_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2018-11-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Nov 20 19:05:25 UTC 2018

Modified Files:
src/sys/coda: coda_vnops.c

Log Message:
Fix locking for readdir code (Brett Lymn)


To generate a diff of this commit:
cvs rdiff -u -r1.106 -r1.107 src/sys/coda/coda_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2017-06-08 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Thu Jun  8 22:29:59 UTC 2017

Modified Files:
src/sys/coda: coda_vfsops.h

Log Message:
add a forward declaration of struct mbuf.
needed due to some other change I made for ZFS.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/coda/coda_vfsops.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2017-04-04 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Tue Apr  4 07:36:38 UTC 2017

Modified Files:
src/sys/coda: coda_vfsops.c

Log Message:
Use spec_node_lookup_by_dev() and spec_node_getmountedfs() to
retrieve a mount by device.


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/sys/coda/coda_vfsops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2015-01-06 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Tue Jan  6 11:24:46 UTC 2015

Modified Files:
src/sys/coda: coda_subr.c

Log Message:
Add missing vrele() and vfs_vnode_iterator_destroy() to coda_cacheprint().


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/coda/coda_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2014-12-13 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Sat Dec 13 15:59:30 UTC 2014

Modified Files:
src/sys/coda: cnode.h coda_subr.c coda_vfsops.c coda_vfsops.h
coda_vnops.c

Log Message:
Change coda from hashlist to vcache.
- Replace all hash list crawlers with vfs_vnode_iterator.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/coda/cnode.h
cvs rdiff -u -r1.29 -r1.30 src/sys/coda/coda_subr.c
cvs rdiff -u -r1.83 -r1.84 src/sys/coda/coda_vfsops.c
cvs rdiff -u -r1.18 -r1.19 src/sys/coda/coda_vfsops.h
cvs rdiff -u -r1.100 -r1.101 src/sys/coda/coda_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2014-12-13 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Sat Dec 13 15:59:03 UTC 2014

Modified Files:
src/sys/coda: coda_vnops.c

Log Message:
Remove cnodes from coda_reclaim(), not from coda_inactive().


To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/sys/coda/coda_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2014-12-13 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Sat Dec 13 15:58:39 UTC 2014

Modified Files:
src/sys/coda: coda.h coda_psdev.c coda_subr.c coda_vfsops.c

Log Message:
Move the definition of NVCODA and CODA_COMPAT_5 to coda.h,
remove them from coda_vfsops.c and coda_psdev.c.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/coda/coda.h
cvs rdiff -u -r1.53 -r1.54 src/sys/coda/coda_psdev.c
cvs rdiff -u -r1.28 -r1.29 src/sys/coda/coda_subr.c
cvs rdiff -u -r1.82 -r1.83 src/sys/coda/coda_vfsops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2014-12-13 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Sat Dec 13 15:58:13 UTC 2014

Modified Files:
src/sys/coda: cnode.h

Log Message:
Remove unused definitions (C_WANTED, C_LOCKED).


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/coda/cnode.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2014-12-13 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Sat Dec 13 15:57:46 UTC 2014

Modified Files:
src/sys/coda: coda_subr.c coda_vfsops.c coda_vnops.c

Log Message:
Attach the control object vnode to the coda mount and release it
on unmount.  Initialize special files with NODEV.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/coda/coda_subr.c
cvs rdiff -u -r1.81 -r1.82 src/sys/coda/coda_vfsops.c
cvs rdiff -u -r1.98 -r1.99 src/sys/coda/coda_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2013-11-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Nov 23 23:14:55 UTC 2013

Modified Files:
src/sys/coda: coda_vfsops.c

Log Message:
tuck in code inside the mutex


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/sys/coda/coda_vfsops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2013-11-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Nov 23 17:57:23 UTC 2013

Modified Files:
src/sys/coda: coda_vfsops.c

Log Message:
replace open-coded scan with macro; fix locking


To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/sys/coda/coda_vfsops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2013-10-17 Thread Jeff Rizzo
Module Name:src
Committed By:   riz
Date:   Fri Oct 18 00:03:35 UTC 2013

Modified Files:
src/sys/coda: coda_psdev.c

Log Message:
C requires a statement after a label, and a declaration is not a
statement, so create a block using {}.  From christos.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/coda/coda_psdev.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2013-10-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 17 20:56:02 UTC 2013

Modified Files:
src/sys/coda: coda_venus.c

Log Message:
remove unused code from macro


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/coda/coda_venus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2013-10-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 17 20:55:31 UTC 2013

Modified Files:
src/sys/coda: coda_vnops.c

Log Message:
remove unused code.


To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/sys/coda/coda_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2013-10-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 17 20:54:24 UTC 2013

Modified Files:
src/sys/coda: coda_psdev.c

Log Message:
move module code inside module ifdef


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/coda/coda_psdev.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2012-08-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Aug  4 12:47:00 UTC 2012

Modified Files:
src/sys/coda: README

Log Message:
mention current status


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/coda/README

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2012-08-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Aug  4 12:31:57 UTC 2012

Modified Files:
src/sys/coda: coda_psdev.c

Log Message:
Don't increment the mount reference count here. Otherwise we are left with
refcount of one when we unmount, and vfs_destroy does not... Who is expected
to decrement this anyway?!?!


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/coda/coda_psdev.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2012-08-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Aug  2 16:06:59 UTC 2012

Modified Files:
src/sys/coda: coda_namecache.c coda_subr.c coda_subr.h coda_vfsops.c
coda_vnops.c coda_vnops.h

Log Message:
- move debugging functions to vcoda so modules with -DDEBUG link
- fix writing to coda files. this is probably not the right way to do
  this, but it satisfies the locking protocol:
1. Sometimes coda_open() is called with an unlocked vnode which
   does not satisfy the locking protocol. Lock it for now. We
   need to find out why this happens
2. VFS_VGET sometimes returns the container vnode unlocked. What
   is the locking protocol for VFS_VGET? We also lock it here.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/coda/coda_namecache.c
cvs rdiff -u -r1.26 -r1.27 src/sys/coda/coda_subr.c
cvs rdiff -u -r1.8 -r1.9 src/sys/coda/coda_subr.h
cvs rdiff -u -r1.73 -r1.74 src/sys/coda/coda_vfsops.c
cvs rdiff -u -r1.89 -r1.90 src/sys/coda/coda_vnops.c
cvs rdiff -u -r1.15 -r1.16 src/sys/coda/coda_vnops.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2012-07-27 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Sat Jul 28 00:10:22 UTC 2012

Modified Files:
src/sys/coda: coda_vnops.c coda_vnops.h

Log Message:
-fno-common fallout.


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/coda/coda_vnops.c
cvs rdiff -u -r1.14 -r1.15 src/sys/coda/coda_vnops.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2012-05-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri May  4 17:57:22 UTC 2012

Modified Files:
src/sys/coda: coda_vnops.c

Log Message:
comment out debugging printfs


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/sys/coda/coda_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2012-05-03 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri May  4 02:06:27 UTC 2012

Modified Files:
src/sys/coda: coda_vfsops.c

Log Message:
depend on "vcoda" since it has symbols we need.


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/sys/coda/coda_vfsops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2012-05-03 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri May  4 01:40:13 UTC 2012

Modified Files:
src/sys/coda: coda_vnops.c

Log Message:
fix locking in getpages when running executables.


To generate a diff of this commit:
cvs rdiff -u -r1.86 -r1.87 src/sys/coda/coda_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2012-05-03 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri May  4 01:38:57 UTC 2012

Modified Files:
src/sys/coda: cnode.h

Log Message:
remove variable names from prototypes.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/coda/cnode.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2012-05-03 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu May  3 14:26:43 UTC 2012

Modified Files:
src/sys/coda: coda_vnops.c

Log Message:
move the assert after the locked case.


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/sys/coda/coda_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2012-05-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May  2 16:51:02 UTC 2012

Modified Files:
src/sys/coda: coda_vnops.c

Log Message:
Instead of sharing the coda vnode lock with the ffs vnode lock, share the
ffs vnode lock with coda.


To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 src/sys/coda/coda_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2012-04-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Apr 28 20:15:07 UTC 2012

Modified Files:
src/sys/coda: coda_vnops.c

Log Message:
cosmetic only: __func__, vnode_t


To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 src/sys/coda/coda_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2012-04-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Apr 28 20:01:09 UTC 2012

Modified Files:
src/sys/coda: coda_vnops.c coda_vnops.h

Log Message:
Fixes from get/putpages from rmind.
In grab vnode, share the lock of the coda vnode with the underlying vnode,
so that the locking protocol works.


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/sys/coda/coda_vnops.c
cvs rdiff -u -r1.13 -r1.14 src/sys/coda/coda_vnops.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2012-04-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Apr 26 17:18:33 UTC 2012

Modified Files:
src/sys/coda: coda_vfsops.c

Log Message:
remove multiple definitions.


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/coda/coda_vfsops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2012-04-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Apr 26 03:04:55 UTC 2012

Modified Files:
src/sys/coda: coda_psdev.c coda_subr.c coda_venus.c coda_vfsops.c
coda_vnops.c

Log Message:
re-arrange things so that vcoda does not depend on coda.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/coda/coda_psdev.c
cvs rdiff -u -r1.25 -r1.26 src/sys/coda/coda_subr.c
cvs rdiff -u -r1.28 -r1.29 src/sys/coda/coda_venus.c
cvs rdiff -u -r1.70 -r1.71 src/sys/coda/coda_vfsops.c
cvs rdiff -u -r1.81 -r1.82 src/sys/coda/coda_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2011-09-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Sep 27 00:54:47 UTC 2011

Modified Files:
src/sys/coda: coda_vfsops.c

Log Message:
use CODA_MAXNAMLEN instead of bogus MAXNAMLEN


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/coda/coda_vfsops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2011-09-13 Thread Greg Troxel
Module Name:src
Committed By:   gdt
Date:   Tue Sep 13 19:34:27 UTC 2011

Modified Files:
src/sys/coda: coda_vnops.c

Log Message:
Reduce verbosity of semi-debug coda_inactive printf.

Rather than print if the usecount is > 0, only print if it is greater
than 1.  It seems 1 is normal.


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/sys/coda/coda_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2010-08-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Aug  7 20:39:33 UTC 2010

Modified Files:
src/sys/coda: coda.h coda_pioctl.h

Log Message:
Fix incorrect comments about the buffer size being 2K; it is really 8K now.
>From Robert Watson.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/coda/coda.h
cvs rdiff -u -r1.7 -r1.8 src/sys/coda/coda_pioctl.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2010-07-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jul 20 17:26:04 UTC 2010

Modified Files:
src/sys/coda: coda.h coda_venus.c coda_vnops.c

Log Message:
Correct incomplete size checks for the coda ioctls. From Dan Rosenberg.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/coda/coda.h
cvs rdiff -u -r1.27 -r1.28 src/sys/coda/coda_venus.c
cvs rdiff -u -r1.75 -r1.76 src/sys/coda/coda_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/coda

2010-06-24 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Thu Jun 24 10:37:22 UTC 2010

Modified Files:
src/sys/coda: coda_vnops.c

Log Message:
coda_lock(): LK_INTERLOCK flag no longer possible.


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/sys/coda/coda_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.