Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 May 2000 16:14:22 -0700 (PDT)
From:      mab@lathian.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/18609: misc/amanda24: change amdump to set nodump flag on dumps to disk
Message-ID:  <20000516231422.8D5602C923@enzian.lathian>

next in thread | raw e-mail | index | archive | help

>Number:         18609
>Category:       ports
>Synopsis:       misc/amanda24: change amdump to set nodump flag on dumps to disk
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 16 16:20:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Matthew Braithwaite
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
Lathian
>Environment:
>Description:

This is super handy because it allows you to back up your holding disk
without sucking in the huge files Amanda is writing there.  Yes, I
know, you're supposed to dedicate a holding disk, but this is handy
for the cases where you can't.

Add the following NEW FILE, patches/patch-ag:

*** server-src/dumper.c	Thu Nov 19 15:12:23 1998
--- server-src/dumper.c.new	Wed May 10 22:41:46 2000
***************
*** 288,293 ****
--- 288,304 ----
  		amfree(q);
  		break;
  	    }
+ #ifdef UF_NODUMP
+ 	    /*
+ 	     * Do this to make sure this file itself is not backed up
+ 	     * accidentaly. We do not really care for the return value
+ 	     * of fchflags, because the open above would've failed if
+ 	     * anything was wrong.
+ 	     * XXX configure should tell us if fchflags exists on this
+ 	     * platform
+ 	     */
+ 	    fchflags(outfd, UF_NODUMP);
+ #endif
  	    filename_seq = 0;
  
  	    check_options(options);


>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000516231422.8D5602C923>