You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* ipfs filestore fix [<obj>]... - Verify objects in filestore and remove bad links
* Option --remove-bad-blocks for 'ipfs filestore verify'
* fix call to DeleteBlock
* action of --remove-bad-blocks in output only when option specified
* Add sharness test for removing bad blocks
---------
Co-authored-by: Andrew Gillis <[email protected]>
@@ -118,6 +119,10 @@ error: there was some other problem reading the file
118
119
missing: <obj> could not be found in the filestore
119
120
ERROR: internal error, most likely due to a corrupt database
120
121
122
+
Where <action> is present only when removing bad blocks and is one of:
123
+
remove: link to the block will be removed from datastore
124
+
keep: keep link, nothing to do
125
+
121
126
For ERROR entries the error will also be printed to stderr.
122
127
`,
123
128
},
@@ -126,15 +131,18 @@ For ERROR entries the error will also be printed to stderr.
126
131
},
127
132
Options: []cmds.Option{
128
133
cmds.BoolOption(fileOrderOptionName, "verify the objects based on the order of the backing file"),
134
+
cmds.BoolOption(removeBadBlocksOptionName, "remove bad blocks. WARNING: This may remove pinned data. You should run 'ipfs pin verify' after running this command and correct any issues."),
129
135
},
130
136
Run: func(req*cmds.Request, res cmds.ResponseEmitter, env cmds.Environment) error {
0 commit comments