Add support for read/write node locking

This commit is contained in:
Benjamin Fleischer 2022-04-22 16:24:32 +02:00
parent d926daab79
commit 68574900ec
5 changed files with 8 additions and 3 deletions

View File

@ -909,7 +909,7 @@ loopback_renamex(const char *path1, const char *path2, unsigned int flags)
void *
loopback_init(struct fuse_conn_info *conn)
{
conn->want |= FUSE_CAP_VOL_RENAME | FUSE_CAP_XTIMES;
conn->want |= FUSE_CAP_VOL_RENAME | FUSE_CAP_XTIMES | FUSE_CAP_NODE_RWLOCK;
#ifdef FUSE_ENABLE_CASE_INSENSITIVE
if (loopback.case_insensitive) {

View File

@ -1,5 +1,5 @@
Copyright 2007-2008 Google Inc.
Copyright 2011-2021 Benjamin Fleischer
Copyright 2011-2022 Benjamin Fleischer
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the

View File

@ -338,6 +338,9 @@
[attribs setObject:[NSNumber numberWithBool:YES]
forKey:kGMUserFileSystemVolumeSupportsSetVolumeNameKey];
[attribs setObject:[NSNumber numberWithBool:YES]
forKey:kGMUserFileSystemVolumeSupportsReadWriteNodeLockingKey];
return attribs;
}
return nil;

View File

@ -1,5 +1,5 @@
Copyright 2017 KF Interactive GmbH
Copyright 2018-2021 Benjamin Fleischer
Copyright 2018-2022 Benjamin Fleischer
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

View File

@ -237,6 +237,8 @@ final class LoopbackFS: NSObject {
attributes[FileAttributeKey(rawValue: kGMUserFileSystemVolumeSupportsSetVolumeNameKey)] = true
attributes[FileAttributeKey(rawValue: kGMUserFileSystemVolumeSupportsReadWriteNodeLockingKey)] = true
return attributes
}