Bug 761888 (GLUSTER-156)

Summary: Broken symbolic link when relative path is given for a log file
Product: [Community] GlusterFS Reporter: Sachidananda Urs <sac>
Component: loggingAssignee: Basavanagowda Kanur <gowda>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: mainlineCC: aavati, gluster-bugs, vinayak
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTA Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Basavanagowda Kanur 2009-07-21 10:56:51 UTC
patch submitted at http://patches.gluster.com/patch/807/

Comment 1 Sachidananda Urs 2009-07-21 13:20:06 UTC
When glusterfs is started with --run-id option by giving relative path for the log file, the symbolic link is broken.

For eg:
================================================================
/opt/glusterfs/2.0.4/sbin/glusterfsd -f /home/sac/work/volfiles/nufa/nufa.vol -l ../home/sac/work/logs/2.0.4/nufa.f1.log --run-id nufatest /mnt/nufa/

Then a symbolic link is created under ~sac/work/logs/2.0.4/ as:

nufa.f1.log -> ../home/sac/work/logs/2.0.4/nufa.f1.log.20090721.182334.23147

================================================================
Which is obviously broken.

Where as the link has to be:

nufa.f1.log -> nufa.f1.log.20090721.182334.23147

Since both are created in same directory. This works fine when the absolute path is given.

Comment 2 Anand Avati 2009-07-27 21:58:06 UTC
Please mark bugs as 'fixed' only after the bug gets commented by the scripts that the proposed patch has been committed to the repository

Comment 3 Anand Avati 2009-07-28 17:25:05 UTC
PATCH: http://patches.gluster.com/patch/830 in master (glusterfsd: handle logfile path specification appropriately.)