-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
many: finish initial valifs driver, add zstd submodule
- Loading branch information
1 parent
2b4bec2
commit 9299546
Showing
12 changed files
with
415 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/** | ||
* Copyright 2022, Philip Meulengracht | ||
* | ||
* This program is free software : you can redistribute it and / or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation ? , either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* Mount Service Definitions & Structures | ||
* - This header describes the base structure, prototypes | ||
* and functionality, refer to the individual things for descriptions | ||
*/ | ||
|
||
#ifndef __OS_SERVICE_MOUNT_H__ | ||
#define __OS_SERVICE_MOUNT_H__ | ||
|
||
#include <os/osdefs.h> | ||
#include <os/types/mount.h> | ||
#include <ds/mstring.h> | ||
|
||
_CODE_BEGIN | ||
|
||
/** | ||
* @brief | ||
* @param path | ||
* @param at | ||
* @param type | ||
* @param flags | ||
* @return | ||
*/ | ||
CRTDECL(oserr_t, | ||
Mount( | ||
_In_ mstring_t* path, | ||
_In_ mstring_t* at, | ||
_In_ mstring_t* type, | ||
_In_ unsigned int flags)); | ||
|
||
/** | ||
* @brief | ||
* @param path | ||
* @return | ||
*/ | ||
CRTDECL(oserr_t, | ||
Unmount( | ||
_In_ mstring_t* path)); | ||
|
||
_CODE_END | ||
#endif //!__OS_SERVICE_MOUNT_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* Copyright 2022, Philip Meulengracht | ||
* | ||
* This program is free software : you can redistribute it and / or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation ? , either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef __OS_TYPES_MOUNT_H__ | ||
#define __OS_TYPES_MOUNT_H__ | ||
|
||
#define MOUNT_FLAG_READ 0x1 | ||
#define MOUNT_FLAG_WRITE 0x2 | ||
|
||
#endif //!__OS_TYPES_MOUNT_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
add_filesystem_target(valifs | ||
main.c | ||
filter.c | ||
main.c | ||
) | ||
target_link_libraries(valifs PRIVATE vafs) | ||
target_link_libraries(valifs PRIVATE vafs zstd-api libzstd_static) | ||
deploy_file_to_initrd(valifs "modules" valifs.yaml) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.