1 Star 0 Fork 8

abushwang/nbdkit

forked from OpenCloudOS Stream/nbdkit 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0002-tar-Document-the-optional-tar-option-in-help-output-.patch 1.47 KB
一键复制 编辑 原始数据 按行查看 历史
abushwang 提交于 2023-07-13 15:37 . update to 1.35.5
From eb44ca26a84c369a7908f19517c0a2f8f621d57f Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Tue, 13 Jun 2023 20:25:40 +0100
Subject: [PATCH 02/15] tar: Document the optional tar option in --help output
and synopsis
Fixes: commit 05b49f89dccb0ca3fd0919e9502c54dbcadf0b73
---
filters/tar/nbdkit-tar-filter.pod | 1 +
filters/tar/tar.c | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/filters/tar/nbdkit-tar-filter.pod b/filters/tar/nbdkit-tar-filter.pod
index 96aba16d9..eb0cfd4ab 100644
--- a/filters/tar/nbdkit-tar-filter.pod
+++ b/filters/tar/nbdkit-tar-filter.pod
@@ -5,6 +5,7 @@ nbdkit-tar-filter - read and write files inside tar files without unpacking
=head1 SYNOPSIS
nbdkit file FILENAME.tar --filter=tar tar-entry=PATH_INSIDE_TAR
+ [tar=TAR_COMMAND]
=head1 EXAMPLES
diff --git a/filters/tar/tar.c b/filters/tar/tar.c
index c650a3499..f3adb2c46 100644
--- a/filters/tar/tar.c
+++ b/filters/tar/tar.c
@@ -96,8 +96,9 @@ tar_config_complete (nbdkit_next_config_complete *next,
return next (nxdata);
}
-#define tar_config_help \
- "tar-entry=<FILENAME> (required) The path inside the tar file to serve."
+#define tar_config_help \
+ "tar-entry=<FILENAME> (required) The path inside the tar file to serve.\n" \
+ "tar=<PATH> Path of the tar binary."
static int
tar_thread_model (void)
--
2.41.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/abushwang/nbdkit.git
git@gitee.com:abushwang/nbdkit.git
abushwang
nbdkit
nbdkit
master

搜索帮助