Compare commits

..

No commits in common. "7bef5cead160aedb11435e974ccdfda5aceb1ce3" and "1e9cd91498bae036c1d8b7c7f63fb1025d63a749" have entirely different histories.

5 changed files with 73 additions and 61 deletions

36
README.en.md Normal file
View File

@ -0,0 +1,36 @@
# bcache-tools
#### Description
Bcache is a Linux kernel block layer cache. It allows one or more fast disk drives such as flash-based solid state drives (SSDs) to act as a cache for one or more slower hard disk drives. bcache-tools contains the userspace tools required for bcache.
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution
1. Fork the repository
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

37
README.md Normal file
View File

@ -0,0 +1,37 @@
# bcache-tools
#### 介绍
Bcache is a Linux kernel block layer cache. It allows one or more fast disk drives such as flash-based solid state drives (SSDs) to act as a cache for one or more slower hard disk drives. bcache-tools contains the userspace tools required for bcache.
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

Binary file not shown.

View File

@ -1,57 +0,0 @@
#needsrootforbuild
Name: bcache-tools
Version: 1.1
Release: 3
Summary: userspace tools for bcache
License: GPL-2.0
URL: http://bcache.evilpiepirate.org/
Source0: https://git.kernel.org/pub/scm/linux/kernel/git/colyli/bcache-tools.git/snapshot/%{name}-%{version}.tar.gz
BuildRequires: gcc, tar, pkgconfig
BuildRequires: pkgconfig(blkid), pkgconfig(uuid)
%description
bcache is a linux kernel block layer cache. It allows one or more fast disk drivers,
such as flash-based solid state drives (SSDs) to act as a cache for one or more slower
hard disk drives.
bcache-tools contains the userspace tools required for bcache.
%prep
%autosetup -p1
%build
CFLAGS="$CFLAGS -fstack-protector-strong -fPIE -pie -fPIC -D_FORTIFY_SOURCE=2"
export CFLAGS
%make_build all
%install
mkdir -p %{buildroot}/sbin
mkdir -p %{buildroot}/usr/sbin
mkdir -p %{buildroot}/lib/udev
mkdir -p %{buildroot}/lib/udev/rules.d
mkdir -p %{buildroot}/%{_mandir}/man8
%make_install
%files
%{_sbindir}/make-bcache
%{_sbindir}/bcache
%{_sbindir}/bcache-super-show
/lib/udev/rules.d/69-bcache.rules
/lib/udev/probe-bcache
/lib/udev/bcache-register
/lib/dracut/modules.d/90bcache/module-setup.sh
/usr/lib/initcpio/install/bcache
/usr/share/initramfs-tools/hooks/bcache
%{_mandir}/man8/*.8*
%license COPYING
%changelog
* Tue Mar 7 2023 Weifeng Su <suweifeng1@huawei.com> - 1.1-3
- add safe compilation options PIE/pie/PIC/FS
* Mon Sep 6 2021 caodongxia <caodongxia@huawei.com> - 1.1-2
- add safe compilation options fstack-protector-strong
* Mon Jan 6 2020 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.1-1
- init bcache-tools v1.1

View File

@ -1,4 +0,0 @@
version_control: git
src_repo: https://git.kernel.org/pub/scm/linux/kernel/git/colyli/bcache-tools.git
tag_prefix: "bcache-tools-"
seperator: "."