Skip to content

Commit

Permalink
Release 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
extratype committed Apr 23, 2021
1 parent 4d9e3e0 commit 77f0a69
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ I'm not responsible for the data stored using chunkdisk!

* MAKE A BACKUP of `.chunkdisk` file. Chunkdisk reads it only once when it's mounted. It can be read, modified and even deleted by others while the disk is mounted.
* DO NOT add, remove and move around chunk files when the disk is mounted. Doing so confuses chunkdisk and causes I/O errors.
* Chunks in use (or recently used) are write-protected. You may read chunks anytime (may not be up to date), but you SHOULD NOT modify them directly when the disk is mounted.
* DO NOT directly modify chunk files. They are NOT write-protected even when being used.

## `.chunkdisk` File Specs

Expand All @@ -40,12 +40,12 @@ I'm not responsible for the data stored using chunkdisk!
```

* UTF-8 encoding
* Disk size and chunk size must be a multiple of 512.
* Disk size and chunk size must be a multiple of 4096.
* The sum of max. number of chunks must be at least (Disk size) / (Chunk size) + surplus (0 ~ 1).

## Issues

* I/O is single-threaded due to [the WinSpd issue](https://github.com/billziss-gh/winspd/issues/10). The performance would be fine except for multi-threaded random I/Os with NVMe SSDs.
* Random I/O performance is not great with SSDs.

## Notes and Tips

Expand Down
3 changes: 2 additions & 1 deletion chunkdisk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* TRIM (Unmap): make chunk empty if whole, fill zero otherwise
* TODO: check partition -> TRIM -> shrink -> delete orphan empty chunks
* TODO: sparse chunk
* TODO: asynchronous (overlapped) file operations
*/

#include <type_traits>
Expand Down Expand Up @@ -1634,7 +1635,7 @@ static void BufferFree(PVOID Pointer)
static DWORD CreateChunkDiskStorageUnit(ChunkDisk* cdisk, BOOLEAN write_protected, PWSTR pipe_name)
{
const wchar_t ProductId[] = L"ChunkDisk";
const wchar_t ProductRevision[] = L"0.1";
const wchar_t ProductRevision[] = L"0.4";
SPD_STORAGE_UNIT_PARAMS unit_params;

memset(&unit_params, 0, sizeof unit_params);
Expand Down
8 changes: 4 additions & 4 deletions chunkdisk.rc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <winver.h>

VS_VERSION_INFO VERSIONINFO
FILEVERSION 0,3,0,0
PRODUCTVERSION 0,3,0,0
FILEVERSION 0,4,0,0
PRODUCTVERSION 0,4,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -18,12 +18,12 @@ BEGIN
BLOCK "040904b0"
BEGIN
VALUE "FileDescription", "chunkdisk"
VALUE "FileVersion", "0.3.0.0"
VALUE "FileVersion", "0.4.0.0"
VALUE "InternalName", "chunkdisk.exe"
VALUE "LegalCopyright", "Copyright (C) 2021 extratype"
VALUE "OriginalFilename", "chunkdisk.exe"
VALUE "ProductName", "chunkdisk"
VALUE "ProductVersion", "0.3.0.0"
VALUE "ProductVersion", "0.4.0.0"
END
END
BLOCK "VarFileInfo"
Expand Down

0 comments on commit 77f0a69

Please sign in to comment.