Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
4905b983
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
4905b983
编写于
4月 17, 2014
作者:
P
Peter Krempa
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
util: virstorage: Kill struct virStorageFileMetadata
Remove the now unused pieces of the structure.
上级
d64d9ff9
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
0 addition
and
61 deletion
+0
-61
src/libvirt_private.syms
src/libvirt_private.syms
+0
-1
src/util/virstoragefile.c
src/util/virstoragefile.c
+0
-23
src/util/virstoragefile.h
src/util/virstoragefile.h
+0
-37
未找到文件。
src/libvirt_private.syms
浏览文件 @
4905b983
...
...
@@ -1823,7 +1823,6 @@ virStorageFileFeatureTypeFromString;
virStorageFileFeatureTypeToString;
virStorageFileFormatTypeFromString;
virStorageFileFormatTypeToString;
virStorageFileFreeMetadata;
virStorageFileGetLVMKey;
virStorageFileGetMetadata;
virStorageFileGetMetadataFromBuf;
...
...
src/util/virstoragefile.c
浏览文件 @
4905b983
...
...
@@ -1312,29 +1312,6 @@ virStorageFileChainGetBroken(virStorageSourcePtr chain,
}
/**
* virStorageFileMetadataFree:
*
* Free pointers in passed structure and structure itself.
*/
void
virStorageFileFreeMetadata
(
virStorageFileMetadata
*
meta
)
{
if
(
!
meta
)
return
;
VIR_FREE
(
meta
->
relPath
);
VIR_FREE
(
meta
->
path
);
VIR_FREE
(
meta
->
relDir
);
virStorageFileFreeMetadata
(
meta
->
backingMeta
);
VIR_FREE
(
meta
->
backingStoreRaw
);
VIR_FREE
(
meta
->
compat
);
virBitmapFree
(
meta
->
features
);
virStorageEncryptionFree
(
meta
->
encryption
);
VIR_FREE
(
meta
);
}
/**
* virStorageFileResize:
*
...
...
src/util/virstoragefile.h
浏览文件 @
4905b983
...
...
@@ -116,41 +116,6 @@ struct _virStorageTimestamps {
};
typedef
struct
_virStorageFileMetadata
virStorageFileMetadata
;
typedef
virStorageFileMetadata
*
virStorageFileMetadataPtr
;
struct
_virStorageFileMetadata
{
/* Name of the current file as spelled by the user (top level) or
* metadata of the overlay (if this is a backing store). */
char
*
relPath
;
/* Canonical name of the current file, used to detect loops in the
* backing store chain. */
char
*
path
;
/* Directory to start from if backingStoreRaw is a relative file
* name. */
char
*
relDir
;
/* Name of the child backing store recorded in metadata of the
* current file. */
char
*
backingStoreRaw
;
/* Backing chain. In the common case, the child's
* backingMeta->path will be a duplicate of this file's
* backingStoreRaw; this setup makes it possible to detect missing
* backing files: if backingStoreRaw is NULL, this field should be
* NULL. If this field is NULL and backingStoreRaw is non-NULL,
* there was an error following the chain (such as a missing
* file). Otherwise, information about the child is here. */
virStorageFileMetadataPtr
backingMeta
;
/* Details about the current image */
int
type
;
/* enum virStorageType */
int
format
;
/* enum virStorageFileFormat */
virStorageEncryptionPtr
encryption
;
unsigned
long
long
capacity
;
virBitmapPtr
features
;
/* bits described by enum virStorageFileFeature */
char
*
compat
;
};
/* Information related to network storage */
enum
virStorageNetProtocol
{
VIR_STORAGE_NET_PROTOCOL_NBD
,
...
...
@@ -323,8 +288,6 @@ const char *virStorageFileChainLookup(virStorageSourcePtr chain,
const
char
**
parent
)
ATTRIBUTE_NONNULL
(
1
);
void
virStorageFileFreeMetadata
(
virStorageFileMetadataPtr
meta
);
int
virStorageFileResize
(
const
char
*
path
,
unsigned
long
long
capacity
,
unsigned
long
long
orig_capacity
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录