It's still an experimental feature for now. Also set the default
logging level to 2 in order to print warn messages.

Signed-off-by: Gao Xiang <[email protected]>
---
 lib/compress.c   | 2 ++
 lib/config.c     | 2 +-
 man/mkfs.erofs.1 | 3 ++-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/compress.c b/lib/compress.c
index 654286d3f33e..b8bb89e7ae9d 100644
--- a/lib/compress.c
+++ b/lib/compress.c
@@ -619,6 +619,8 @@ int z_erofs_compress_init(struct erofs_buffer_head *sb_bh)
                mapheader.h_advise |= Z_EROFS_ADVISE_BIG_PCLUSTER_1;
                if (!cfg.c_legacy_compress)
                        mapheader.h_advise |= Z_EROFS_ADVISE_BIG_PCLUSTER_2;
+
+               erofs_warn("EXPERIMENTAL big pcluster feature in use. Use at 
your own risk!");
        }
        mapheader.h_algorithmtype = algorithmtype[1] << 4 |
                                          algorithmtype[0];
diff --git a/lib/config.c b/lib/config.c
index d733cc366794..bc0afa284807 100644
--- a/lib/config.c
+++ b/lib/config.c
@@ -17,7 +17,7 @@ void erofs_init_configure(void)
 {
        memset(&cfg, 0, sizeof(cfg));
 
-       cfg.c_dbg_lvl  = 0;
+       cfg.c_dbg_lvl  = 2;
        cfg.c_version  = PACKAGE_VERSION;
        cfg.c_dry_run  = false;
        cfg.c_compr_level_master = -1;
diff --git a/man/mkfs.erofs.1 b/man/mkfs.erofs.1
index 254c3ec4de41..2520b6a08974 100644
--- a/man/mkfs.erofs.1
+++ b/man/mkfs.erofs.1
@@ -25,7 +25,8 @@ Set an algorithm for file compression, which can be set with 
an optional
 compression level separated by a comma.
 .TP
 .BI "\-d " #
-Specify the level of debugging messages. The default is 0.
+Specify the level of debugging messages. The default is 2, which shows basic
+warning messages.
 .TP
 .BI "\-x " #
 Specify the upper limit of an xattr which is still inlined. The default is 2.
-- 
2.20.1

Reply via email to