mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
gddrescue: add ddrescue a data recovery tool
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
--- a/block.h
|
||||
+++ b/block.h
|
||||
@@ -34,6 +34,7 @@ class Block
|
||||
{ if( size_ < 0 || size_ > LLONG_MAX - pos_ ) size_ = LLONG_MAX - pos_; }
|
||||
|
||||
public:
|
||||
+ Block() {} // default constructor
|
||||
Block( const long long p, const long long s ) : pos_( p ), size_( s )
|
||||
{ if( p < 0 ) { pos_ = 0; if( s > 0 ) size_ -= std::min( s, -p ); }
|
||||
fix_size(); }
|
||||
@@ -102,6 +103,7 @@ private:
|
||||
Status status_;
|
||||
|
||||
public:
|
||||
+ Sblock() {} // default constructor
|
||||
Sblock( const Block & b, const Status st )
|
||||
: Block( b ), status_( st ) {}
|
||||
Sblock( const long long p, const long long s, const Status st )
|
||||
--- a/mapbook.cc
|
||||
+++ b/mapbook.cc
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <cerrno>
|
||||
+#include <cctype>
|
||||
#include <climits>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
Reference in New Issue
Block a user