From 30981f4665cda7bff8b7d6a3b108f0dd39156028 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 21 Oct 2026 16:00:29 -0700 Subject: [PATCH] filer.conf: add inode_index path option --- other/java/client/src/main/proto/filer.proto | 1 + weed/pb/filer.proto | 1 + weed/pb/filer_pb/filer.pb.go | 18 ++++++++++++++---- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/other/java/client/src/main/proto/filer.proto b/other/java/client/src/main/proto/filer.proto index a327bdb17c..9a9813b956 100644 --- a/other/java/client/src/main/proto/filer.proto +++ b/other/java/client/src/main/proto/filer.proto @@ -783,6 +783,7 @@ message FilerConf { optional bool worm = 14; uint64 worm_grace_period_seconds = 15; uint64 worm_retention_time_seconds = 16; + bool inode_index = 17; } repeated PathConf locations = 2; } diff --git a/weed/pb/filer.proto b/weed/pb/filer.proto index dca77d2eca..c693ab93eb 100644 --- a/weed/pb/filer.proto +++ b/weed/pb/filer.proto @@ -798,6 +798,7 @@ message FilerConf { optional bool worm = 14; uint64 worm_grace_period_seconds = 15; uint64 worm_retention_time_seconds = 16; + bool inode_index = 17; } repeated PathConf locations = 2; } diff --git a/weed/pb/filer_pb/filer.pb.go b/weed/pb/filer_pb/filer.pb.go index 94a21acc92..abe1cfef29 100644 --- a/weed/pb/filer_pb/filer.pb.go +++ b/weed/pb/filer_pb/filer.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 -// protoc v7.35.0 +// protoc v3.21.12 // source: filer.proto package filer_pb @@ -7120,6 +7120,7 @@ type FilerConf_PathConf struct { Worm *bool `protobuf:"varint,14,opt,name=worm,proto3,oneof" json:"worm,omitempty"` WormGracePeriodSeconds uint64 `protobuf:"varint,15,opt,name=worm_grace_period_seconds,json=wormGracePeriodSeconds,proto3" json:"worm_grace_period_seconds,omitempty"` WormRetentionTimeSeconds uint64 `protobuf:"varint,16,opt,name=worm_retention_time_seconds,json=wormRetentionTimeSeconds,proto3" json:"worm_retention_time_seconds,omitempty"` + InodeIndex bool `protobuf:"varint,17,opt,name=inode_index,json=inodeIndex,proto3" json:"inode_index,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -7266,6 +7267,13 @@ func (x *FilerConf_PathConf) GetWormRetentionTimeSeconds() uint64 { return 0 } +func (x *FilerConf_PathConf) GetInodeIndex() bool { + if x != nil { + return x.InodeIndex + } + return false +} + var File_filer_proto protoreflect.FileDescriptor const file_filer_proto_rawDesc = "" + @@ -7764,10 +7772,10 @@ const file_filer_proto_rawDesc = "" + "\x03key\x18\x01 \x01(\fR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\fR\x05value\"%\n" + "\rKvPutResponse\x12\x14\n" + - "\x05error\x18\x01 \x01(\tR\x05error\"\xc0\x05\n" + + "\x05error\x18\x01 \x01(\tR\x05error\"\xe1\x05\n" + "\tFilerConf\x12\x18\n" + "\aversion\x18\x01 \x01(\x05R\aversion\x12:\n" + - "\tlocations\x18\x02 \x03(\v2\x1c.filer_pb.FilerConf.PathConfR\tlocations\x1a\xdc\x04\n" + + "\tlocations\x18\x02 \x03(\v2\x1c.filer_pb.FilerConf.PathConfR\tlocations\x1a\xfd\x04\n" + "\bPathConf\x12'\n" + "\x0flocation_prefix\x18\x01 \x01(\tR\x0elocationPrefix\x12\x1e\n" + "\n" + @@ -7788,7 +7796,9 @@ const file_filer_proto_rawDesc = "" + "\x16disable_chunk_deletion\x18\r \x01(\bR\x14disableChunkDeletion\x12\x17\n" + "\x04worm\x18\x0e \x01(\bH\x00R\x04worm\x88\x01\x01\x129\n" + "\x19worm_grace_period_seconds\x18\x0f \x01(\x04R\x16wormGracePeriodSeconds\x12=\n" + - "\x1bworm_retention_time_seconds\x18\x10 \x01(\x04R\x18wormRetentionTimeSecondsB\a\n" + + "\x1bworm_retention_time_seconds\x18\x10 \x01(\x04R\x18wormRetentionTimeSeconds\x12\x1f\n" + + "\vinode_index\x18\x11 \x01(\bR\n" + + "inodeIndexB\a\n" + "\x05_worm\"\xba\x01\n" + "&CacheRemoteObjectToLocalClusterRequest\x12\x1c\n" + "\tdirectory\x18\x01 \x01(\tR\tdirectory\x12\x12\n" +