-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,33 +4,39 @@ Release: 1%{?dist} | |
Summary: Map LBA to file | ||
|
||
Group: Applications/System | ||
License: GPL2 | ||
URL: https://sourceforge.net/projects/lbatofile/ | ||
Source0: lbatofile | ||
License: GPL2+ | ||
URL: https://github.com/sdgathman/lbatofile | ||
Source0: https://github.com/sdgathman/lbatofile/archive/master.tar.gz | ||
|
||
BuildRequires: | ||
Requires: | ||
Requires: python >= 2.6, e2fsprogs, lvm2 | ||
%if 0%{?rhel} == 6 | ||
Requires: util-linux-ng | ||
%else | ||
Requires: util-linux | ||
%endif | ||
|
||
%description | ||
|
||
When you have a bad sector on storage media, modern drives will repair the | ||
sector when you write to it. However, you would like to know what file is | ||
damaged by the missing data. In many cases, the bad sector will be in free | ||
space. Or the file is one that you can delete and restore from elsewhere. | ||
lbatofile.py will "drill down" starting from any block device and LBA within | ||
that block device (which is usually a whole disk), and invoke linux utilities | ||
to interpret the partition tables, LVM metadata, or filesystems containing the | ||
LBA. | ||
|
||
%prep | ||
%setup -q | ||
|
||
|
||
%build | ||
%configure | ||
make %{?_smp_mflags} | ||
|
||
|
||
%install | ||
%make_install | ||
|
||
mkdir -p %{buildroot}/%{_sbindir} | ||
cp -p lbatofile.py %{buildroot}/%{_sbindir}/lbatofile | ||
|
||
%files | ||
%doc | ||
|
||
|
||
%doc README.md LICENSE | ||
|
||
%changelog | ||
|
||
* Wed Dec 2 2015 Stuart Gathman <[email protected]> 0.1-1 | ||
- Initial package |