From 2546446d51bd42bf13ce4d17926742545813dc51 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 5 Nov 2023 10:53:42 +0200 Subject: feat(tvix/castore): bump [Directory,File]Node size to u64 Having more than 4GiB files is quite possible (think about the NixOS graphical installer, and an uncompressed iso of it). No wire format changes. Change-Id: Ia78a07e4c554e91b93c5b9f8533266e4bd7f22b6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9950 Reviewed-by: tazjin Tested-by: BuildkiteCI --- tvix/castore/protos/castore.proto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tvix/castore/protos/castore.proto') diff --git a/tvix/castore/protos/castore.proto b/tvix/castore/protos/castore.proto index 34885964f08f..e05c43ee2f22 100644 --- a/tvix/castore/protos/castore.proto +++ b/tvix/castore/protos/castore.proto @@ -38,7 +38,7 @@ message DirectoryNode { // A credulous implementation won't reject an excessive size, but this is // harmless: you'll have some ordinals without nodes. Undersizing is // obvious and easy to reject: you won't have an ordinal for some nodes. - uint32 size = 3; + uint64 size = 3; } // A FileNode represents a regular or executable file in a Directory. @@ -48,7 +48,7 @@ message FileNode { // The blake3 digest of the file contents bytes digest = 2; // The file content size - uint32 size = 3; + uint64 size = 3; // Whether the file is executable bool executable = 4; } -- cgit 1.4.1