FreeBSD Bugzilla – Attachment 179718 Details for
Bug 216892
[New Port] sysutils/safecopy: Safe copying of files and partition
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
sysutils/safecopy shar file
safecopy.shar (text/plain), 3.94 KB, created by
Mageirias Anastasios
on 2017-02-07 18:39:00 UTC
(
hide
)
Description:
sysutils/safecopy shar file
Filename:
MIME Type:
Creator:
Mageirias Anastasios
Created:
2017-02-07 18:39:00 UTC
Size:
3.94 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># safecopy ># safecopy/Makefile ># safecopy/pkg-descr ># safecopy/distinfo ># safecopy/files ># safecopy/files/patch-src_safecopy.c ># >echo c - safecopy >mkdir -p safecopy > /dev/null 2>&1 >echo x - safecopy/Makefile >sed 's/^X//' >safecopy/Makefile << '7b5d8324623b2e97a55d447e452d3232' >X# $FreeBSD$ >X >XPORTNAME= safecopy >XPORTVERSION= 1.7 >XCATEGORIES= sysutils >XMASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}/ >X >XMAINTAINER= anastasios@mageirias.com >XCOMMENT= Safe copying of files and partition >X >XLICENSE= GPLv2 >XLICENSE_FILE= ${WRKSRC}/COPYING >X >XUSES= gmake >XGNU_CONFIGURE= yes >X >XPLIST_FILES= bin/safecopy \ >X man/man1/safecopy.1.gz >X >X.include <bsd.port.mk> >7b5d8324623b2e97a55d447e452d3232 >echo x - safecopy/pkg-descr >sed 's/^X//' >safecopy/pkg-descr << 'e8f22d3351d2bcab86dc7d8a9baf2006' >XSafecopy is a data recovery tool which tries to extract as much data as >Xpossible from a problematic (i.e. damaged sectors) source - like floppy drives, >Xhard disk partitions, CDs, tape devices etc, ... , where other tools like dd >Xwould fail due to I/O errors. >XSafecopy includes a low level IO layer to read CDROM disks in raw mode, and >Xissue device resets and other helpful low level operations on a number of other >Xdevice classes. >XThe project also includes a device simulator which can be used to simulate bad >Xmedia for testing and benchmarking safecopy as well as other data rescue tools. >X >XWWW: http://safecopy.sourceforge.net/ >e8f22d3351d2bcab86dc7d8a9baf2006 >echo x - safecopy/distinfo >sed 's/^X//' >safecopy/distinfo << 'deeb7bdb15be9292c8a7b0039ee7340f' >XTIMESTAMP = 1486496165 >XSHA256 (safecopy-1.7.tar.gz) = 42fbed5d4764020eb0f34d95e97a0e14e62d801c3ef80f89bd497d94d39cc4fd >XSIZE (safecopy-1.7.tar.gz) = 398465 >deeb7bdb15be9292c8a7b0039ee7340f >echo c - safecopy/files >mkdir -p safecopy/files > /dev/null 2>&1 >echo x - safecopy/files/patch-src_safecopy.c >sed 's/^X//' >safecopy/files/patch-src_safecopy.c << 'dedd073dcadd262a98e1dc4ab17ba262' >X--- src/safecopy.c.orig 2017-02-07 19:49:05 UTC >X+++ src/safecopy.c >X@@ -900,7 +900,7 @@ int main(int argc, char ** argv) { >X fprintf(stdout, "File size: %llu\n", (long long) statusvars->filesize ); >X } else { >X fprintf(stderr, "Filesize not reported by stat(), trying seek().\n"); >X- statusvars->source = open(configvars->sourcefile, O_RDONLY | O_RSYNC); >X+ statusvars->source = open(configvars->sourcefile, O_RDONLY | O_SYNC); >X if (statusvars->source) { >X statusvars->filesize = lseek(statusvars->source, 0, SEEK_END); >X close(statusvars->source); >X@@ -1691,7 +1691,7 @@ int main(int argc, char ** argv) { >X for ( statusvars->cseeks = 0; statusvars->cseeks < statusvars->seeks ; statusvars->cseeks ++) { >X debug(DEBUG_SEEK, "debug: forced head realignment\n"); >X // note. must use O_RSYNC since with O_DIRECT / raw devices, lseek to end of file might not work >X- statusvars->source = open(configvars->sourcefile, O_RDONLY | O_NONBLOCK | O_RSYNC ); >X+ statusvars->source = open(configvars->sourcefile, O_RDONLY | O_NONBLOCK | O_SYNC ); >X if (statusvars->source) { >X lseek(statusvars->source, 0, SEEK_SET); >X select_for_reading(statusvars->source, configvars, statusvars); >X@@ -1699,7 +1699,7 @@ int main(int argc, char ** argv) { >X read(statusvars->source, statusvars->databuffer , statusvars->blocksize ); >X close(statusvars->source); >X } >X- statusvars->source = open(configvars->sourcefile, O_RDONLY | O_NONBLOCK | O_RSYNC ); >X+ statusvars->source = open(configvars->sourcefile, O_RDONLY | O_NONBLOCK | O_SYNC ); >X if (statusvars->source) { >X lseek(statusvars->source,- statusvars->blocksize , SEEK_END); >X select_for_reading(statusvars->source, configvars, statusvars); >dedd073dcadd262a98e1dc4ab17ba262 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 216892
: 179718