Compare commits

..

No commits in common. "4bf2ec40a9a818fc273b542c1209f7b0f457a280" and "6e58a202004268cbfc20c2d16d50f0d36a883612" have entirely different histories.

View File

@ -233,12 +233,12 @@ void nn_vfs_deinit(nn_vfilesystem *fs) {
nn_dealloc(&ctx.allocator, fs, sizeof(nn_vfilesystem));
}
void nn_vfs_getLabel(nn_vfilesystem *fs, char *buf, nn_size_t *buflen, nn_errorbuf_t err) {
void nn_vfs_getLabel(nn_vfilesystem *fs, char *buf, nn_size_t *buflen) {
*buflen = fs->opts.labelLen;
nn_memcpy(buf, fs->opts.label, fs->opts.labelLen);
}
void nn_vfs_setLabel(nn_vfilesystem *fs, const char *buf, nn_size_t buflen, nn_errorbuf_t err) {
void nn_vfs_setLabel(nn_vfilesystem *fs, const char *buf, nn_size_t buflen) {
nn_memcpy(fs->opts.label, buf, buflen);
fs->opts.labelLen = buflen;
}
@ -247,7 +247,7 @@ nn_size_t nn_vfs_spaceUsed(nn_vfilesystem *fs) {
return nn_vf_spaceUsedByNode(fs->root);
}
nn_bool_t nn_vfs_isReadOnly(nn_vfilesystem *fs, nn_errorbuf_t err) {
nn_bool_t nn_vfs_isReadOnly(nn_vfilesystem *fs) {
return fs->opts.isReadOnly;
}