@@ -34,7 +34,7 @@ use nydus_builder::{
34
34
use nydus_rafs:: metadata:: { RafsSuper , RafsSuperConfig , RafsVersion } ;
35
35
use nydus_storage:: backend:: localfs:: LocalFs ;
36
36
use nydus_storage:: backend:: BlobBackend ;
37
- use nydus_storage:: device:: { BlobFeatures , BlobInfo } ;
37
+ use nydus_storage:: device:: BlobFeatures ;
38
38
use nydus_storage:: factory:: BlobFactory ;
39
39
use nydus_storage:: meta:: { format_blob_features, BatchContextGenerator } ;
40
40
use nydus_storage:: { RAFS_DEFAULT_CHUNK_SIZE , RAFS_MAX_CHUNK_SIZE } ;
@@ -369,7 +369,6 @@ fn prepare_cmd_args(bti_string: &'static str) -> App {
369
369
. short ( 'B' )
370
370
. long ( "bootstrap" )
371
371
. help ( "File path of RAFS meta blob/bootstrap" )
372
- . conflicts_with ( "BOOTSTRAP" )
373
372
. required ( false ) ,
374
373
)
375
374
. arg (
@@ -399,7 +398,7 @@ fn prepare_cmd_args(bti_string: &'static str) -> App {
399
398
)
400
399
. arg ( arg_output_json. clone ( ) )
401
400
)
402
- ) ;
401
+ ) ;
403
402
404
403
let app = app. subcommand (
405
404
App :: new ( "merge" )
@@ -1151,32 +1150,17 @@ impl Command {
1151
1150
bail ! ( "Invalid database URL: {}" , db_url) ;
1152
1151
}
1153
1152
1154
- let blobs : Vec < Arc < BlobInfo > > = match db_strs[ 0 ] {
1153
+ match db_strs[ 0 ] {
1155
1154
"sqlite" => {
1156
1155
let mut deduplicate: Deduplicate < SqliteDatabase > =
1157
- Deduplicate :: < SqliteDatabase > :: new ( bootstrap_path , config , db_strs[ 1 ] ) ?;
1158
- deduplicate. save_metadata ( ) ?
1156
+ Deduplicate :: < SqliteDatabase > :: new ( db_strs[ 1 ] ) ?;
1157
+ deduplicate. save_metadata ( bootstrap_path , config ) ?
1159
1158
}
1160
1159
_ => {
1161
1160
bail ! ( "Unsupported database type: {}, please use a valid database URI, such as 'sqlite:///path/to/database.db'." , db_strs[ 0 ] )
1162
1161
}
1163
1162
} ;
1164
- info ! ( "RAFS filesystem metadata is saved:" ) ;
1165
-
1166
- let mut blob_ids = Vec :: new ( ) ;
1167
- for ( idx, blob) in blobs. iter ( ) . enumerate ( ) {
1168
- info ! (
1169
- "\t {}: {}, compressed data size 0x{:x}, compressed file size 0x{:x}, uncompressed file size 0x{:x}, chunks: 0x{:x}, features: {}." ,
1170
- idx,
1171
- blob. blob_id( ) ,
1172
- blob. compressed_data_size( ) ,
1173
- blob. compressed_size( ) ,
1174
- blob. uncompressed_size( ) ,
1175
- blob. chunk_count( ) ,
1176
- format_blob_features( blob. features( ) ) ,
1177
- ) ;
1178
- blob_ids. push ( blob. blob_id ( ) . to_string ( ) ) ;
1179
- }
1163
+ info ! ( "Chunkdict metadata is saved at: {:?}" , db_url) ;
1180
1164
Ok ( ( ) )
1181
1165
}
1182
1166
0 commit comments