Re: problem of read or write OPs after unlink() while the file is opening

From: Paul H. Hargrove (PHHargrove_at_lbl_dot_gov)
Date: Fri May 13 2005 - 11:54:12 PDT

  • Next message: jcduell_at_lbl_dot_gov: "Re: Hello, Jason"
    I appologize for the slow response; I have just returned from travelling.
    
    I am afraid that in the current release of BLCR we do not implement any
    mechansim for the recovery of files which have been unlinked, renamed,
    or modified. This is a "known limitation" rather than a bug. In a future
    version we will allow for some recovery in these cases, but this is not
    a high priority at the moment.
    
    -Paul
    
    �� �� wrote:
    
    >Hi!
    >	 CR_Restart operation will not succeed if a file is unlinked while opening.
    >	 Because it can not reopen the file when restart. 
    >	 I don't know it is a bug or not.  
    >	 The test code is  as follows :	
    > /* -------------------------------------------------------------------------------------------------------------------- */
    >#include <unistd.h>
    >#include <sys/types.h>
    >#include <sys/stat.h>
    >#include <fcntl.h>
    >
    >int main(void)
    >{
    >	int fd;
    >	int i;
    >	
    >	fd = open("data", O_RDWR | O_TRUNC | O_CREAT, 00600);
    >	
    >	if (unlink("data") < 0) {
    >		printf("unlink error\n");
    >	}
    >	printf("checkpointing here ... \n");
    >	getchar();
    >     
    >	/*
    >		read() or write() on this file description ...
    >	*/
    >
    >	printf("failing here ... \n");
    >	getchar();		
    >	
    >	return 0;
    >}
    >  /* -------------------------------------------------------------------------------------------------------------------- */
    >
    > Thanks!
    >
    >
    >[email protected]
    >2005-05-09
    >
    >  
    >
    
    -- 
    Paul H. Hargrove                          PHHargrove_at_lbl_dot_gov
    Future Technologies Group                 
    HPC Research Department                   Tel: +1-510-495-2352
    Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900
    

  • Next message: jcduell_at_lbl_dot_gov: "Re: Hello, Jason"