@@ -347,9 +347,13 @@ impl<'a, W: std::io::Write> OstreeTarWriter<'a, W> {
347
347
Ok ( ( ) )
348
348
}
349
349
350
- /// Export xattrs to the tar stream, return whether content was written.
350
+ /// Export xattrs in ostree-container style format, which is a .xattrs file.
351
+ /// This is different from xattrs which may appear as e.g. PAX metadata, which we don't use
352
+ /// at the moment.
353
+ ///
354
+ /// Return whether content was written.
351
355
#[ context( "Writing xattrs" ) ]
352
- fn append_xattrs ( & mut self , checksum : & str , xattrs : & glib:: Variant ) -> Result < bool > {
356
+ fn append_ostree_xattrs ( & mut self , checksum : & str , xattrs : & glib:: Variant ) -> Result < bool > {
353
357
let xattrs_data = xattrs. data_as_bytes ( ) ;
354
358
let xattrs_data = xattrs_data. as_ref ( ) ;
355
359
@@ -397,7 +401,7 @@ impl<'a, W: std::io::Write> OstreeTarWriter<'a, W> {
397
401
// The xattrs objects need to be exported before the regular object they
398
402
// refer to. Otherwise the importing logic won't have the xattrs available
399
403
// when importing file content.
400
- self . append_xattrs ( checksum, & xattrs) ?;
404
+ self . append_ostree_xattrs ( checksum, & xattrs) ?;
401
405
402
406
if let Some ( instream) = instream {
403
407
ensure ! ( meta. file_type( ) == gio:: FileType :: Regular ) ;
0 commit comments