[Bugs] [Bug 1333292] tar fails with file changed as we read it for directory

bugzilla at redhat.com bugzilla at redhat.com
Mon Nov 12 05:39:51 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1333292

Nithya Balachandran <nbalacha at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|unspecified                 |medium
           Severity|unspecified                 |high



--- Comment #1 from Nithya Balachandran <nbalacha at redhat.com> ---
As gNFS is no longer supported, I tried to reproduce it on a fuse mount with
the latest master:

#!/bin/bash                                                                     

. $(dirname $0)/../../include.rc                                                
. $(dirname $0)/../../volume.rc                                                 
. $(dirname $0)/../../nfs.rc                                                    

TESTS_EXPECTED_IN_LOOP=10                                                       
cleanup;                                                                        

#Basic checks                                                                   
TEST glusterd                                                                   
TEST pidof glusterd                                                             

#Create a distributed-replicate volume                                          
TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}{1..6};                      
TEST $CLI volume set $V0 cluster.consistent-metadata on                         
#TEST $CLI volume set $V0 cluster.post-op-delay-secs 0                          
#TEST $CLI volume set $V0 nfs.rdirplus off                                      
TEST $CLI volume set $V0 performance.force-readdirp off                         
TEST $CLI volume set $V0 dht.force-readdirp off                                 
TEST $CLI volume start $V0                                                      
TEST kill_brick $V0 $H0 $B0/${V0}1                                              
TEST kill_brick $V0 $H0 $B0/${V0}3                                              
TEST kill_brick $V0 $H0 $B0/${V0}5                                              
#EXPECT_WITHIN $NFS_EXPORT_TIMEOUT "1" is_nfs_export_available;                 

# Mount NFS                                                                     
#mount_nfs $H0:/$V0 $N0 vers=3                                                  
TEST $GFS --volfile-id=/$V0 --volfile-server=$H0 --use-readdirp=no $M0;    


#Create files                                                                   
TEST mkdir -p $M0/nfs/dir1/dir2                                                 
for i in {1..10}; do                                                            
    TEST_IN_LOOP dd if=/dev/urandom of=$M0/nfs/dir1/dir2/file$i bs=1024k
count=1
done                                                                            
TEST tar cf /tmp/dir1.tar.gz $M0/nfs/dir1                                       

TEST rm -f /tmp/dir1.tar.gz                                                     

#EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" force_umount $N0                             

cleanup;  



I have managed to hit the issue but on Fuse. Going forward, we will be
debugging this for Fuse mounts.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=agtAypOHgG&a=cc_unsubscribe


More information about the Bugs mailing list