The NetBSD Project

CVS log for src/lib/libp2k/p2k.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libp2k

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.73 / (download) - annotate - [select for diffs], Sun Feb 23 15:46:38 2020 UTC (7 months ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, HEAD
Changes since 1.72: +2 -2 lines
Diff to previous 1.72 (unified)

UVM locking changes, proposed on tech-kern:

- Change the lock on uvm_object, vm_amap and vm_anon to be a RW lock.
- Break v_interlock and vmobjlock apart.  v_interlock remains a mutex.
- Do partial PV list locking in the x86 pmap.  Others to follow later.

Revision 1.72 / (download) - annotate - [select for diffs], Thu Feb 20 15:48:52 2020 UTC (7 months ago) by riastradh
Branch: MAIN
Changes since 1.71: +2 -2 lines
Diff to previous 1.71 (unified)

Fix kassert in lfs by initializing vp first.

Revision 1.71 / (download) - annotate - [select for diffs], Mon Sep 23 12:00:57 2019 UTC (12 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.70: +7 -5 lines
Diff to previous 1.70 (unified)

Restore binary compatibility by using the statvfs90 structure internally.

Revision 1.70 / (download) - annotate - [select for diffs], Wed Apr 26 03:02:48 2017 UTC (3 years, 5 months ago) by riastradh
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20190609, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-8-base, 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
Branch point for: phil-wifi, netbsd-9
Changes since 1.69: +5 -2 lines
Diff to previous 1.69 (unified)

Change VOP_REMOVE and VOP_RMDIR to preserve lock/ref on dvp.

No change to vp -- the plan is to replace the node by the
componentname in the vop parameters, and let all directory vops do
lookups internally.

Proposed on tech-kern with no objections:
https://mail-index.netbsd.org/tech-kern/2017/04/17/msg021825.html

Revision 1.69 / (download) - annotate - [select for diffs], Tue Apr 11 14:25:02 2017 UTC (3 years, 5 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-localcount-20170426, bouyer-socketcan-base1
Changes since 1.68: +2 -1 lines
Diff to previous 1.68 (unified)

Make VOP_INACTIVE preserve vnode lock on return.

Discussed on tech-kern:
https://mail-index.netbsd.org/tech-kern/2017/04/01/msg021751.html

Ride 7.99.68, a bumpy bus of incremental vfs improvements!

Revision 1.68 / (download) - annotate - [select for diffs], Mon Jan 25 11:45:58 2016 UTC (4 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.67: +2 -1 lines
Diff to previous 1.67 (unified)

Don't include <rump/rumpvnode_if.h> from rump.h.  It's not needed
unless you're doing something special, but requires register_t.
Adjust the few places which actually need rumpvnode_if.h.

Revision 1.67 / (download) - annotate - [select for diffs], Sat Jan 23 16:39:31 2016 UTC (4 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.66: +3 -2 lines
Diff to previous 1.66 (unified)

Don't include <sys/vnode.h> to get the pager constants.

Revision 1.66 / (download) - annotate - [select for diffs], Mon Apr 20 23:03:07 2015 UTC (5 years, 5 months ago) by riastradh
Branch: MAIN
Changes since 1.65: +3 -1 lines
Diff to previous 1.65 (unified)

Make VOP_LINK return directory still locked and referenced.

Ride 7.99.10 bump.

Revision 1.65 / (download) - annotate - [select for diffs], Mon Apr 20 21:48:47 2015 UTC (5 years, 5 months ago) by riastradh
Branch: MAIN
Changes since 1.64: +2 -1 lines
Diff to previous 1.64 (unified)

Release dir after create/mknod/mkdir/symlink as 6.99.29 required.

Revision 1.64 / (download) - annotate - [select for diffs], Mon Mar 10 22:47:27 2014 UTC (6 years, 6 months ago) by pooka
Branch: 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
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (unified)

rump_pub_getversion -> rump_getversion

Revision 1.63 / (download) - annotate - [select for diffs], Fri Feb 7 15:29:21 2014 UTC (6 years, 7 months ago) by hannken
Branch: MAIN
Changes since 1.62: +1 -2 lines
Diff to previous 1.62 (unified)

Change vnode operation lookup to return the resulting vnode *vpp unlocked.
Change cache_lookup() to return an unlocked vnode.

Discussed on tech-kern@

Welcome to 6.99.31

Revision 1.62 / (download) - annotate - [select for diffs], Thu Jan 23 10:13:55 2014 UTC (6 years, 8 months ago) by hannken
Branch: MAIN
Changes since 1.61: +1 -2 lines
Diff to previous 1.61 (unified)

Change vnode operations create, mknod, mkdir and symlink to return
the resulting vnode *vpp unlocked.

Discussed on tech-kern@

Welcome to 6.99.30

Revision 1.61 / (download) - annotate - [select for diffs], Fri Jan 17 10:55:01 2014 UTC (6 years, 8 months ago) by hannken
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (unified)

Change vnode operations create, mknod, mkdir and symlink to keep the
directory node dvp locked on return.

Discussed on tech-kern@

Welcome to 6.99.29

Revision 1.60 / (download) - annotate - [select for diffs], Fri Nov 23 14:27:14 2012 UTC (7 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, agc-symver-base, agc-symver
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (unified)

Explicitly cast enum type.

Revision 1.59 / (download) - annotate - [select for diffs], Sun Nov 18 19:04:22 2012 UTC (7 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (unified)

s/EJUSTRETURN/RUMP_EJUSTRETURN/

Revision 1.58 / (download) - annotate - [select for diffs], Sun Nov 18 18:39:23 2012 UTC (7 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (unified)

Finally remove the "temporary" __VTYPE_DEFINED stuff I added >5 years ago.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Aug 16 09:25:44 2012 UTC (8 years, 1 month ago) by manu
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.56: +8 -1 lines
Diff to previous 1.56 (unified)

Fix regression that has been introduced when the lookup/reclaim race
condition was addressed in libpuffs by counting lookups.

The fix assumes that cookies map to struct puffs_cookie, which has not
been documented as a requirement for filesystems using libpuffs. As an
example, we got burnt by this assumption in libp2k (kern/46734), and
we fixed bit by actually mapping libp2k cookies to struct puffs_node.

It is unlikely, but there may be third party filesystems that use cookies
unmapped to struct puffs_node, and they were left broken for now.

- we introduce a puffs_init() flag PUFFS_FLAG_PNCOOKIE that let filesystems
inform libpuffs that they map cookies to struct puffs_node. Is that flag
is used, the lookup/reclaim race condition fix is enabled. We enable the
flag for libp2k.

- filesystems that use puffs_pn_new() obviouslty use struct puffs_node
and gain PUFFS_FLAG_PNCOOKIE automatically even if they did not specify
it in puffs_init(). This include all our PUFFS filesystem in-tree except
libp2k.

- for filesystems not willing to use struct puffs_node, we introduce a
reclaim2 vnop, which is reclaim with an additionnal lookup count argument.
This vnop let the filesystem implement the lookup/reclaim race fix on
its own.

Revision 1.56 / (download) - annotate - [select for diffs], Sun Aug 12 02:51:18 2012 UTC (8 years, 1 month ago) by manu
Branch: MAIN
Changes since 1.55: +2 -1 lines
Diff to previous 1.55 (unified)

libpuffs and libp2k both use the cookie to different structure, which now
leads to struct p2k_node corruption now that libpuffs used pn_nlookup field
in struct puffs_node to avoid race conditions.

Attempt to fix that by adding a struct puffs_node at the beginning of struct
p2k_node. This seems to fix kern/46734

Revision 1.55 / (download) - annotate - [select for diffs], Mon Jul 4 08:07:29 2011 UTC (9 years, 2 months ago) by manu
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base
Branch point for: yamt-pagecache, netbsd-6
Changes since 1.54: +5 -4 lines
Diff to previous 1.54 (unified)

Add a flag to VOP_LISTEXTATTR(9) so that the vnode interface can tell the
filesystem in which format extended attribute shall be listed.

There are currently two formats:
- NUL-terminated strings, used for listxattr(2), this is the default.
- one byte length-pprefixed, non NUL-terminated strings, used for
  extattr_list_file(2), which is obtanined by setting the
  EXTATTR_LIST_PREFIXLEN flag to VOP_LISTEXTATTR(9)

This approach avoid the need for converting the list back and forth, except
in libperfuse, since FUSE uses NUL-terminated strings, and the kernel may
have requested EXTATTR_LIST_PREFIXLEN.

Revision 1.54 / (download) - annotate - [select for diffs], Fri Jan 7 16:02:32 2011 UTC (9 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.53: +12 -5 lines
Diff to previous 1.53 (unified)

Make P2K_WIZARDUID require a valid integer instead of defaulting to root.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Jan 7 15:47:14 2011 UTC (9 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.52: +36 -1 lines
Diff to previous 1.52 (unified)

In case of a P2K_DEBUG mount, dump mount point contents when the
process receives SIGINFO.  Additionally, dump vnode status if the
process gets SIGUSR1 (can be quite quite verbose, therefore not
displayed with SIGINFO).

Revision 1.52 / (download) - annotate - [select for diffs], Fri Jan 7 15:30:09 2011 UTC (9 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.51: +8 -1 lines
Diff to previous 1.51 (unified)

in case unmount fails (it never should), do a full mountpoint dump

Revision 1.51 / (download) - annotate - [select for diffs], Fri Jan 7 11:15:30 2011 UTC (9 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.50: +4 -86 lines
Diff to previous 1.50 (unified)

Remove the componentname-saving code since it was addressing
SAVENAME/HASBUF/SAVESTART and they don't exist anymore (and the
removed code didn't compile on nb5).

Revision 1.50 / (download) - annotate - [select for diffs], Fri Jan 7 10:18:06 2011 UTC (9 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (unified)

Fix file handles.  Problem reported & fix tested by kefren.

Revision 1.49 / (download) - annotate - [select for diffs], Sun Jan 2 13:01:45 2011 UTC (9 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (unified)

rump_lwproc_newproc -> rump_lwproc_rfork

Revision 1.48 / (download) - annotate - [select for diffs], Sun Jan 2 05:04:59 2011 UTC (9 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.47: +4 -4 lines
Diff to previous 1.47 (unified)

Add an INRELOOKUP namei flag. Sigh. (We don't need more namei flags.)

However, because of a protocol deficiency puffs relies on being able
to keep track of VOP_LOOKUP calls by inspecting their contents, and
this at least allows it to use something vaguely principled instead of
making wild guesses based on whether SAVESTART is set.

Update libp2k to use INRELOOKUP instead of SAVESTART.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Nov 30 15:42:11 2010 UTC (9 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.46: +46 -79 lines
Diff to previous 1.46 (unified)

Remove dead code from previous revision.

Revision 1.46 / (download) - annotate - [select for diffs], Tue Nov 30 10:49:22 2010 UTC (9 years, 9 months ago) by dholland
Branch: MAIN
Changes since 1.45: +13 -13 lines
Diff to previous 1.45 (unified)

SAVENAME and HASBUF namei flags have been removed; update accordingly.
(pooka@ says not to worry about compat.)

Revision 1.45 / (download) - annotate - [select for diffs], Fri Nov 26 11:12:06 2010 UTC (9 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.44: +4 -3 lines
Diff to previous 1.44 (unified)

update comment

Revision 1.44 / (download) - annotate - [select for diffs], Tue Sep 7 17:22:53 2010 UTC (10 years ago) by pooka
Branch: MAIN
Changes since 1.43: +1 -6 lines
Diff to previous 1.43 (unified)

Simplify now that ukfs deals with being called from a thread which
already has a rump lwp context.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Sep 7 17:16:19 2010 UTC (10 years ago) by pooka
Branch: MAIN
Changes since 1.42: +6 -8 lines
Diff to previous 1.42 (unified)

Migrate from rump private interfaces to syscalls.

Revision 1.42 / (download) - annotate - [select for diffs], Wed Sep 1 19:40:35 2010 UTC (10 years ago) by pooka
Branch: MAIN
Changes since 1.41: +12 -15 lines
Diff to previous 1.41 (unified)

update to new rump proc/lwp interfaces

Revision 1.41 / (download) - annotate - [select for diffs], Thu Jun 24 13:03:05 2010 UTC (10 years, 3 months ago) by hannken
Branch: MAIN
Changes since 1.40: +21 -21 lines
Diff to previous 1.40 (unified)

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.40 / (download) - annotate - [select for diffs], Mon Jun 7 11:23:07 2010 UTC (10 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (unified)

no need to typecast in pathconf anymore

Revision 1.39 / (download) - annotate - [select for diffs], Sun Jun 6 22:46:17 2010 UTC (10 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.38: +18 -1 lines
Diff to previous 1.38 (unified)

Pass VOP_PATHCONF to backend file server.  inspired by njoly.

Revision 1.38 / (download) - annotate - [select for diffs], Fri May 21 10:52:17 2010 UTC (10 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.37: +130 -1 lines
Diff to previous 1.37 (unified)

support extended attributes

Revision 1.37 / (download) - annotate - [select for diffs], Thu May 20 00:13:02 2010 UTC (10 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.36: +3 -1 lines
Diff to previous 1.36 (unified)

Initialize "hasdebug" default deterministically.

Revision 1.36 / (download) - annotate - [select for diffs], Sat May 1 14:44:48 2010 UTC (10 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.35: +11 -1 lines
Diff to previous 1.35 (unified)

If P2K_DEBUG is given, also dump rump kernel event counters when
file system is unmounted.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Apr 29 22:34:21 2010 UTC (10 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.34: +58 -26 lines
Diff to previous 1.34 (unified)

If vfstype is MOUNT_RUMPFS, assume we don't actually want to mount
a file system, but attach to the root in the fs namespace of a rump
kernel.

Revision 1.34 / (download) - annotate - [select for diffs], Wed Apr 14 14:15:48 2010 UTC (10 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.33: +18 -18 lines
Diff to previous 1.33 (unified)

Some _t purification.  no functional change.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Dec 23 01:15:11 2009 UTC (10 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.32: +7 -7 lines
Diff to previous 1.32 (unified)

Technically we're supposed to use flags from the RUMP_NAMEI namespace
instead of NAMEI directly.  Probably doesn't matter in practise,
since the chances of this running on non-NetBSD are low.  But make
it correct anyway.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Dec 23 01:11:39 2009 UTC (10 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.31: +26 -19 lines
Diff to previous 1.31 (unified)

Use NAMEI_INRENAME to improve the situation with detecting on when
to save componentname instead of looking at SAVESTART.  Not perfect,
but better.  Also, try to be more forgiving of kernel bugs.

Revision 1.31 / (download) - annotate - [select for diffs], Wed Dec 16 17:20:19 2009 UTC (10 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.30: +23 -4 lines
Diff to previous 1.30 (unified)

Don't VOP_PUTPAGES(PGO_FREE) in inactive for tmpfs, since we now
(after some changes to rump) actually free those pages, leaving
the tmpfs vnode feeling quite empty.
(the purpose of the flush is to avoid double caching between the
rump kernel and puffs vfs layer)

Revision 1.30 / (download) - annotate - [select for diffs], Thu Dec 3 14:27:16 2009 UTC (10 years, 9 months ago) by pooka
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.29: +14 -19 lines
Diff to previous 1.29 (unified)

Adapt ukfs users to the new ukfs_part interface.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Nov 20 14:24:58 2009 UTC (10 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (unified)

Report actual group array size instead of 0 (which always gives back 0 grousp).

Revision 1.28 / (download) - annotate - [select for diffs], Fri Nov 20 14:11:38 2009 UTC (10 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.27: +17 -3 lines
Diff to previous 1.27 (unified)

Add "wizardmode", which allows to specify the uid which is used to
access the file system instead of using the caller uid.  This is
useful for example when modifying the root fs image for an OS
installation without wanting to dance around as root on the host.

idspispopd

Revision 1.27 / (download) - annotate - [select for diffs], Mon Oct 19 17:34:07 2009 UTC (10 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (unified)

Default "recycle" to false in inactive.  File system drivers do
not always set it.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Oct 18 19:36:41 2009 UTC (10 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.25: +89 -50 lines
Diff to previous 1.25 (unified)

Split init routines a bit more to allow for p2k init without having
to pass any real configuration data.  This benefits things like
rump_smbfs which need to init rump before running the userspace
mount routines (because they make rump system calls) but cannot
run p2k_setup() at that stage because it requires data provided by
the userspace mount routines.  And p2k_setup() in turn forks (to
detach), so it cannot be run after rump has been inited and threads
have been created.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Oct 17 23:20:15 2009 UTC (10 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.24: +25 -1 lines
Diff to previous 1.24 (unified)

Implement abortop.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Oct 15 16:41:08 2009 UTC (10 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.23: +6 -6 lines
Diff to previous 1.23 (unified)

use newstyle rump lwp interfaces

Revision 1.23 / (download) - annotate - [select for diffs], Wed Oct 14 18:22:50 2009 UTC (10 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.22: +48 -48 lines
Diff to previous 1.22 (unified)

Adjust names of external rump control interfaces to match the
new rump_pub namespace.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Oct 13 20:06:38 2009 UTC (10 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (unified)

Expand rump curlwp macro.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Oct 9 16:37:30 2009 UTC (10 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.20: +64 -21 lines
Diff to previous 1.20 (unified)

Expose a separate mount and run interface for those servers which
want to perform actions after mounting.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Oct 7 20:56:29 2009 UTC (10 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.19: +5 -1 lines
Diff to previous 1.19 (unified)

puffs might call getattr after we decided to recycle node.  protect.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Oct 7 20:55:25 2009 UTC (10 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.18: +46 -8 lines
Diff to previous 1.18 (unified)

Provide p2k_run_diskfs(), which acts like p2k_run_fs(), but taps
into ukfs_mount_disk() instead of ukfs_mount()

Revision 1.18 / (download) - annotate - [select for diffs], Tue Oct 6 16:57:54 2009 UTC (10 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (unified)

don't double free p2m

Revision 1.17 / (download) - annotate - [select for diffs], Tue Oct 6 16:23:03 2009 UTC (10 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.16: +421 -190 lines
Diff to previous 1.16 (unified)

Give a p2k node an internal state.  This allows us to do proper
reference counting and not release nodes based just on puffs'
impression of if they are free.

This also allows us to reclaim vnodes already in inactive if the
file system so desires.  Some file systems, most notably ffs, change
file state already in inactive.  This could lead to a deadlock in
the middle of inactive and reclaim if some other puffs operation
was processed in between (as exposed by haad's open(at) test
program).

Also, properly thread the componentname from lookup to the actual
vnode operation.  This required the changes the rump componentname
routines.  Yes, the rename case is truly mindbogglingly disgusting.
Puke for yourself.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Aug 4 13:39:18 2009 UTC (11 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (unified)

supply proper flags to pager

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jul 22 20:49:28 2009 UTC (11 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.14: +14 -42 lines
Diff to previous 1.14 (unified)

* catch up with the ukfs changes
* leave mounted fs reference counting totally up to le coq grande
  and simply force an unmount if the kernel has decided the mountpoint
  is not busy

Revision 1.14 / (download) - annotate - [select for diffs], Fri May 22 10:53:59 2009 UTC (11 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.13: +73 -12 lines
Diff to previous 1.13 (unified)

Support mounting post-time_t rump file systems on a pre-time_t host.

Revision 1.13 / (download) - annotate - [select for diffs], Sun May 3 20:26:42 2009 UTC (11 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.12: +10 -1 lines
Diff to previous 1.12 (unified)

make it possible to disable puffs caches

Revision 1.12 / (download) - annotate - [select for diffs], Sun May 3 17:10:20 2009 UTC (11 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (unified)

rump_cred_destroy -> rump_cred_put

Revision 1.11 / (download) - annotate - [select for diffs], Thu Apr 2 09:30:41 2009 UTC (11 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (unified)

ARGSUSED makes lindt a happy camper

Revision 1.10 / (download) - annotate - [select for diffs], Thu Mar 26 14:03:30 2009 UTC (11 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.9: +20 -1 lines
Diff to previous 1.9 (unified)

Don't abort() if the kernel complains we supplied an invalid type
for lookup, as this most likely means that the fs has some bad file
on it.  Rather, just flag an error to the user and be happy.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Feb 22 20:28:05 2009 UTC (11 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.8: +1 -3 lines
Diff to previous 1.8 (unified)

PR kern/26878 FFSv2 + softdep = livelock (no free ram)
PR kern/16942 panic with softdep and quotas
PR kern/19565 panic: softdep_write_inodeblock: indirect pointer #1 mismatch
PR kern/26274 softdep panic: allocdirect_merge: ...
PR kern/26374 Long delay before non-root users can write to softdep partitions
PR kern/28621 1.6.x "vp != NULL" panic in ffs_softdep.c:4653 while unmounting a softdep (+quota) filesystem
PR kern/29513 FFS+Softdep panic with unfsck-able file-corruption
PR kern/31544 The ffs softdep code appears to fail to write dirty bits to disk
PR kern/31981 stopping scsi disk can cause panic (softdep)
PR kern/32116 kernel panic in softdep (assertion failure)
PR kern/32532 softdep_trackbufs deadlock
PR kern/37191 softdep: locking against myself
PR kern/40474 Kernel panic after remounting raid root with softdep

Retire softdep, pass 2. As discussed and later formally announced on the
mailing lists.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Feb 10 14:36:19 2009 UTC (11 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.7: +4 -1 lines
Diff to previous 1.7 (unified)

If P2K_NODETACH is set in the env, do not .. well .. detach.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Dec 12 19:50:27 2008 UTC (11 years, 9 months ago) by pooka
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.6: +21 -16 lines
Diff to previous 1.6 (unified)

Defer ukfs (and hence rump) init until after detaching from console.
Otherwise forking when detaching will nuke our potential precious
threads.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Nov 14 13:43:20 2008 UTC (11 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.5: +12 -1 lines
Diff to previous 1.5 (unified)

Detach from console by default unless P2K_DEBUG is set in the
environment.  We can't pass this as a flag, since rump_foo should
remain usage-compatible with mount_foo and therefore can't accept
puffs flags as command line parameters.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Oct 7 23:14:58 2008 UTC (11 years, 11 months ago) by pooka
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Changes since 1.4: +3 -2 lines
Diff to previous 1.4 (unified)

check ukfs_init() return value

Revision 1.4 / (download) - annotate - [select for diffs], Tue Sep 30 17:18:46 2008 UTC (11 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.3: +13 -2 lines
Diff to previous 1.3 (unified)

Do not clear curlwp after request if we have unmounted.  This avoids
an annoying side effect of the reference counting nightmare, namely
trying to vrele() a recently-ceased-to-be cwd.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Aug 12 19:52:32 2008 UTC (12 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Branch point for: wrstuden-revivesa
Changes since 1.2: +41 -36 lines
Diff to previous 1.2 (unified)

void * -> puffs_cookie_t
no functional change

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jul 30 18:10:38 2008 UTC (12 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.1: +1 -4 lines
Diff to previous 1.1 (unified)

Nuke __VFSOPS_EXPOSE, it hasn't been used in ages.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Jul 29 13:17:40 2008 UTC (12 years, 2 months ago) by pooka
Branch: MAIN

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
  * install relevant headers into /usr/include/rump
  * build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
    from src/lib and install as librumpuser and librump, respectively
    + this retains the ability to test a librump build with just the
      kernel sources at hand
  * move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
    for general consumption, they are not kernel-space dwellers anyway
  * build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
  * add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
  * build and install userspace kernel file system daemons if MKPUFFS=yes
    is spexified
  * retire fsconsole for now, it will make a comeback with an actually
    implemented version shortly

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>