#
0cea7c3a |
| 18-Sep-2021 |
christos <christos@NetBSD.org> |
Change the default for ACLs to be posix1e instead of nfsv4 to match FreeBSD. Requested by chuq.
|
#
4dd43ac9 |
| 05-Jul-2020 |
christos <christos@NetBSD.org> |
mention shared bit.
|
#
b9c1fd7f |
| 16-May-2020 |
christos <christos@NetBSD.org> |
Add ACL support for FFS. From FreeBSD.
|
#
80d1f210 |
| 04-Apr-2020 |
ad <ad@NetBSD.org> |
Merge the remaining changes from the ad-namecache branch, affecting namei() and getcwd():
- push vnode locking back as far as possible. - do most lookups directly in the namecache, avoiding vnode lo
Merge the remaining changes from the ad-namecache branch, affecting namei() and getcwd():
- push vnode locking back as far as possible. - do most lookups directly in the namecache, avoiding vnode locks & refs. - don't block new refs to vnodes across VOP_INACTIVE(). - get shared locks for VOP_LOOKUP() if the file system supports it. - correct lock types for VOP_ACCESS() / VOP_GETATTR() in a few places.
Possible future enhancements:
- make the lookups lockless. - support dotdot lookups by being lockless and inferring absence of chroot. - maybe make it work for layered file systems. - avoid vnode references at the root & cwd.
show more ...
|
#
6e9babea |
| 20-Feb-2019 |
hannken <hannken@NetBSD.org> |
Attach "mnt_transinfo" to "dead_rootmount" so every mount has a valid "mnt_transinfo" and remove now unneeded flag IMNT_HAS_TRANS.
Run fstrans_start()/fstrans_done() on dead_rootmount if FSTRANS_DEA
Attach "mnt_transinfo" to "dead_rootmount" so every mount has a valid "mnt_transinfo" and remove now unneeded flag IMNT_HAS_TRANS.
Run fstrans_start()/fstrans_done() on dead_rootmount if FSTRANS_DEAD_ENABLED. Should become the default for DIAGNOSTIC in the future.
show more ...
|
#
59a9e119 |
| 09-Jan-2018 |
christos <christos@NetBSD.org> |
Merge autofs support from: Tomohiro Kusumi XXX: Does not work yet
|
#
514d2707 |
| 01-Mar-2017 |
hannken <hannken@NetBSD.org> |
Change the protocol to update a mounted file system from read-write to read-only and vice versa:
- Add an internal flag IMNT_WANTRDONLY. - Set either IMNT_WANTRDWR or IMNT_WANTRDONLY if going from o
Change the protocol to update a mounted file system from read-write to read-only and vice versa:
- Add an internal flag IMNT_WANTRDONLY. - Set either IMNT_WANTRDWR or IMNT_WANTRDONLY if going from or to read-only. - After successfull call to VFS_MOUNT() set or clear MNT_RDONLY.
Adapt tmpfs and rumpfs to the new protocol. Other file systems will be updated when they get the IMNT_CAN_RWTORO property.
Welcome to 7.99.64
show more ...
|
#
21baa4e5 |
| 08-Oct-2016 |
ast <ast@NetBSD.org> |
white space
|
#
c9493c34 |
| 06-May-2015 |
hannken <hannken@NetBSD.org> |
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 vno
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@
show more ...
|
#
0b5eb080 |
| 26-Nov-2012 |
drochner <drochner@NetBSD.org> |
allow to enable ffs "discard" by update mounts, make the flag visible to userland
|
#
8feb2e9e |
| 19-Oct-2012 |
drochner <drochner@NetBSD.org> |
Implement experimental support to pass notifications that a file was deleted from the filesystem to the disk driver, commonly known as "discard" or "trim". fs/driver support is in ffs and ata wd for
Implement experimental support to pass notifications that a file was deleted from the filesystem to the disk driver, commonly known as "discard" or "trim". fs/driver support is in ffs and ata wd for now. This is what was posted here: http://mail-index.netbsd.org/tech-kern/2012/02/28/msg012813.html with minor cleanup, and the global switch replaced by a mount option.
show more ...
|
#
0825226b |
| 18-Nov-2011 |
christos <christos@NetBSD.org> |
- collect the long (and sometimes incomplete) lists of basic flags into the header file and use that. - sort the list of basic flags - add MNT_RELATIME, ST_RELATIME - mask all the op flags, for sym
- collect the long (and sometimes incomplete) lists of basic flags into the header file and use that. - sort the list of basic flags - add MNT_RELATIME, ST_RELATIME - mask all the op flags, for symmetry.
The real bit difference is (which is harmless): - mount was missing MNT_EXTATTR - update sets MNT_RDONLY twice - ops also could or in MNT_GETARGS, but this is impossible because the code would have chosen to do getargs then.
show more ...
|
#
c5dd68c6 |
| 17-Jun-2011 |
manu <manu@NetBSD.org> |
Add mount -o extattr option to enable extended attributs (corrently only for UFS1). Remove kernel option for EA backing store autocreation and do it by default. Add a sysctl so that autocreated attri
Add mount -o extattr option to enable extended attributs (corrently only for UFS1). Remove kernel option for EA backing store autocreation and do it by default. Add a sysctl so that autocreated attriutr size can be modified.
show more ...
|
#
8df7804c |
| 13-Jan-2011 |
pooka <pooka@NetBSD.org> |
allow file system to decide if it can be downgraded from r/w to r/o
|
#
c5fb8639 |
| 13-Jan-2011 |
pooka <pooka@NetBSD.org> |
fix incorrect value of IMNT_MPSAFE in __IMNT_FLAG_BITS
|
#
d9e2795e |
| 03-Sep-2008 |
gmcgarry <gmcgarry@NetBSD.org> |
Structures with incomplete members is an obscure gcc extension. Replace the flexible array with a zero-length array. Now compiles on pcc with gcc compatibility.
|
#
0800f2fb |
| 31-Jul-2008 |
simonb <simonb@NetBSD.org> |
Be consistent with #define<tab>.
|
#
36d65f11 |
| 31-Jul-2008 |
simonb <simonb@NetBSD.org> |
Merge the simonb-wapbl branch. From the original branch commit:
Add Wasabi System's WAPBL (Write Ahead Physical Block Logging) journaling code. Originally written by Darrin B. Jewell while
Merge the simonb-wapbl branch. From the original branch commit:
Add Wasabi System's WAPBL (Write Ahead Physical Block Logging) journaling code. Originally written by Darrin B. Jewell while at Wasabi and updated to -current by Antti Kantee, Andy Doran, Greg Oster and Simon Burge.
OK'd by core@, releng@.
show more ...
|
#
42d06267 |
| 06-May-2008 |
ad <ad@NetBSD.org> |
PR kern/38141 lookup/vfs_busy acquire rwlock recursively
Simplify the mount locking. Remove all the crud to deal with recursion on the mount lock, and crud to deal with unmount as another weirdo loc
PR kern/38141 lookup/vfs_busy acquire rwlock recursively
Simplify the mount locking. Remove all the crud to deal with recursion on the mount lock, and crud to deal with unmount as another weirdo lock.
Hopefully this will once and for all fix the deadlocks with this. With this commit there are two locks on each mount:
- krwlock_t mnt_unmounting. This is used to prevent unmount across critical sections like getnewvnode(). It's only ever read locked with rw_tryenter(), and is only ever write locked in dounmount(). A write hold can't be taken on this lock if the current LWP could hold a vnode lock.
- kmutex_t mnt_updating. This is taken by threads updating the mount, for example when going r/o -> r/w, and is only present to serialize updates. In order to take this lock, a read hold must first be taken on mnt_unmounting, and the two need to be held across the operation.
One effect of this change: previously if an unmount failed, we would make a half hearted attempt to back out of it gracefully, but that was unlikely to work in a lot of cases. Now while an unmount that will be aborted is in progress, new file operations within the mount will fail instead of being delayed. That is unlikely to be a problem though, because if the admin requests unmount of a file system then s(he) has made a decision to deny access to the resource.
show more ...
|
#
928a6b20 |
| 30-Apr-2008 |
ad <ad@NetBSD.org> |
PR kern/38135 vfs_busy/vfs_trybusy confusion
The previous fix worked, but it opened a window where mounts could have disappeared from mountlist while the caller was traversing it using vfs_trybusy()
PR kern/38135 vfs_busy/vfs_trybusy confusion
The previous fix worked, but it opened a window where mounts could have disappeared from mountlist while the caller was traversing it using vfs_trybusy(). Fix that.
show more ...
|
#
7dad9f73 |
| 10-Oct-2007 |
ad <ad@NetBSD.org> |
Merge from vmlocking:
- Split vnode::v_flag into three fields, depending on field locking. - simple_lock -> kmutex in a few places. - Fix some simple locking problems.
|
#
8e2e7c23 |
| 08-May-2007 |
pooka <pooka@NetBSD.org> |
update comment in struct fid to say the alignment is for prehistoric compat: short + short doesn't mean longword alignment
|
#
fc6776f3 |
| 08-Apr-2007 |
hannken <hannken@NetBSD.org> |
Remove now obsolete vn_start_write() and vn_finished_write() and corresponding flags.
Revert softdep_trackbufs() to its state before vn_start_write() was added.
Remove from struct mount now unneede
Remove now obsolete vn_start_write() and vn_finished_write() and corresponding flags.
Revert softdep_trackbufs() to its state before vn_start_write() was added.
Remove from struct mount now unneeded flags IMNT_SUSPEND* and members mnt_writeopcountupper, mnt_writeopcountlower and mnt_leaf.
Welcome to 4.99.17
show more ...
|
#
1b9c6382 |
| 19-Jan-2007 |
hannken <hannken@NetBSD.org> |
New file system suspension API to replace vn_start_write and vn_finished_write. The suspension helpers are now put into file system specific operations. This means every file system not supporting th
New file system suspension API to replace vn_start_write and vn_finished_write. The suspension helpers are now put into file system specific operations. This means every file system not supporting these helpers cannot be suspended and therefore snapshots are no longer possible.
Implemented for file systems of type ffs.
The new API is enabled on a kernel option NEWVNGATE. This option is not enabled by default in any kernel config.
Presented and discussed on tech-kern with much input from Bill Studenmund <wrstuden@netbsd.org> and YAMAMOTO Takashi <yamt@netbsd.org>.
Welcome to 4.99.9 (new vfs op vfs_suspendctl).
show more ...
|
#
42489b9a |
| 26-Dec-2006 |
yamt <yamt@NetBSD.org> |
- shorten the period to modify mnt_flag temporarily. - desupport MNT_EXPORTED without MNT_UPDATE explicitly. - fix a comment. - unwrap short lines.
|