[Gluster-devel] Suggested statedump sample strings for Bug 915629 (Improve debuggability of inode/entry locks)

Vijay Bellur vbellur at redhat.com
Fri Sep 20 09:49:32 UTC 2013


On 09/12/2013 06:02 PM, Anuradha Talur wrote:
> Hi all,
>
> The sample strings related to FOP to be printed in statedump to improve the debuggability of inode/entrylks are :
>
> Sample statedump for WRITE is as follows:
>
> inodelk.inodelk[0](ACTIVE)=type=WRITE, fop=WRITE, from offset=some-offset, for len-of-data=some-len, whence=0, start=0, len=0, pid = 0, owner=9c7fb90100000000, transport=0x221ef70, connection-id=atalur-4117-2013/09/12-06:30:12:765987-apv-client-0-0, granted at Thu Sep 12 12:02:06 2013
>
> The FOPs and corresponding info that will be added to their statedump are given below.
>
> 1) "FALLOCATE | DISCARD" : FOP , len and offset
>
> 2) "CREATE | MKNOD | MKDIR" : FOP, loc and mode?

flags in case of CREATE would be useful.

>
> 3) "RMDIR | UNLINK" : FOP and loc
>
> 4) "LINK | SYMLINK | RENAME" : FOP , newloc and oldloc
>
> 5) "TRUNCATE | WRITEV" : FOP, offset and length_of_data
>
> 6) " FSETATTR | SETATTR" : FOP, loc, last_access_time and last_modification_time

valid would be useful. Arguments based on valid flags would be useful to 
have.

>
> 7) "REMOVEXATTR" : FOP, name and loc
>
> 8) "SETXATTR" : FOP and loc
 >
>
> 9) "FSETXATTR" : FOP and flags?
>

Printing keys/names for setxattr would be useful. Avoidable if there are 
a lot of key-value pairs in the dict.

-Vijay





More information about the Gluster-devel mailing list