Commit Graph

1733 Commits

Author SHA1 Message Date
christos
f28bf2dc9d PR/50951: Unmess this up. 2016-03-12 02:36:25 +00:00
christos
850b4cce27 PR/50951: David Binderman: Fix misplaced parens 2016-03-11 18:35:50 +00:00
christos
2a67b893e9 remove installboot.h; it is not needed 2016-03-09 20:18:17 +00:00
christos
635b4dc047 Make it usable from userland. 2016-03-09 15:45:37 +00:00
mlelstv
200cdc61ea Use KASSERT for conditions that cannot be met with current parameters. 2016-03-06 07:33:25 +00:00
christos
d600a25056 PR/50883: David Binderman: Remove redundant code. 2016-03-02 19:27:05 +00:00
joerg
9cb0d31c43 Toolify. 2016-02-06 14:11:58 +00:00
mlelstv
bbd8666d0f Split case folding table into separate source file and add full
copyright and permission notice from http://www.unicode.org/copyright.html
2016-02-06 10:40:58 +00:00
christos
ae157f388e - split a long line.
- remove extra test.
- move d_namlen setting to msdosfs_vnops.c to avoid the ifdef.
2016-02-01 16:53:23 +00:00
martin
456f8519f7 Avoid unsigned/signed comparision warning to fix the build. 2016-02-01 10:37:57 +00:00
christos
76530fdb8e We can't depend on dp->d_namlen existing for the parts that are used in
makefs(8).
2016-02-01 02:59:33 +00:00
mlelstv
223c7df5b3 Add support to msdosfs and makefs to generate correct Unicode (UCS-2) directory
entries from UTF8 encoded file names.
2016-01-30 09:59:27 +00:00
christos
d384368fae It is meaningless to check the root node if there was an error. 2016-01-29 10:42:30 +00:00
reinoud
7f3b83e2df Fix filename creation and deleting with illegal file names. UDF has a
machanism for it but it allowed to create a file with a name it considered
illegal that then couldn't be deleted with the same name.

Fixes PR kern/50608. When confirmed, it can be closed.
2016-01-27 00:06:49 +00:00
dholland
398f572480 Apparently a recent round of vandalism by the C++ standards committee
includes disallowing the standard and historic type name "unsigned". Add
a gratuitous "int" to recent changes.

C++ is really a blight on the world.
2016-01-23 01:26:14 +00:00
dholland
25ebd28338 u_int{8,16,32}_t -> uint{8,16,32}_t, also u_int -> unsigned and
u_char -> unsigned char.
2016-01-22 22:53:36 +00:00
dholland
cbeb02479d u_int8_t -> uint8_t 2016-01-22 22:48:18 +00:00
christos
90923db0b9 PR/50573: Andreas Gustafsson: puffs can crash kernel for lack of argument
checking
2015-12-20 01:34:00 +00:00
dholland
4caea7fde8 Improve misleading variable name. Related to PR 50571.
XXX: also there should be real bounds-check logic in here.
XXX: if the on-disk data structure contains rubbish this code will
XXX: leak or trample arbitrary kernel memory.
2015-12-19 03:16:09 +00:00
christos
e26a1063f5 add missing , 2015-12-19 01:51:42 +00:00
christos
014d2807e0 PR/50571: David Binderman: src/sys/fs/udf/udf_subr.c:6465: obvious
performance tidyup
2015-12-19 01:18:00 +00:00
christos
04cb474ace PR/50535: David Binderman: Fix nonsense strcmp 2015-12-13 18:31:09 +00:00
phx
c835c55cd9 Patch by hannken@ to fix a bug which has been introduced with 1.71.
The kernel crashed with uvm fault when mounting an ados file system.
2015-11-18 22:06:25 +00:00
pooka
d5e7c6e861 Fix bug in readdir loop condition.
Reading all dirents using a small buffer and multiple calls now works.

Bug found by "Shamar" on #rumpkernel
2015-11-13 13:36:54 +00:00
leot
9df9aefc02 Make sure that nde->td_node is NULL for asserts.
Thanks and from Mindaugas Rasiukevicius.

Fixes PR kern/50381.
2015-10-29 16:19:44 +00:00
hannken
6495f9c3ba Remove dubious vhold()/holdrele() from write_logvol_dscr strategies.
The udf_node already gets locked with UDF_LOCK_NODE() and udf_reclaim()
will wait for the lock to clear.
2015-10-06 08:57:34 +00:00
maxv
e1ac029c45 Curious typo. Harmless. Found by Brainy 2015-09-26 12:16:28 +00:00
christos
9ef18f76ff diagused some variables. 2015-09-12 19:50:08 +00:00
christos
c82c3049c6 remove identity assignment, found by brainy. 2015-09-12 19:33:03 +00:00
hannken
4207afb71b Use vfs_vnode_iterator for udf_do_sync.
- Build rb_tree to get an ordered list of nodes, sync them and
  clean the tree.

- Stop abusing mntvnode_lock to serialize udf_do_sync, use new
  mutex ump->sync_lock instead.
2015-08-24 08:31:56 +00:00
hannken
f731f08d1c Use vfs_vnode_iterator for udf_unmount_sanity_check. 2015-08-24 08:30:52 +00:00
hannken
09f7c2773a Remove dirtynodes_cv, it is only used for timed waits without any signals.
Replace the cv_timedwait with kpause.
2015-08-24 08:30:17 +00:00
hannken
56b07d2782 union_unmount: use vfs_vnode_iterator to count attached vnodes. 2015-07-23 09:45:21 +00:00
justin
eec608f983 This enum is likely to be made unsigned by the compiler, so the assertion
will not work and clang objects with -Wtautological-constant-out-of-range-compare
2015-07-07 09:30:24 +00:00
wiz
90eb2b6e7b Fix typo in comment. 2015-07-06 10:24:59 +00:00
hannken
8c80da52ef Change tmpfs to vcache.
- Use tmpfs node address as key.
- Remove tn_vlock, field tn_vnode now protected by vcache.
- Add a hold count to tmpfs node to prevent nodes from disappearing
  while tmpfs_fhtovp() trys to vcache_get() them.  Last holder
  destroys reclaimed nodes.
- Remove the now unneeded parent unlock/lock for lookup of '..'.
2015-07-06 10:07:12 +00:00
hannken
12475e0224 Use VFS_PROTOS() for tmpfs. 2015-07-06 10:05:50 +00:00
hannken
6f6149f5fd No need to call spec_inactive() from ptyfs_incative(). 2015-06-23 10:41:06 +00:00
maxv
f2ee5fed89 KNF 2015-06-21 14:09:47 +00:00
maxv
d4367314aa KNF 2015-06-21 13:50:34 +00:00
maxv
547d41ca0a KNF 2015-06-21 13:40:25 +00:00
pooka
ba67bd18dc update: runs as a userspace process now. 2015-05-17 09:46:12 +00:00
pooka
30f1c61cb8 Remove. For example, vfs_cluster hasn't existed since early UBC days
(which were 10+ years ago).
2015-05-17 09:45:36 +00:00
hannken
e10a32f7f7 Remove miscfs/syncfs and
- move the syncer into kern/vfs_subr.c.

- change the syncer to process the mountlist and VFS_SYNC as appropriate.

- use an API for mount points similiar to the API for vnodes:
  - vfs_syncer_add_to_worklist(struct mount *mp) to add
  - vfs_syncer_remove_from_worklist(struct mount *mp) to remove a mount.

No objections on tech-kern@
2015-05-06 15:57:07 +00:00
pooka
aa5447362f sprinkle COMPAT_50 2015-04-22 17:07:24 +00:00
riastradh
46e71c7d57 Make VOP_LINK return directory still locked and referenced.
Ride 7.99.10 bump.
2015-04-20 22:59:19 +00:00
riastradh
944fbd0d8b Cull unused vnode v_iflags: VI_LAYER, VI_LOCKSHARE. 2015-04-20 19:36:55 +00:00
riastradh
f6139440c5 Make vget always return vnode unlocked.
Convert callers who want locks to use vn_lock afterward.

Add extra argument so the compiler will report stragglers.
2015-04-20 13:44:16 +00:00
hannken
a494ee15b8 Change udf to vcache, keyed on udf_node->loc.loc. 2015-04-06 08:39:23 +00:00
hannken
94abdca3c1 Move the removal of unlinked nodes from udf_inactive() to udf_reclaim(). 2015-04-06 08:38:25 +00:00