CVS commit: src/sys/fs/tmpfs

2020-12-13 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Sun Dec 13 19:22:02 UTC 2020 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: Disable use of UBC_FAULTBUSY in tmpfs_write() for now, which brings back zeroing of all new tmpfs data pages. The existing code that enables th

CVS commit: src/sys/fs/tmpfs

2020-05-24 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun May 24 20:08:26 UTC 2020 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: tmpfs_write(): use UBC_FAULTBUSY when extending files, if possible, to avoid zeroing of newly allocated pages & fault processing. To generate

CVS commit: src/sys/fs/tmpfs

2020-05-17 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun May 17 19:43:31 UTC 2020 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: Minor correction to previous. To generate a diff of this commit: cvs rdiff -u -r1.139 -r1.140 src/sys/fs/tmpfs/tmpfs_vnops.c Please note that

CVS commit: src/sys/fs/tmpfs

2020-05-17 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun May 17 19:39:15 UTC 2020 Modified Files: src/sys/fs/tmpfs: tmpfs.h tmpfs_subr.c tmpfs_vnops.c Log Message: PR kern/55268: tmpfs is slow tmpfs_getpages(): handle the PGO_LOCKED case and implement lazy update of atime/mtime. To g

CVS commit: src/sys/fs/tmpfs

2020-05-15 Thread Andrew Doran
Module Name:src Committed By: ad Date: Fri May 15 22:15:43 UTC 2020 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: PR kern/55268: tmpfs is slow Enter dotdot into the namecache. To generate a diff of this commit: cvs rdiff -u -r1.136 -r1.137 src/sys/fs/tmpf

CVS commit: src/sys/fs/tmpfs

2020-03-14 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Mar 14 13:39:36 UTC 2020 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: tmpfs_inactive(): do like other file systems and truncate the file if it has been deleted. Otherwise VFS will try to write cached data "back to

CVS commit: src/sys/fs/tmpfs

2020-03-14 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Mar 14 13:37:49 UTC 2020 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c Log Message: tmpfs_reg_resize(): do nothing if newsize == oldsize. To generate a diff of this commit: cvs rdiff -u -r1.106 -r1.107 src/sys/fs/tmpfs/tmpfs_su

CVS commit: src/sys/fs/tmpfs

2019-12-02 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Dec 3 04:59:05 UTC 2019 Modified Files: src/sys/fs/tmpfs: tmpfs_rename.c Log Message: Omit obsolete comment and needless __diagused marker. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/fs/tmpfs/tm

CVS commit: src/sys/fs/tmpfs

2018-08-09 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Aug 9 08:43:56 UTC 2018 Modified Files: src/sys/fs/tmpfs: tmpfs_vfsops.c Log Message: FIx performance regression from rmind@: Just from a very quick look, it seems like a regression introduced with the vcache changes: the

CVS commit: src/sys/fs/tmpfs

2017-03-30 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Thu Mar 30 09:09:26 UTC 2017 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: Protect tmpfs_getpages() against reclaiming vnodes. To generate a diff of this commit: cvs rdiff -u -r1.129 -r1.130 src/sys/fs/tmpfs/tmpf

CVS commit: src/sys/fs/tmpfs

2017-01-27 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Fri Jan 27 10:47:54 UTC 2017 Modified Files: src/sys/fs/tmpfs: tmpfs.h tmpfs_vfsops.c Log Message: Run vflush() when going from read/write to read only. To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 src/sys/fs/t

CVS commit: src/sys/fs/tmpfs

2017-01-11 Thread Joerg Sonnenberger
Module Name:src Committed By: joerg Date: Wed Jan 11 12:12:32 UTC 2017 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: Remove RO check in tmpfs_putpages for now, the syncer doesn't like the error code. To generate a diff of this commit: cvs rdiff -u -r1.128

CVS commit: src/sys/fs/tmpfs

2017-01-04 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Wed Jan 4 10:06:43 UTC 2017 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c Log Message: Change tmpfs_chsize() to update mtime etc. even if "length == node->tn_size". Adresses PR kern/51762 "mtime not updated by open(O_TRUNC)"

CVS commit: src/sys/fs/tmpfs

2016-08-26 Thread David A. Holland
Module Name:src Committed By: dholland Date: Fri Aug 26 21:44:24 UTC 2016 Modified Files: src/sys/fs/tmpfs: tmpfs_vfsops.c Log Message: In the event that loading the root vnode fails, bail out of tmpfs_mount instead of crashing. Came up in PR 51436, where kmem issues caus

CVS commit: src/sys/fs/tmpfs

2016-08-22 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Mon Aug 22 23:07:36 UTC 2016 Modified Files: src/sys/fs/tmpfs: tmpfs_mem.c Log Message: Two fixes from rmind - tmpfs_node_get: restore (decrement) the node count on the error path. - tmpfs_bytes_max: save the value of uvmexp.freet

CVS commit: src/sys/fs/tmpfs

2016-03-12 Thread Martin Husemann
Module Name:src Committed By: martin Date: Sat Mar 12 12:21:37 UTC 2016 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: Backout previous - need coffee first To generate a diff of this commit: cvs rdiff -u -r1.126 -r1.127 src/sys/fs/tmpfs/tmpfs_vnops.c Pleas

CVS commit: src/sys/fs/tmpfs

2016-03-12 Thread Martin Husemann
Module Name:src Committed By: martin Date: Sat Mar 12 11:45:59 UTC 2016 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: Mark a variable as __diagused. To generate a diff of this commit: cvs rdiff -u -r1.125 -r1.126 src/sys/fs/tmpfs/tmpfs_vnops.c Please note

CVS commit: src/sys/fs/tmpfs

2016-03-12 Thread Frank Kardel
Module Name:src Committed By: kardel Date: Sat Mar 12 10:51:01 UTC 2016 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: do no access uninitialized variables in KASSERTs - fixes build To generate a diff of this commit: cvs rdiff -u -r1.124 -r1.125 src/sys/fs/

CVS commit: src/sys/fs/tmpfs

2016-03-12 Thread Joerg Sonnenberger
Module Name:src Committed By: joerg Date: Sat Mar 12 08:51:13 UTC 2016 Modified Files: src/sys/fs/tmpfs: tmpfs_vfsops.c tmpfs_vnops.c Log Message: Implement most of mount -ur functionality for tmpfs. Remaining issue is the question who is responsible for syncing pending wr

CVS commit: src/sys/fs/tmpfs

2016-03-12 Thread Joerg Sonnenberger
Module Name:src Committed By: joerg Date: Sat Mar 12 08:45:23 UTC 2016 Modified Files: src/sys/fs/tmpfs: tmpfs_vfsops.c Log Message: Only recheck size/node limits on update mounts, if there actually have been specified. To generate a diff of this commit: cvs rdiff -u -r1

CVS commit: src/sys/fs/tmpfs

2015-10-29 Thread Leonardo Taccari
Module Name:src Committed By: leot Date: Thu Oct 29 16:19:44 UTC 2015 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c Log Message: Make sure that nde->td_node is NULL for asserts. Thanks and from Mindaugas Rasiukevicius. Fixes PR kern/50381. To generate a diff of this co

CVS commit: src/sys/fs/tmpfs

2015-07-07 Thread Justin Cormack
Module Name:src Committed By: justin Date: Tue Jul 7 09:30:24 UTC 2015 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c Log Message: This enum is likely to be made unsigned by the compiler, so the assertion will not work and clang objects with -Wtautological-constant-out-o

CVS commit: src/sys/fs/tmpfs

2015-07-06 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Mon Jul 6 10:24:59 UTC 2015 Modified Files: src/sys/fs/tmpfs: tmpfs_rename.c Log Message: Fix typo in comment. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/fs/tmpfs/tmpfs_rename.c Please note that diffs are

CVS commit: src/sys/fs/tmpfs

2015-07-06 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Mon Jul 6 10:07:12 UTC 2015 Modified Files: src/sys/fs/tmpfs: tmpfs.h tmpfs_rename.c tmpfs_subr.c tmpfs_vfsops.c tmpfs_vnops.c Log Message: Change tmpfs to vcache. - Use tmpfs node address as key. - Remove tn_vlock,

CVS commit: src/sys/fs/tmpfs

2015-07-06 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Mon Jul 6 10:05:50 UTC 2015 Modified Files: src/sys/fs/tmpfs: tmpfs.h tmpfs_vfsops.c Log Message: Use VFS_PROTOS() for tmpfs. To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/sys/fs/tmpfs/tmpfs.h cvs rdiff -u

CVS commit: src/sys/fs/tmpfs

2014-09-08 Thread Andreas Gustafsson
Module Name:src Committed By: gson Date: Mon Sep 8 14:49:47 UTC 2014 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c tmpfs_vnops.c Log Message: Store symlinks without a NUL terminator so that lstat(2) returns the correct length. Fixes the tmpfs part of PR kern/48864. To

CVS commit: src/sys/fs/tmpfs

2014-06-13 Thread Antti Kantee
Module Name:src Committed By: pooka Date: Fri Jun 13 11:57:48 UTC 2014 Modified Files: src/sys/fs/tmpfs: tmpfs_mem.c Log Message: use psize_t for physical memory calculation To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/fs/tmpfs/tmpfs_mem.c Please

CVS commit: src/sys/fs/tmpfs

2014-06-10 Thread Martin Husemann
Module Name:src Committed By: martin Date: Tue Jun 10 16:10:59 UTC 2014 Modified Files: src/sys/fs/tmpfs: tmpfs_vfsops.c Log Message: Check for invalid mount arguments early and gracefully fail the mount. Spotted by pooka@ To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/fs/tmpfs

2014-06-10 Thread Martin Husemann
Module Name:src Committed By: martin Date: Tue Jun 10 15:44:27 UTC 2014 Modified Files: src/sys/fs/tmpfs: tmpfs_mem.c Log Message: Make sure to expand "freepages" to 64bit before shifting to byte values - on rump we may have all our virtual address space "free". Pointed ou

CVS commit: src/sys/fs/tmpfs

2014-06-07 Thread Martin Husemann
Module Name:src Committed By: martin Date: Sat Jun 7 09:54:34 UTC 2014 Modified Files: src/sys/fs/tmpfs: tmpfs.h tmpfs_mem.c tmpfs_vfsops.c Log Message: Remove the hardcoded 4 MB free kernel memory limit and replace it by uvmexp.freetarg, as discussed on tech-kern. Main p

CVS commit: src/sys/fs/tmpfs

2014-05-26 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Mon May 26 19:12:07 UTC 2014 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: tmpfs_mknod: it is not our responsibility to call vput() on the directory vnode, so remove it (and ensure *vpp is NULL while here). To gene

CVS commit: src/sys/fs/tmpfs

2014-04-29 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Apr 30 01:59:30 UTC 2014 Modified Files: src/sys/fs/tmpfs: tmpfs_vfsops.c Log Message: fix typo To generate a diff of this commit: cvs rdiff -u -r1.60 -r1.61 src/sys/fs/tmpfs/tmpfs_vfsops.c Please note that diffs are not

CVS commit: src/sys/fs/tmpfs

2014-04-29 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Apr 30 01:33:51 UTC 2014 Modified Files: src/sys/fs/tmpfs: tmpfs.h tmpfs_mem.c tmpfs_vfsops.c Log Message: handle MNT_UPDATE To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/sys/fs/tmpfs/tmpfs.h cvs rdiff

CVS commit: src/sys/fs/tmpfs

2014-02-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Feb 17 20:16:52 UTC 2014 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: Adapt my previous patch differently. read(2) wants EISDIR when the object is a directory. Which also means that tmpfs_read() was returning a w

CVS commit: src/sys/fs/tmpfs

2014-02-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Feb 16 12:54:07 UTC 2014 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: Fix tmpfs_read()'s return value; it should return EINVAL. Now consistent with tmpfs_write(). ok christos@ To generate a diff of this commit

CVS commit: src/sys/fs/tmpfs

2014-02-06 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Thu Feb 6 16:18:38 UTC 2014 Modified Files: src/sys/fs/tmpfs: tmpfs_vfsops.c Log Message: Remove an annoying printf. And to answer the question: VFS_VGET() gets used by NFS V3 server for readdirplus. To generate a diff of th

CVS commit: src/sys/fs/tmpfs

2014-01-10 Thread pedro martelletto
Module Name:src Committed By: pedro Date: Fri Jan 10 16:42:38 UTC 2014 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: Prevent a diagnostic assertion in tmpfs_rmdir() from being triggered through an rmdir on ".." by moving it so it happens after the check for

CVS commit: src/sys/fs/tmpfs

2014-01-08 Thread pedro martelletto
Module Name:src Committed By: pedro Date: Wed Jan 8 16:11:04 UTC 2014 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c Log Message: Allocate direntp on the stack in tmpfs_dir_getdents(), thus saving calls to kmem_zalloc() and kmem_free(); OK rmind@. From OpenBSD. To gener

CVS commit: src/sys/fs/tmpfs

2014-01-04 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sat Jan 4 12:36:49 UTC 2014 Modified Files: src/sys/fs/tmpfs: tmpfs_vfsops.c Log Message: Fix a race where thread1 runs VOP_REMOVE() and gets preempted in tmpfs_reclaim() before the call to tmpfs_free_node(). Thread2 runs VFS_F

CVS commit: src/sys/fs/tmpfs

2014-01-03 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Fri Jan 3 09:53:12 UTC 2014 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c tmpfs_vnops.c Log Message: Fix a race where thread1 runs VOP_REMOVE() and gets preempted in tmpfs_reclaim() before the call to tmpfs_free_node(). Thread

CVS commit: src/sys/fs/tmpfs

2013-12-24 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Tue Dec 24 09:23:33 UTC 2013 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: It is not the task of tmpfs_open() to check for unlinked nodes. Fix tmpfs_lookup() to always return ENOENT when looking up from an unlinke

CVS commit: src/sys/fs/tmpfs

2013-11-24 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Sun Nov 24 17:16:29 UTC 2013 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c tmpfs_vnops.c Log Message: - tmpfs_construct_node: prevent from the new node construction if the directory was removed. Fixes the crash reported by Nico

CVS commit: src/sys/fs/tmpfs

2013-11-23 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Sat Nov 23 21:53:27 UTC 2013 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c Log Message: tmpfs_reg_resize: use size_t. To generate a diff of this commit: cvs rdiff -u -r1.90 -r1.91 src/sys/fs/tmpfs/tmpfs_subr.c Please note that

CVS commit: src/sys/fs/tmpfs

2013-11-23 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Sat Nov 23 17:01:07 UTC 2013 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: Fix previous, add __diagused. To generate a diff of this commit: cvs rdiff -u -r1.107 -r1.108 src/sys/fs/tmpfs/tmpfs_vnops.c Please note t

CVS commit: src/sys/fs/tmpfs

2013-11-23 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Sat Nov 23 16:35:32 UTC 2013 Modified Files: src/sys/fs/tmpfs: tmpfs.h tmpfs_fifoops.c tmpfs_rename.c tmpfs_specops.c tmpfs_subr.c tmpfs_vfsops.c tmpfs_vnops.c Log Message: - Simplify tmpfs_update(), eliminate tmpfs_not

CVS commit: src/sys/fs/tmpfs

2013-11-21 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Thu Nov 21 14:39:09 UTC 2013 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c Log Message: tmpfs_dir_getdotents: fix the recent regression, set the correct d_fileno value for dot-dot. Spotted by Pedro Martelletto, thanks! To gener

CVS commit: src/sys/fs/tmpfs

2013-11-17 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Mon Nov 18 01:39:34 UTC 2013 Modified Files: src/sys/fs/tmpfs: tmpfs.h tmpfs_subr.c Log Message: Make tmpfs_node_t::tn_gen a 32-bit number, keep it in sync with tmpfs_fid_t. Also, change tn_status to unsigned while here. To gener

CVS commit: src/sys/fs/tmpfs

2013-11-16 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Sat Nov 16 17:58:28 UTC 2013 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c Log Message: tmpfs_dir_getdents: avoid leaking kernel memory to the userspace. >From Pedro Martelletto. XXX: regress/sys/fs/getdents should be a part of t

CVS commit: src/sys/fs/tmpfs

2013-11-11 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Mon Nov 11 17:04:06 UTC 2013 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c Log Message: tmpfs_alloc_node: use cprng_fast64(), the old random(9) shall be removed. To generate a diff of this commit: cvs rdiff -u -r1.85 -r1.86 src/

CVS commit: src/sys/fs/tmpfs

2013-11-10 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Sun Nov 10 12:46:19 UTC 2013 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c tmpfs_vfsops.c Log Message: Handle whiteout case in tmpfs_dir_detach() and tmpfs_unmount(). To generate a diff of this commit: cvs rdiff -u -r1.84 -r1.85

CVS commit: src/sys/fs/tmpfs

2013-11-09 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Nov 10 03:20:20 UTC 2013 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c Log Message: mark variable __diagused To generate a diff of this commit: cvs rdiff -u -r1.83 -r1.84 src/sys/fs/tmpfs/tmpfs_subr.c Please note that di

CVS commit: src/sys/fs/tmpfs

2013-11-08 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Fri Nov 8 15:44:23 UTC 2013 Modified Files: src/sys/fs/tmpfs: tmpfs.h tmpfs_rename.c tmpfs_subr.c tmpfs_vfsops.c tmpfs_vnops.c Log Message: tmpfs: replace the broken tmpfs_dircookie() logic which uses the node address

CVS commit: src/sys/fs/tmpfs

2013-11-01 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Fri Nov 1 15:38:45 UTC 2013 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c tmpfs_vnops.c Log Message: tmpfs: fix the zero-length symlink target case as NetBSD supports them. To generate a diff of this commit: cvs rdiff -u -r1.81

CVS commit: src/sys/fs/tmpfs

2013-10-30 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Thu Oct 31 00:59:17 UTC 2013 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c tmpfs_vnops.c Log Message: tmpfs_alloc_node: it is less error-prone to store the link path with the NIL terminator included. Adjust tmpfs_readlink() to ex

CVS commit: src/sys/fs/tmpfs

2013-10-04 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Fri Oct 4 15:14:11 UTC 2013 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c tmpfs_vnops.c Log Message: - tmpfs_remove: check 'appendable' flag for the parent directory as well. Patch from Pedro Martelletto. - tmpfs_dir_detach: re

CVS commit: src/sys/fs/tmpfs

2013-10-01 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Tue Oct 1 23:10:25 UTC 2013 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: tmpfs_remove: as per POSIX, "if the file's link count is not 0, the last file status change timestamp of the file shall be marked for update.

CVS commit: src/sys/fs/tmpfs

2012-09-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Sep 27 17:40:51 UTC 2012 Modified Files: src/sys/fs/tmpfs: tmpfs_rename.c Log Message: Uncomment call to genfs_rename_cache_purge. Fixes a side issue mentioned in PR kern/46990. I left this commented to preserve the old b

CVS commit: src/sys/fs/tmpfs

2012-09-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 25 16:11:42 UTC 2012 Modified Files: src/sys/fs/tmpfs: tmpfs_rename.c Log Message: Check tmpfs_rmdired_p after tmpfs_vnode_get when walking up the tree. tmpfs_vnode_get drops all locks except possibly the reclaiming bi

CVS commit: src/sys/fs/tmpfs

2012-05-09 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed May 9 22:46:25 UTC 2012 Modified Files: src/sys/fs/tmpfs: tmpfs_rename.c Log Message: Fix omitted VN_KNOTE(fvp, NOTE_RENAME) in tmpfs_rename. Missed that line while refactoring tmpfs_rename to use genfs_rename. To gener

CVS commit: src/sys/fs/tmpfs

2012-02-27 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Mon Feb 27 16:10:56 UTC 2012 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: in tmpfs_readdir(), skip the . and .. processing on removed directories, since the latter will crash in this case. To generate a diff of this

CVS commit: src/sys/fs/tmpfs

2012-01-21 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Sun Jan 22 03:13:20 UTC 2012 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: tmpfs_access: simplify, no need to separate the logic. To generate a diff of this commit: cvs rdiff -u -r1.93 -r1.94 src/sys/fs/tmpfs/tmpfs

CVS commit: src/sys/fs/tmpfs

2011-09-26 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Sep 27 01:32:21 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: return TMPFS_MAXNAMLEN instead of NAME_MAX To generate a diff of this commit: cvs rdiff -u -r1.91 -r1.92 src/sys/fs/tmpfs/tmpfs_vnops.c

CVS commit: src/sys/fs/tmpfs

2011-09-26 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Sep 27 01:10:44 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs.h tmpfs_vfsops.c tmpfs_vnops.c Log Message: define and use TMPFS_MAXNAMLEN instead of MAXNAMLEN To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45

CVS commit: src/sys/fs/tmpfs

2011-08-27 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sat Aug 27 15:32:28 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c tmpfs_vnops.c Log Message: Finish and enable whiteout support for tmpfs: - Enable VOP tmpfs_whiteout(). - Support ISWHITEOUT in tmpfs_alloc_file(). - Su

CVS commit: src/sys/fs/tmpfs

2011-08-18 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Aug 18 21:42:19 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: Fix tmpfs_rename locking. Fixes PR kern/36681. tmpfs now survives dirconc, all our vfs/tmpfs tests and rename races in atf, and a bunch

CVS commit: src/sys/fs/tmpfs

2011-07-12 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Jul 13 03:28:41 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: Fix renaming over mismatched non-directory types in tmpfs. Renaming a file of any non-directory type over another file of any other non-

CVS commit: src/sys/fs/tmpfs

2011-06-29 Thread enami tsugutomo
Module Name:src Committed By: enami Date: Thu Jun 30 00:37:08 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c Log Message: Backout previous. May be I need more coffee. To generate a diff of this commit: cvs rdiff -u -r1.75 -r1.76 src/sys/fs/tmpfs/tmpfs_subr.c P

CVS commit: src/sys/fs/tmpfs

2011-06-29 Thread enami tsugutomo
Module Name:src Committed By: enami Date: Thu Jun 30 00:09:27 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c Log Message: - Use << PAGE_SHIFT rather than calling round_page again. - No need to call uao_dropswap_range() here since uao_dropswap() is already called

CVS commit: src/sys/fs/tmpfs

2011-05-30 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Mon May 30 19:22:44 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: - tmpfs_getattr: perform tmpfs_update() before fetching the timestamps. - tmpfs_rmdir: detach after tn_links decrement, so that correct event

CVS commit: src/sys/fs/tmpfs

2011-05-29 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Sun May 29 22:43:32 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c Log Message: Fix non-DEBUG build. To generate a diff of this commit: cvs rdiff -u -r1.71 -r1.72 src/sys/fs/tmpfs/tmpfs_subr.c Please note that diffs are

CVS commit: src/sys/fs/tmpfs

2011-05-29 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Sun May 29 22:29:07 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs.h tmpfs_subr.c tmpfs_vfsops.c tmpfs_vnops.c Log Message: - Rework and document inode reference counting. Also document inode life cycle (destruction part). Pe

CVS commit: src/sys/fs/tmpfs

2011-05-28 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun May 29 01:14:31 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs.h Log Message: undo the multiple inclusion protection part. To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/sys/fs/tmpfs/tmpfs.h Please no

CVS commit: src/sys/fs/tmpfs

2011-05-24 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Wed May 25 02:03:22 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c Log Message: tmpfs_update: comment out assert for now. To generate a diff of this commit: cvs rdiff -u -r1.69 -r1.70 src/sys/fs/tmpfs/tmpfs_subr.c Pleas

CVS commit: src/sys/fs/tmpfs

2011-05-24 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Wed May 25 00:06:45 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c Log Message: tmpfs_dir_lookup: use 'name' variable in memcmp() as intended; fix warning. To generate a diff of this commit: cvs rdiff -u -r1.68 -r1.69 sr

CVS commit: src/sys/fs/tmpfs

2011-05-24 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Tue May 24 23:16:16 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c tmpfs_vnops.c Log Message: - tmpfs_lookup: cache (cnp->cn_flags & ISLASTCN) in const bool; de-indent. - Group tmpfs_{alloc,free}_dirent() with other dirent

CVS commit: src/sys/fs/tmpfs

2011-05-24 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Tue May 24 20:17:49 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs.h tmpfs_fifoops.c tmpfs_fifoops.h tmpfs_specops.c tmpfs_specops.h tmpfs_subr.c tmpfs_vfsops.c tmpfs_vnops.c tmpfs_vnops.h Log Message: - D

CVS commit: src/sys/fs/tmpfs

2011-05-24 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Tue May 24 14:18:03 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c Log Message: tmpfs_free_node: comment out assert, which can fire e.g. on shutdown. To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 src/sys/

CVS commit: src/sys/fs/tmpfs

2011-05-23 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Tue May 24 01:09:48 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs_mem.c tmpfs_subr.c tmpfs_vfsops.c Log Message: - tmpfs_alloc_node/tmpfs_free_node: move inode limiting into tmpfs_node_get() and tmpfs_node_put(), update outdat

CVS commit: src/sys/fs/tmpfs

2011-05-21 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Sun May 22 04:20:51 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c Log Message: tmpfs_alloc_vp: - Do not check for vn_lock(9) error, if LK_RETRY. - Fix/improve comments. To generate a diff of this commit: cvs rdiff -u -r

CVS commit: src/sys/fs/tmpfs

2011-05-18 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Thu May 19 03:21:24 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs.h tmpfs_mem.c tmpfs_vfsops.c Log Message: - tmpfs: do not create dirent/node pools per-mount, there is no need to. - tmpfs_mount: fix a leak of mount structures i

CVS commit: src/sys/fs/tmpfs

2011-05-18 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Thu May 19 03:13:58 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: Add comments, clean up. To generate a diff of this commit: cvs rdiff -u -r1.81 -r1.82 src/sys/fs/tmpfs/tmpfs_vnops.c Please note that diff

CVS commit: src/sys/fs/tmpfs

2011-05-09 Thread Matt Thomas
Module Name:src Committed By: matt Date: Tue May 10 00:34:26 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: yes, more C99 please (back out previous change). To generate a diff of this commit: cvs rdiff -u -r1.79 -r1.80 src/sys/fs/tmpfs/tmpfs_vnops.

CVS commit: src/sys/fs/tmpfs

2011-05-07 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun May 8 00:03:35 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: no c99 please. To generate a diff of this commit: cvs rdiff -u -r1.78 -r1.79 src/sys/fs/tmpfs/tmpfs_vnops.c Please note that diffs are

CVS commit: src/sys/fs/tmpfs

2011-05-02 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Mon May 2 23:42:10 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: Constify, update some comments, use memset() to clear pgs. To generate a diff of this commit: cvs rdiff -u -r1.77 -r1.78 src/sys/fs/tmpfs/t

CVS commit: src/sys/fs/tmpfs

2011-01-13 Thread Antti Kantee
Module Name:src Committed By: pooka Date: Thu Jan 13 13:35:12 UTC 2011 Modified Files: src/sys/fs/tmpfs: tmpfs.h tmpfs_subr.c tmpfs_vnops.c tmpfs_vnops.h Log Message: Add some support for unionfs (not built by default). It's still missing at least opaque directory support

CVS commit: src/sys/fs/tmpfs

2010-07-14 Thread Antti Kantee
Module Name:src Committed By: pooka Date: Wed Jul 14 16:03:49 UTC 2010 Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: return same errno as ffs To generate a diff of this commit: cvs rdiff -u -r1.72 -r1.73 src/sys/fs/tmpfs/tmpfs_vnops.c Please note that dif

CVS commit: src/sys/fs/tmpfs

2010-07-01 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Fri Jul 2 03:29:47 UTC 2010 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c tmpfs_vnops.c Log Message: tmpfs_lookup: add comment, de-ident main path. No functional change. tmpfs_dir_attach: add assert. To generate a diff of this

CVS commit: src/sys/fs/tmpfs

2010-06-28 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Mon Jun 28 19:32:43 UTC 2010 Modified Files: src/sys/fs/tmpfs: tmpfs_mem.c Log Message: tmpfs_bytes_max: use MIN() rather than min(), which returns int. Spotted by Wolfgang Solfrank. To generate a diff of this commit: cvs rdiff -

CVS commit: src/sys/fs/tmpfs

2010-06-25 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Sat Jun 26 03:38:14 UTC 2010 Modified Files: src/sys/fs/tmpfs: tmpfs_vfsops.c Log Message: tmpfs_statvfs: hold accounting lock, since tmpfs_pages_avail() and tmpfs_bytes_max() may fluctuate while in calculations. To generate a di