pax_global_header00006660000000000000000000000064112243466500014515gustar00rootroot0000000000000052 comment=c789b1af8868a3e79412b030e738dffe3e621647 nosync-0.1/000075500000000000000000000000001122434665000126645ustar00rootroot00000000000000nosync-0.1/.gear/000075500000000000000000000000001122434665000136605ustar00rootroot00000000000000nosync-0.1/.gear/rules000064400000000000000000000000071122434665000147320ustar00rootroot00000000000000tar: . nosync-0.1/README000064400000000000000000000002761122434665000135510ustar00rootroot00000000000000http://arighi.blogspot.com/2007/05/libnosync-are-sync-really-necessary.html http://www.linux.org.ru/wiki/en/Reiser4 http://priyadi.net/archives/2006/03/08/my-linux-on-thinkpad-t41p-guide-2/ nosync-0.1/libnosync.c000064400000000000000000000006001122434665000150240ustar00rootroot00000000000000/* Library with stubs for *sync functions. This library needs be in public domain for accept linking with any application, so it is rewritten from scratch version of libnosync written by Aaron Hopkins http://lj.rossia.org/users/igorpashev/26733.html */ void sync (void) { } int fsync (int fd) { return 0; } int fdatasync (int fd) { return 0; } nosync-0.1/nosync000075500000000000000000000004621122434665000141250ustar00rootroot00000000000000#!/bin/sh if [ -z "$1" ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then echo "nosync disable sync calls for the program" echo "Usage: nosync program" exit 1 fi if [ "$LD_PRELOAD" ] ; then LD_PRELOAD=$LD_PRELOAD:/usr/lib/libnosync.so else LD_PRELOAD=/usr/lib/libnosync.so fi export LD_PRELOAD $@ nosync-0.1/nosync.spec000064400000000000000000000017011122434665000150500ustar00rootroot00000000000000Name: nosync Version: 0.1 Release: alt2 Summary: library to disable sync/fsync/fdatasync License: Public domain Group: Development/C #Url: Packager: Vitaly Lipatov Source: %name-%version.tar %description Library to disable sync/fsync/fdatasync. Run your program as $ nosync program for disable sync calls. Uwaga! Use only if you needs in data corrupted after system failure. See http://lj.rossia.org/users/igorpashev/26733.html for use examples. %prep %setup %__subst "s|/usr/lib|%_libdir|g" nosync %build gcc %optflags_shared -s -Wall -shared -o libnosync.so libnosync.c %install install -D -m644 libnosync.so %buildroot%_libdir/libnosync.so install -D nosync %buildroot%_bindir/nosync %files %doc README %_bindir/nosync %_libdir/libnosync.so %changelog * Mon Jul 06 2009 Vitaly Lipatov 0.1-alt2 - build from git, add README * Mon Jul 06 2009 Vitaly Lipatov 0.1-alt1 - initial build for Sisyphus