* [PATCH 1/2] erofs-utils: mkfs: fix double write of long xattr name prefixes
@ 2023-08-10 6:46 Jingbo Xu
2023-08-10 6:46 ` [PATCH 2/2] erofs-utils: lib: remove prototypes of removed functions Jingbo Xu
2023-08-10 7:22 ` [PATCH 1/2] erofs-utils: mkfs: fix double write of long xattr name prefixes Gao Xiang
0 siblings, 2 replies; 4+ messages in thread
From: Jingbo Xu @ 2023-08-10 6:46 UTC (permalink / raw)
To: xiang, linux-erofs
Fix double write of long xattr name prefixes in non-tarerofs mode.
Besides fix the compiling error of tar.h. Include "internal.h" to
introduce prototypes of `struct erofs_inode` and `struct erofs_sb_info`.
Fixes: 95d315fd7958 ("erofs-utils: introduce tarerofs")
Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
---
include/erofs/tar.h | 11 +++++++++++
mkfs/main.c | 3 ---
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/include/erofs/tar.h b/include/erofs/tar.h
index 8d3f8de..b7c2ef8 100644
--- a/include/erofs/tar.h
+++ b/include/erofs/tar.h
@@ -2,8 +2,15 @@
#ifndef __EROFS_TAR_H
#define __EROFS_TAR_H
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
#include <sys/stat.h>
+#include "internal.h"
+
struct erofs_pax_header {
struct stat st;
bool use_mtime;
@@ -27,4 +34,8 @@ int tarerofs_parse_tar(struct erofs_inode *root, struct erofs_tarfile *tar);
int tarerofs_reserve_devtable(struct erofs_sb_info *sbi, unsigned int devices);
int tarerofs_write_devtable(struct erofs_sb_info *sbi, struct erofs_tarfile *tar);
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/mkfs/main.c b/mkfs/main.c
index 9c2397c..c03a7a8 100644
--- a/mkfs/main.c
+++ b/mkfs/main.c
@@ -912,9 +912,6 @@ int main(int argc, char **argv)
erofs_inode_manager_init();
- if (cfg.c_extra_ea_name_prefixes)
- erofs_xattr_write_name_prefixes(&sbi, packedfile);
-
if (!tar_mode) {
err = erofs_build_shared_xattrs_from_path(&sbi, cfg.c_src_path);
if (err) {
--
2.19.1.6.gb485710b
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] erofs-utils: lib: remove prototypes of removed functions
2023-08-10 6:46 [PATCH 1/2] erofs-utils: mkfs: fix double write of long xattr name prefixes Jingbo Xu
@ 2023-08-10 6:46 ` Jingbo Xu
2023-08-10 7:38 ` Gao Xiang
2023-08-10 7:22 ` [PATCH 1/2] erofs-utils: mkfs: fix double write of long xattr name prefixes Gao Xiang
1 sibling, 1 reply; 4+ messages in thread
From: Jingbo Xu @ 2023-08-10 6:46 UTC (permalink / raw)
To: xiang, linux-erofs
Remove prototypes of those that have been deleted.
Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
---
include/erofs/tar.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/include/erofs/tar.h b/include/erofs/tar.h
index b7c2ef8..d5648f6 100644
--- a/include/erofs/tar.h
+++ b/include/erofs/tar.h
@@ -29,10 +29,7 @@ struct erofs_tarfile {
bool index_mode, aufs;
};
-int tarerofs_init_empty_dir(struct erofs_inode *inode);
int tarerofs_parse_tar(struct erofs_inode *root, struct erofs_tarfile *tar);
-int tarerofs_reserve_devtable(struct erofs_sb_info *sbi, unsigned int devices);
-int tarerofs_write_devtable(struct erofs_sb_info *sbi, struct erofs_tarfile *tar);
#ifdef __cplusplus
}
--
2.19.1.6.gb485710b
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] erofs-utils: mkfs: fix double write of long xattr name prefixes
2023-08-10 6:46 [PATCH 1/2] erofs-utils: mkfs: fix double write of long xattr name prefixes Jingbo Xu
2023-08-10 6:46 ` [PATCH 2/2] erofs-utils: lib: remove prototypes of removed functions Jingbo Xu
@ 2023-08-10 7:22 ` Gao Xiang
1 sibling, 0 replies; 4+ messages in thread
From: Gao Xiang @ 2023-08-10 7:22 UTC (permalink / raw)
To: Jingbo Xu, xiang, linux-erofs
On 2023/8/10 14:46, Jingbo Xu wrote:
> Fix double write of long xattr name prefixes in non-tarerofs mode.
>
> Besides fix the compiling error of tar.h. Include "internal.h" to
> introduce prototypes of `struct erofs_inode` and `struct erofs_sb_info`.
>
> Fixes: 95d315fd7958 ("erofs-utils: introduce tarerofs")
> Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Thanks,
Gao Xiang
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] erofs-utils: lib: remove prototypes of removed functions
2023-08-10 6:46 ` [PATCH 2/2] erofs-utils: lib: remove prototypes of removed functions Jingbo Xu
@ 2023-08-10 7:38 ` Gao Xiang
0 siblings, 0 replies; 4+ messages in thread
From: Gao Xiang @ 2023-08-10 7:38 UTC (permalink / raw)
To: Jingbo Xu, xiang, linux-erofs
On 2023/8/10 14:46, Jingbo Xu wrote:
> Remove prototypes of those that have been deleted.
>
> Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Thanks,
Gao Xiang
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-08-10 7:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-10 6:46 [PATCH 1/2] erofs-utils: mkfs: fix double write of long xattr name prefixes Jingbo Xu
2023-08-10 6:46 ` [PATCH 2/2] erofs-utils: lib: remove prototypes of removed functions Jingbo Xu
2023-08-10 7:38 ` Gao Xiang
2023-08-10 7:22 ` [PATCH 1/2] erofs-utils: mkfs: fix double write of long xattr name prefixes Gao Xiang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox