vfs: advisory locking + flock syscall

This commit is contained in:
Matheus
2025-09-12 00:34:49 -03:00
parent 39ba23f572
commit b6e76f3d1f
14 changed files with 319 additions and 13 deletions
+5
View File
@@ -1823,6 +1823,10 @@ static int ext2_unlock(vnode_t *vnode) {
return 0;
}
static int ext2_advlock(vnode_t *node, int op, advlock_t *advlock) {
return vfs_advlock(node, op, advlock);
}
static int ext2_inactive(vnode_t *vnode) {
ext2node_t *node = (ext2node_t *)vnode;
ext2fs_t *fs = (ext2fs_t *)vnode->vfs;
@@ -2010,6 +2014,7 @@ static vops_t vnops = {
.getpage = ext2_getpage,
.putpage = ext2_putpage,
.sync = ext2_sync,
.advlock = ext2_advlock,
.lock = ext2_lock,
.unlock = ext2_unlock
};