Bug 761888 (GLUSTER-156) - Broken symbolic link when relative path is given for a log file
Summary: Broken symbolic link when relative path is given for a log file
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-156
Product: GlusterFS
Classification: Community
Component: logging
Version: mainline
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Basavanagowda Kanur
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-21 13:20 UTC by Sachidananda Urs
Modified: 2009-11-26 12:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: RTA
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

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.)


Note You need to log in before you can comment on or make changes to this bug.