Bug 764064 (GLUSTER-2332) - update 'debug/trace' to log gfid instead of 'ia_ino'
Summary: update 'debug/trace' to log gfid instead of 'ia_ino'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-2332
Product: GlusterFS
Classification: Community
Component: trace
Version: 3.1.2
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Amar Tumballi
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: GLUSTER-2346
TreeView+ depends on / blocked
 
Reported: 2011-01-29 05:15 UTC by Amar Tumballi
Modified: 2015-12-01 16:45 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

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


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