-
Notifications
You must be signed in to change notification settings - Fork 1
/
fuse-lessfs.spec
247 lines (215 loc) · 9.25 KB
/
fuse-lessfs.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
%define real_name lessfs
Summary: Lessfs is an inline data deduplicating filesystem
Name: fuse-lessfs
Version: 1.5.9
Release: 1%{?dist}
License: GPLv3
Group: Applications/System
URL: http://www.lessfs.com
Source: http://downloads.sourceforge.net/%{real_name}/%{real_name}-%{version}.tar.gz
Patch0: lessfs-init.patch
Patch1: lessfs-init-4096.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
BuildRequires: autoconf
BuildRequires: fuse-devel
BuildRequires: mhash-devel
BuildRequires: openssl-devel
BuildRequires: snappy-devel
BuildRequires: tokyocabinet-devel
Requires: fuse
Requires: mhash
Requires: snappy
Obsoletes: %{real_name} <= %{name}-%{version}
Provides: %{real_name} = %{name}-%{version}
%description
Lessfs is an inline data deduplicating filesystem.
%prep
%setup -q -n %{real_name}-%{version}
# Fix permissions on ChangeLog
chmod -x ChangeLog
# For some reason a couple source files are executable.
chmod -x *.c
# patch for init script
#%patch0
#%patch1
%build
#autoreconf
export CFLAGS="-ggdb2 -O2"
%configure --with-crypto --with-sha3 --with-snappy
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install
install -D -m 755 etc/lessfs-init_example %{buildroot}/etc/init.d/lessfs
install -D -m 755 etc/lessfs.cfg %{buildroot}/etc/lessfs.cfg
rm -rf %{buildroot}%{_datadir}/%{name}
rm -rf %{buildroot}%{_libdir}/lib%{name}.a
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root, -)
%doc FAQ ChangeLog COPYING README
%{_bindir}/lessfs
%{_sbindir}/mklessfs
%{_sbindir}/lessfsck
%{_sbindir}/listdb
%{_sbindir}/replogtool
%{_mandir}/man1/lessfs*
%{_mandir}/man1/replogtool*
/etc/init.d/lessfs
%config(noreplace) /etc/lessfs.cfg
%changelog
* Mon Feb 13 2012 David Hrbáč <[email protected]> - 1.5.9-1
- new upstream release
* Thu Nov 18 2010 David Hrbáč <[email protected]> - 1.2.0-1
- new upstream release
* Sat May 01 2010 David Hrbáč <[email protected]> - 1.0.8-1
- new upstream release
* Mon Mar 29 2010 David Hrbáč <[email protected]> - 1.0.7-1
- new upstream release
* Sat Feb 13 2010 David Hrbáč <[email protected]> - 1.0.1-1
- new upstream release
* Thu Jan 07 2010 David Hrbáč <[email protected]> - 1.0.0-2
- rebuilt against new tokyocabinet
* Tue Jan 05 2010 David Hrbáč <[email protected]> - 1.0.0-1
- new upstream release, stable one :o)
* Tue Jan 05 2010 David Hrbáč <[email protected]> - 0.9.6-1
- new upstream release
* Tue Jan 05 2010 David Hrbáč <[email protected]> - 0.9.5-1
- new upstream release
* Tue Jan 05 2010 David Hrbáč <[email protected]> - 0.9.4-1
- new upstream release
* Tue Jan 05 2010 David Hrbáč <[email protected]> - 0.9.2-1
- new upstream release
* Tue Jan 05 2010 David Hrbáč <[email protected]> - 0.9.0-1
- new upstream release
* Tue Nov 17 2009 David Hrbáč <[email protected]> - 0.8.3-1
- new upstream release
- remove x bit on files
- patch init script to include status
- patch to use 4096 block
* Mon Nov 16 2009 David Hrbáč <[email protected]> - 0.8.2-2
- initial rebuild
* Wed Nov 11 2009 Pekka Panula <[email protected]> - 0.8.2-2
- Configure with --with-sha3
* Tue Nov 10 2009 Pekka Panula <[email protected]> - 0.8.2-1
- Build for CentOS 5.4, 64-bit
* Sat Nov 09 2009 Mark Ruijter <[email protected]> - 0.8.2
- Fixes a bug that causes lessfsck and mklessfs to segfault when compiled
- with encryption support and encryption disabled in the config.
- Fixes a bug that causes lessfs to segfault on umount when compiled
- with encryption support and encryption disabled in the config.
- lessfsck,listdb and mklessfs are now installed in /usr/sbin
- instead of /usr/bin.
* Sat Nov 07 2009 Mark Ruijter <[email protected]> - 0.8.1
- Fixes a bug that causes mklessfs to segfault when DEBUG is not set.
- Adds lessfsck. lessfsck can be used to check, optimize and repair
- a lessfs filesystem.
* Mon Oct 26 2009 Mark Ruijter <[email protected]> - 0.8.0
- Fixes a possible segfault when lessfs is used with lzo compression.
- Fixes a problem when compiling lessfs without encryption on
- a system without openssl-devel.
- Enhances the logging facility.
- Performance has improved for higher latency storage like iscsi, drbd.
- Reduces the number of fsync operations when sync_relax>0.
-
- Thanks to : Roland Kletzing for finding and assisting
- with solving some of the problems mentioned.
* Fri Oct 22 2009 Adam Miller <[email protected]> - 0.7.5-4
- Fixed missing URL field as well as missing Require for fuse
- Removed period from summary
* Thu Oct 22 2009 Adam Miller <[email protected]> - 0.7.5-3
-Added fuse-devel and autoconf as build dependencies
* Wed Oct 21 2009 Adam Miller <[email protected]> - 0.7.5-2
-First attempt to build for Fedora review request
-Based on upstream .spec, full credit of initial work goes to Mark Ruijter
* Fri Oct 16 2009 Mark Ruijter <[email protected]> - 0.7.5-1
Fix a segfault on free after unmounting lessfs without
encryption support. Fix a problem that could lead to a
deadlock when using file_io with NFS.
A performance improvement, changed a mutex lock for a
spinlock.
* Sun Oct 11 2009 Mark Ruijter <[email protected]> - 0.7.4
This version of lessfs introduces a new hash named
Blue Midnight Whish : http://www.q2s.ntnu.no/sha3_nist_competition/start
This is a very fast hash that increases lessfs performance
significantly. The implementation makes it easy to use any
of the hashes from the NIST hash competition. MBW was
choosen for lessfs because of the speed.
To use BMW : configure --with-sha3
* Tue Oct 06 2009 Mark Ruijter <[email protected]> - 0.7.2
Fix a typo in lib_tc.c that can lead to data corruption.
* Mon Oct 05 2009 Mark Ruijter <[email protected]> - 0.7.1
Introduced a new data storage backend, file-io.
Higher overall performance.
* Sun Sep 06 2009 Mark Ruijter <[email protected]> - 0.6.1
Never improve your code minutes before releasing it.
Fix a silly bug with mklessfs.
* Sun Sep 06 2009 Mark Ruijter <[email protected]> - 0.6.0
Added encryption support to lessfs.
Fixed one small bug that would leave orphaned meta data in the
metadatabase when hardlinks where removed.
* Wed Aug 26 2009 Mark Ruijter <[email protected]> - 0.5.0
Improved thread locking that leads to much better performance.
Many NFS related problems have been solved and debugging
is now easier.
* Mon Aug 17 2009 Mark Ruijter <[email protected]> - 0.2.8
Many bugfixes, including incorrect filesize on writing
in a file with various offsets using lseek. This also
caused problems with NFS.
* Fri Aug 14 2009 Mark Ruijter <[email protected]> - 0.2.7
Fixed a problem where dbstat failed to return the proper
filesize. One other bug could leak to a deadlock of lessfs.
* Fri Jul 17 2009 Mark Ruijter <[email protected]> - 0.2.6
Fixed two bugs, one which could lead to data corruption.
One other that would leave deleted data in the database.
* Wed Jul 08 2009 Mark Ruijter <[email protected]> - 0.2.5
This release fixes to one minor and one major bug.
One bug in the code would actually crash lessfs
upon renaming a file or directory. lessfs-0.2.4
is no longer available for download.
* Sun Jul 05 2009 Mark Ruijter <[email protected]> - 0.2.4
Added support for automatic defragmentation.
* Tue Jun 23 2009 Mark Ruijter <[email protected]> - 0.2.3
This release fixes a small memory leak and improves
write performance in general approx 12%.
Known issues :
Using direct_io with kernel 2.6.30 causes reads to
continue for ever. I am not sure if this is a kernel
issue or a lessfs bug. With earlier kernels direct_io
works fine.
* Sun Jun 21 2009 Mark Ruijter <[email protected]> - 0.2.2
NFS support and improved caching code.
WARNING : nfs will only work with kernel >= 2.6.30
* Wed Jun 10 2009 Mark Ruijter <[email protected]> - 0.2.1
Improved the performance of writes smaller then
max_write in size. These writes will now remain long
enough in the cache so that subsequent writes to the
same block will update the cache instead of the database.
Mounting lessfs without formatting the filesystem now
logs a warning instead of creating a segfault.
Creating of sparse files now works again after being
broken in release 0.1.19.
* Mon May 25 2009 Mark Ruijter <[email protected]> - 0.2.0
Added a cache that improves performance with approx 30%.
* Thu May 14 2009 Mark Ruijter <[email protected]> - 0.1.22
Fixed a data corruption bug (workaround) when the
underlying filesystems run out of space. Fixed a problem
with hardlinking symlinks.
* Wed Apr 22 2009 Mark Ruijter <[email protected]> - 0.1.20
Fixed two bugs:
1. Truncate operations would sometimes fail.
2. unlink of hardlinked files would sometimes fail.
* Wed Apr 04 2009 Mark Ruijter <[email protected]> - 0.1.19
Fixed a bug in the truncation routine where a delete chunk
would remain in the database. Cleaned up the init script.
* Mon Mar 30 2009 Mark Ruijter <[email protected]> - 0.1.18
* Mon Mar 27 2009 Mark Ruijter <[email protected]> - 0.1.17
Bug fix, reenable syslog.
* Mon Mar 27 2009 Mark Ruijter <[email protected]> - 0.1.16
* Mon Mar 23 2009 Mark Ruijter <[email protected]> - 0.1.15
* Sat Mar 21 2009 Mark Ruijter <[email protected]> - 0.1.14
* Tue Feb 24 2009 Mark Ruijter <[email protected]> - 0.1.13
- Initial package