From 71bfad0bc695936e523fc20fb4463d3ce0022609 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Fri, 4 Sep 2020 11:09:36 +0200 Subject: [PATCH] cmd/stindex: Add dumping folder meta --- cmd/stindex/dump.go | 8 +++- lib/db/structs.go | 28 +++++++++++ lib/db/structs.pb.go | 111 +++++++++++++++++++++---------------------- lib/db/structs.proto | 1 + 4 files changed, 91 insertions(+), 57 deletions(-) diff --git a/cmd/stindex/dump.go b/cmd/stindex/dump.go index 9ce234bd9..44514dabd 100644 --- a/cmd/stindex/dump.go +++ b/cmd/stindex/dump.go @@ -91,7 +91,13 @@ func dump(ldb backend.Backend) { case db.KeyTypeFolderMeta: folder := binary.BigEndian.Uint32(key[1:]) - fmt.Printf("[foldermeta] F:%d V:%x\n", folder, it.Value()) + fmt.Printf("[foldermeta] F:%d", folder) + var cs db.CountsSet + if err := cs.Unmarshal(it.Value()); err != nil { + fmt.Printf(" (invalid)\n") + } else { + fmt.Printf(" V:%v\n", cs) + } case db.KeyTypeMiscData: fmt.Printf("[miscdata] K:%q V:%q\n", key[1:], it.Value()) diff --git a/lib/db/structs.go b/lib/db/structs.go index ce4c8e428..ddd84faff 100644 --- a/lib/db/structs.go +++ b/lib/db/structs.go @@ -12,6 +12,7 @@ package db import ( "bytes" "fmt" + "strings" "time" "github.com/syncthing/syncthing/lib/protocol" @@ -186,6 +187,33 @@ func (c Counts) TotalItems() int32 { return c.Files + c.Directories + c.Symlinks + c.Deleted } +func (c Counts) String() string { + dev, _ := protocol.DeviceIDFromBytes(c.DeviceID) + var flags strings.Builder + if c.LocalFlags&needFlag != 0 { + flags.WriteString("Need") + } + if c.LocalFlags&protocol.FlagLocalIgnored != 0 { + flags.WriteString("Ignored") + } + if c.LocalFlags&protocol.FlagLocalMustRescan != 0 { + flags.WriteString("Rescan") + } + if c.LocalFlags&protocol.FlagLocalReceiveOnly != 0 { + flags.WriteString("Recvonly") + } + if c.LocalFlags&protocol.FlagLocalUnsupported != 0 { + flags.WriteString("Unsupported") + } + if c.LocalFlags != 0 { + flags.WriteString(fmt.Sprintf("(%x)", c.LocalFlags)) + } + if flags.Len() == 0 { + flags.WriteString("---") + } + return fmt.Sprintf("{Device:%v, Files:%d, Dirs:%d, Symlinks:%d, Del:%d, Bytes:%d, Seq:%d, Flags:%s}", dev, c.Files, c.Directories, c.Symlinks, c.Deleted, c.Bytes, c.Sequence, flags.String()) +} + // Equal compares the numbers only, not sequence/dev/flags. func (c Counts) Equal(o Counts) bool { return c.Files == o.Files && c.Directories == o.Directories && c.Symlinks == o.Symlinks && c.Deleted == o.Deleted && c.Bytes == o.Bytes diff --git a/lib/db/structs.pb.go b/lib/db/structs.pb.go index 0747c2a99..e8b1e197a 100644 --- a/lib/db/structs.pb.go +++ b/lib/db/structs.pb.go @@ -247,9 +247,8 @@ type Counts struct { LocalFlags uint32 `protobuf:"varint,18,opt,name=localFlags,proto3" json:"localFlags,omitempty"` } -func (m *Counts) Reset() { *m = Counts{} } -func (m *Counts) String() string { return proto.CompactTextString(m) } -func (*Counts) ProtoMessage() {} +func (m *Counts) Reset() { *m = Counts{} } +func (*Counts) ProtoMessage() {} func (*Counts) Descriptor() ([]byte, []int) { return fileDescriptor_e774e8f5f348d14d, []int{5} } @@ -409,61 +408,61 @@ func init() { func init() { proto.RegisterFile("structs.proto", fileDescriptor_e774e8f5f348d14d) } var fileDescriptor_e774e8f5f348d14d = []byte{ - // 861 bytes of a gzipped FileDescriptorProto + // 863 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x4f, 0x8f, 0xdb, 0x54, - 0x10, 0x8f, 0x9b, 0xff, 0xe3, 0x64, 0xdb, 0xbe, 0x76, 0x57, 0x66, 0x25, 0x1c, 0xcb, 0x08, 0x61, + 0x10, 0x8f, 0x9b, 0xff, 0xe3, 0x64, 0xdb, 0xbe, 0x76, 0x57, 0x66, 0x25, 0x1c, 0x2b, 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f, 0x3e, 0x84, 0x23, - 0x99, 0xad, 0x22, 0x1e, 0xbf, 0x9c, 0xa6, 0x7e, 0xb2, 0x60, 0xa9, 0x75, 0x1f, 0x87, 0xef, 0xe7, - 0xe8, 0x33, 0x04, 0xc9, 0x00, 0xcc, 0x20, 0x12, 0xe1, 0x4b, 0x39, 0x5d, 0xfa, 0x72, 0x69, 0x11, - 0xc7, 0xf0, 0x7a, 0x14, 0x34, 0xf4, 0x95, 0x2f, 0x97, 0xe4, 0x63, 0x68, 0xa4, 0xd9, 0x9a, 0xa1, - 0x02, 0x8e, 0xce, 0x4e, 0xf6, 0x2d, 0x95, 0x2c, 0x67, 0x6b, 0x46, 0x31, 0x87, 0x38, 0x60, 0xae, - 0x59, 0xb2, 0xe2, 0x52, 0xef, 0xb1, 0xe1, 0x18, 0x5e, 0x9f, 0x56, 0x21, 0x55, 0xae, 0x64, 0x30, - 0x96, 0x96, 0xe9, 0x18, 0x5e, 0x73, 0x4f, 0xc2, 0x37, 0x92, 0x8c, 0x40, 0x17, 0x9f, 0xe2, 0x6e, - 0xfa, 0x2a, 0x3e, 0xbe, 0xb7, 0xdb, 0x0e, 0x7a, 0xd4, 0xbf, 0x1a, 0xab, 0xc0, 0x05, 0x7f, 0xc5, - 0x68, 0x37, 0x28, 0x4c, 0x55, 0x33, 0x12, 0xa1, 0x1f, 0x4d, 0xe7, 0x91, 0xbf, 0x90, 0xd6, 0xdf, - 0x6d, 0x2c, 0x0a, 0x88, 0x3d, 0x51, 0x10, 0x71, 0xa1, 0x97, 0x13, 0xa6, 0x67, 0xfc, 0xa7, 0x8d, - 0x43, 0x9a, 0x39, 0x88, 0x53, 0x56, 0xa4, 0xde, 0xba, 0x2d, 0x75, 0x0f, 0xda, 0xb9, 0x72, 0x2d, - 0xf5, 0xae, 0x33, 0x3e, 0xda, 0x6d, 0x07, 0x40, 0xfd, 0xab, 0x89, 0x46, 0x69, 0x11, 0x56, 0x8c, - 0xc7, 0x62, 0x5a, 0x25, 0xa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 0xe8, 0x06, 0x00, 0x00, } func (m *FileVersion) Marshal() (dAtA []byte, err error) { diff --git a/lib/db/structs.proto b/lib/db/structs.proto index f21b27cd8..f9eeb7367 100644 --- a/lib/db/structs.proto +++ b/lib/db/structs.proto @@ -65,6 +65,7 @@ message IndirectionHashesOnly { // For each folder and device we keep one of these to track the current // counts and sequence. We also keep one for the global state of the folder. message Counts { + option (gogoproto.goproto_stringer) = false; int32 files = 1; int32 directories = 2; int32 symlinks = 3;