Bug 764064 (GLUSTER-2332)

Summary: update 'debug/trace' to log gfid instead of 'ia_ino'
Product: [Community] GlusterFS Reporter: Amar Tumballi <amarts>
Component: traceAssignee: Amar Tumballi <amarts>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 3.1.2CC: rabhat, vraman
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: RTNR Mount Type: ---
Documentation: DNR CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 764078    

Description Amar Tumballi 2011-01-29 05:15:43 UTC
With 3.1.x release, gfid is the uniq identification for the file, hence, logging the same makes more easier and precise debugging.

Comment 1 Anand Avati 2011-02-22 07:28:37 UTC
PATCH: http://patches.gluster.com/patch/6219 in master (debug/trace: updated the logs to print gfid instead of 'ino' values)

Comment 2 Raghavendra Bhat 2011-02-23 05:34:24 UTC
This is the log entry by the trace xlator in 3.1.2


[2011-02-23 13:18:47.152780] I [trace.c:637:trace_lookup_cbk] vol-trace: 3: (op_ret=0, ino=1, *buf {ia_ino=1, st_mode=40755, ia_nlink=3, ia_uid=0, ia_gid=0, ia_size=8192, ia_blocks=32, ia_atime=[Feb 23 04:46:45], ia_mtime=[Feb 21 17:09:05], ia_ctime=[Feb 23 13:18:34]}, *postparent {ia_ino=0, st_mode=0, ia_nlink=0, ia_uid=0, ia_gid=0, ia_size=0, ia_blocks=0, ia_atime=[Jan 01 05:30:00], ia_mtime=[Jan 01 05:30:00], ia_ctime=[Jan 01 05:30:00]}



With the latest git(7b07d444a77526f27f860210930bf1d4c7fbea9b) trace xlator logs gfid to the logfile.



[2011-02-23 14:03:07.700916] I [trace.c:1433:trace_lookup] vol-trace: 0: gfid=00000000-0000-0000-0000-000000000001 path=/
[2011-02-23 14:03:07.701441] I [trace.c:547:trace_lookup_cbk] vol-trace: 0: gfid=00000000-0000-0000-0000-000000000001 (op_ret=0 *buf {gfid=00000000-0000-0000-0000-000000000001 ino=2, mode=40755, nlink=3, uid=0, gid=0, size=8192, blocks=32, atime=[Feb 23 04:46:45], mtime=[Feb 21 17:09:05], ctime=[Feb 23 14:03:00]}, *postparent {gfid=00000000-0000-0000-0000-000000000000 ino=1, mode=0, nlink=0, uid=0, gid=0, size=0, blocks=0, atime=[Jan 01 05:30:00], mtime=[Jan 01 05:30:00], ctime=[Jan 01 05:30:00]}

Comment 3 Anand Avati 2011-03-04 05:41:14 UTC
PATCH: http://patches.gluster.com/patch/6327 in master (debug/trace: add logs for 'forget', 'release' and 'releasedir')