clean up and standardize types across the codebase, unify atomic operations, improve UTF-8 handling throughout the system, remove obsolete input and named queue interfaces, redesign process preparation and creation, tighten IPC and service boundaries, improve error handling and reliability, minor documentation cleanup, fix doom surfaces, fix panic in ini parsing.
This commit is contained in:
1 parent
899225f551
commit
c0ad63c27f
226 files changed
+6562
-4147
No files matched your search
@@ -1,5 +1,6 @@
|
||||
// RSSRV mounted-volume publication and /Device/HarddiskVolumeN synchronization.
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "rssrv_internal.h"
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -23,12 +24,12 @@ static RSSRV_VOLUME_PUBLICATION* RssrvFindPublishedVolume(RSSRV_VOLUME_STATE* vo
|
||||
}
|
||||
|
||||
// Returns whether one kernel volume instance is present in the current manager snapshot.
|
||||
static int RssrvSnapshotContainsVolume(const SYS_VOLUME_INFO* snapshot, uint32_t count, uint32_t instanceId) {
|
||||
static bool RssrvSnapshotContainsVolume(const SYS_VOLUME_INFO* snapshot, uint32_t count, uint32_t instanceId) {
|
||||
for (uint32_t i = 0; i < count; ++i) {
|
||||
if (snapshot[i].InstanceId == instanceId)
|
||||
return 1;
|
||||
return true;
|
||||
}
|
||||
return 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Builds one RSSRV-local /Device/HarddiskVolumeN name without introducing a formatting-runtime dependency.
|
||||
@@ -272,7 +273,7 @@ KSTATUS RssrvVolumesStartWorker(RSSRV_VOLUME_STATE* volumes) {
|
||||
}
|
||||
|
||||
// Returns whether a path belongs to the RSSRV-owned automatic mounted-volume naming family.
|
||||
int RssrvVolumesOwnPath(const char* path, uint32_t length) {
|
||||
bool RssrvVolumesOwnPath(const char* path, uint32_t length) {
|
||||
static const char prefix[] = "/Device/HarddiskVolume";
|
||||
uint32_t prefixLength = (uint32_t)(sizeof(prefix) - 1u);
|
||||
return path && length >= prefixLength && memcmp(path, prefix, prefixLength) == 0;
|
||||
|
||||
Reference in new issue
Block a user