CVS log for src/external/cddl/osnet/sys/sys/vnode.h
Up to [cvs.NetBSD.org] / src / external / cddl / osnet / sys / sys
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Dec 17 08:07:12 2021 UTC (3 years ago) by simonb
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
HEAD
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -1
lines
In vattr_init_mask() check for va_flags and if set add to the mask of
to the things that setattr is interested in.
Fixes chflags(2) on ZFS.
Thanks riastradh@ for fix.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Jul 18 07:22:22 2021 UTC (3 years, 5 months ago) by kardel
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +1 -3
lines
PR kern/56316: vn_open doesn't follow symlinks
remove setting of O_NOFOLLOW. restores ZFS being able
to open devices via symlinks again.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Jun 29 22:40:53 2021 UTC (3 years, 6 months ago) by dholland
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +5 -6
lines
Add containment for the cloning devices hack in vn_open.
Cloning devices (and also things like /dev/stderr) work by allocating
a struct file, stuffing it in the file table (which is a layer
violation), stuffing the file descriptor number for it in a magic
field of struct lwp (which is gross), and then "failing" with one of
two magic errnos, EDUPFD or EMOVEFD.
Before this commit, all callers of vn_open in the kernel (there are
quite a few) were expected to check for these errors and handle the
situation. Needless to say, none of them except for open() itself did,
resulting in internal negative errnos being returned to userspace.
This hack is fairly deeply rooted and cannot be eliminated all at
once. This commit adds logic to handle the magic errnos inside
vn_open; now on success vn_open returns either a vnode or an integer
file descriptor, along with a flag that says whether the underlying
code requested EDUPFD or EMOVEFD. Callers not prepared to cope with
file descriptors can pass NULL for the extra return values, in which
case if a file descriptor would be produced vn_open fails with
EOPNOTSUPP.
Since I'm rearranging vn_open's signature anyway, stop exposing struct
nameidata. Instead, take three arguments: an optional vnode to use as
the starting point (like openat()), the path, and additional namei
flags to use, restricted to NOCHROOT and TRYEMULROOT. (Other namei
behavior, e.g. NOFOLLOW, can be requested via the open flags.)
This change requires a kernel bump. Ride the one an hour ago.
(That was supposed to be coordinated; did not intend to let an hour
slip by. My fault.)
Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Apr 15 06:59:57 2021 UTC (3 years, 9 months ago) by christos
Branches: MAIN
CVS tags: cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +1 -4
lines
remove extra typedef for vnode_t done in <sys/vnode.h>
Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue May 26 08:39:27 2020 UTC (4 years, 7 months ago) by hannken
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +1 -2
lines
Replace vp->v_count with vrefcnt(vp) and
remove now unneeded "#define v_count ...".
Revision 1.14.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 21 18:41:56 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.14.2.1: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.2.1: +3 -4
lines
Sync with HEAD
Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Apr 13 19:23:17 2020 UTC (4 years, 9 months ago) by ad
Branches: MAIN
CVS tags: phil-wifi-20200421
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -4
lines
Replace most uses of vp->v_usecount with a call to vrefcnt(vp), a function
that hides the details and does atomic_load_relaxed(). Signature matches
FreeBSD.
Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 21:52:04 2019 UTC (5 years, 7 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -2
lines
Sync with HEAD
Revision 1.13.14.2: download - view: text, markup, annotated - select for diffs
Fri Jan 18 08:48:45 2019 UTC (5 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.13.14.1: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.14.1: +2 -2
lines
Synch with HEAD
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Jan 12 10:44:36 2019 UTC (6 years ago) by hannken
Branches: MAIN
CVS tags: phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
is-mlppp-base,
is-mlppp
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -2
lines
Allow zfs_vn_rdwr() with "rw == UIO_READ" too.
Revision 1.13.14.1: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:25:26 2018 UTC (6 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +80 -390
lines
Sync with HEAD
Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon May 28 21:05:10 2018 UTC (6 years, 7 months ago) by chs
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625
Branch point for: phil-wifi
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +80 -390
lines
merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.
in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().
Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Apr 9 05:32:53 2015 UTC (9 years, 9 months ago) by riastradh
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
pgoyette-compat-base,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: pgoyette-compat
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2
lines
Fix vattr_init_mask: mode is mode_t, not u_short.
Fixes fs/vfs/t_vnops:zfs_attrs test.
Revision 1.9.8.1: download - view: text, markup, annotated - select for diffs
Tue Aug 19 23:52:23 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +8 -4
lines
Rebase to HEAD as of a few days ago.
Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Thu May 22 14:01:24 2014 UTC (10 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +8 -4
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Oct 29 09:53:51 2013 UTC (11 years, 2 months ago) by hannken
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +1 -2
lines
Vnode API cleanup pass 1.
- Make these defines and functions private to vfs_vnode.c:
VC_MASK, VC_LOCK, DOCLOSE, VI_IANCTREDO and VI_INACTNOW
vclean() and vrelel()
- Remove the long time unused lwp argument from vrecycle().
- Remove vtryget(), it is responsible for ugly hacks and doesn't
look that effective.
Presented on tech-kern.
Welcome to 6.99.25
Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Sep 23 20:44:24 2013 UTC (11 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2
lines
don't use IO_APPEND. In the vdev_file.c we end up appending to our virtual
file as a filesystem! With this change:
$ dd if=/dev/zero of=disk1 count=266144
$ zpool create crap $PWD/disk1
mounts /crap and it seems to work ok, until I try unmounting
Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Sep 23 19:44:21 2013 UTC (11 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +7 -2
lines
Hack: Instead of dying in vrele with a kernel assertion, detect that the
usecount of the vnode is 0 and treat it as a noop. This is wrong, buf it
get us through the VN_RELE() after the close in vdev_file.c
Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:18:33 2011 UTC (13 years, 6 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +4 -4
lines
Catchup with rmind-uvmplock merge.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Jun 12 04:43:11 2011 UTC (13 years, 7 months ago) by mrg
Branches: MAIN
CVS tags: yamt-pagecache-tag8,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
agc-symver-base,
agc-symver
Branch point for: yamt-pagecache,
tls-maxphys
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -4
lines
v_interlock is now a pointer to kmutex_t, use it as one.
fixes many of the 5.99.53 build issues in zfs, but not all of them.
Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 8 16:18:51 2011 UTC (13 years, 11 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +2 -2
lines
Sync with HEAD
Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Jan 21 12:24:24 2011 UTC (13 years, 11 months ago) by pooka
Branches: MAIN
CVS tags: cherry-xenmp-base,
bouyer-quota2-nbase,
bouyer-quota2-base
Branch point for: cherry-xenmp
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2
lines
fix kobj_open_file_vnode()
patch from haad
Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Dec 14 01:21:02 2010 UTC (14 years, 1 month ago) by haad
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231
Branch point for: bouyer-quota2
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +22 -2
lines
Add some more solaris vnode defs for zfs_ctldir.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Nov 19 06:44:33 2010 UTC (14 years, 1 month ago) by dholland
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +8 -2
lines
Introduce struct pathbuf. This is an abstraction to hold a pathname
and the metadata required to interpret it. Callers of namei must now
create a pathbuf and pass it to NDINIT (instead of a string and a
uio_seg), then destroy the pathbuf after the namei session is
complete.
Update all namei call sites accordingly. Add a pathbuf(9) man page and
update namei(9).
The pathbuf interface also now appears in a couple of related
additional places that were passing string/uio_seg pairs that were
later fed into NDINIT. Update other call sites accordingly.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Jun 24 13:03:05 2010 UTC (14 years, 6 months ago) by hannken
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -5
lines
Clean up vnode lock operations pass 2:
VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.
Welcome to 5.99.32.
Discussed on tech-kern.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Feb 28 14:45:47 2010 UTC (14 years, 10 months ago) by haad
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +21 -3
lines
Add NetBSD build glue to build new zfs version 22 sources.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Feb 21 01:46:36 2010 UTC (14 years, 10 months ago) by darran
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +499 -118
lines
Apply NetBSD changes to DTrace.
Ok with core@.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Feb 21 00:50:00 2010 UTC (14 years, 10 months ago) by darran
Branches: MAIN
CVS tags: darran-pre-netbsd
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +118 -499
lines
Add the FreeBSD 8-RC1 changes for DTrace.
Ok with core@.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Aug 7 20:57:58 2009 UTC (15 years, 5 months ago) by haad
Branches: MAIN
CVS tags: matt-premerge-20091211,
darran-pre-freebsd,
darran-pre-dtrace
Add NetBSD Solaris compat code and reachover Makefiles. Most of code written
by Andrew Doran some of it by me.
This is still work in progress code. There are known issues. Zfs can panic
your system still. I will commit integration bits and needed kernel bits
later when we fix most obvious bugs. This code need some support from our
kernel which I will commit in a separate patch and therefore itnot work yet.
Issues:
1) Support for openat/fstatat syscalls.
2) getnewvnode locking against myself panic when reclaiming vnodes
3) Replace solaris taskq with our workqueue which doesn't need to alloc
anything during work.
4) Investigate problems with NO_WAIT allocations.
Oked by core@ and ad@.
CVSweb <webmaster@jp.NetBSD.org>