Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
b2111ba3
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看板
提交
b2111ba3
编写于
2月 26, 2010
作者:
D
David Allan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert fs pool formatting
* We are reverting this patch pending a discussion of the right way to implement.
上级
bd3ff6b3
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
0 addition
and
29 deletion
+0
-29
configure.ac
configure.ac
+0
-5
libvirt.spec.in
libvirt.spec.in
+0
-2
src/storage/storage_backend_fs.c
src/storage/storage_backend_fs.c
+0
-22
未找到文件。
configure.ac
浏览文件 @
b2111ba3
...
...
@@ -1252,15 +1252,12 @@ AM_CONDITIONAL([WITH_STORAGE_DIR], [test "$with_storage_dir" = "yes"])
if test "$with_storage_fs" = "yes" -o "$with_storage_fs" = "check"; then
AC_PATH_PROG([MOUNT], [mount], [], [$PATH:/sbin:/usr/sbin])
AC_PATH_PROG([UMOUNT], [umount], [], [$PATH:/sbin:/usr/sbin])
AC_PATH_PROG([MKFS], [mkfs], [], [$PATH:/sbin:/usr/sbin])
if test "$with_storage_fs" = "yes" ; then
if test -z "$MOUNT" ; then AC_MSG_ERROR([We need mount for FS storage driver]) ; fi
if test -z "$UMOUNT" ; then AC_MSG_ERROR([We need umount for FS storage driver]) ; fi
if test -z "$MKFS" ; then AC_MSG_ERROR([We need mkfs for FS storage driver]) ; fi
else
if test -z "$MOUNT" ; then with_storage_fs=no ; fi
if test -z "$UMOUNT" ; then with_storage_fs=no ; fi
if test -z "$MKFS" ; then with_storage_fs=no ; fi
if test "$with_storage_fs" = "check" ; then with_storage_fs=yes ; fi
fi
...
...
@@ -1271,8 +1268,6 @@ if test "$with_storage_fs" = "yes" -o "$with_storage_fs" = "check"; then
[Location or name of the mount program])
AC_DEFINE_UNQUOTED([UMOUNT],["$UMOUNT"],
[Location or name of the mount program])
AC_DEFINE_UNQUOTED([MKFS],["$MKFS"],
[Location or name of the mkfs program])
fi
fi
AM_CONDITIONAL([WITH_STORAGE_FS], [test "$with_storage_fs" = "yes"])
...
...
libvirt.spec.in
浏览文件 @
b2111ba3
...
...
@@ -209,8 +209,6 @@ BuildRequires: util-linux
# For showmount in FS driver (netfs discovery)
BuildRequires: nfs-utils
Requires: nfs-utils
# For mkfs
Requires: util-linux
# For glusterfs
%if 0%{?fedora} >= 11
Requires: glusterfs-client >= 2.0.1
...
...
src/storage/storage_backend_fs.c
浏览文件 @
b2111ba3
...
...
@@ -45,7 +45,6 @@
#include "util.h"
#include "memory.h"
#include "xml.h"
#include "logging.h"
#define VIR_FROM_THIS VIR_FROM_STORAGE
...
...
@@ -501,7 +500,6 @@ virStorageBackendFileSystemBuild(virConnectPtr conn ATTRIBUTE_UNUSED,
virStoragePoolObjPtr
pool
,
unsigned
int
flags
ATTRIBUTE_UNUSED
)
{
const
char
*
mke2fsargv
[
5
],
*
device
=
NULL
,
*
format
=
NULL
;
int
err
,
ret
=
-
1
;
char
*
parent
;
char
*
p
;
...
...
@@ -542,26 +540,6 @@ virStorageBackendFileSystemBuild(virConnectPtr conn ATTRIBUTE_UNUSED,
pool
->
def
->
target
.
path
);
goto
error
;
}
device
=
pool
->
def
->
source
.
devices
[
0
].
path
;
format
=
virStoragePoolFormatFileSystemTypeToString
(
pool
->
def
->
source
.
format
);
VIR_DEBUG
(
"source device: '%s' format: '%s'"
,
device
,
format
);
mke2fsargv
[
0
]
=
MKFS
;
mke2fsargv
[
1
]
=
"-t"
;
mke2fsargv
[
2
]
=
format
;
mke2fsargv
[
3
]
=
device
;
mke2fsargv
[
4
]
=
NULL
;
if
(
virRun
(
mke2fsargv
,
NULL
)
<
0
)
{
virReportSystemError
(
errno
,
_
(
"Failed to make filesystem of "
"type '%s' on device '%s'"
),
format
,
device
);
goto
error
;
}
ret
=
0
;
error:
VIR_FREE
(
parent
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录