Linux NFS development
 help / color / mirror / Atom feed
From: Sven Geggus <lists@fuchsschwanzdomain.de>
To: linux-nfs@vger.kernel.org
Subject: Re: NFS4: ID-mapping Problem with Linux Client and NetApp Server
Date: Thu, 9 Feb 2012 08:51:20 +0000 (UTC)	[thread overview]
Message-ID: <jh01e8$6oh$1@ultimate100.geggus.net> (raw)
In-Reply-To: 4F32B9BB.8030504@netapp.com

Bryan Schumaker <bjschuma@netapp.com> wrote:

> Any of the v4 compounds should work.  How about "78.524457   10.1.7.174 -> 10.1.1.14    NFS V4 COMPOUND Call <EMPTY> PUTFH;LOOKUP;GETFH;GETATTR"?

OK, here is this one:

I skipped IP and TCP headers, starting with RPC:

Internet Protocol, Src: 10.1.7.174 (10.1.7.174), Dst: 10.1.1.14 (10.1.1.14)
Transmission Control Protocol, Src Port: 793 (793), Dst Port: nfs (2049), Seq: 1629, Ack: 1657, Len: 196
Remote Procedure Call, Type:Call XID:0x1496ad4c
    Fragment header: Last fragment, 192 bytes
        1... .... .... .... .... .... .... .... = Last Fragment: Yes
        .000 0000 0000 0000 0000 0000 1100 0000 = Fragment Length: 192
    XID: 0x1496ad4c (345419084)
    Message Type: Call (0)
    RPC Version: 2
    Program: NFS (100003)
    Program Version: 4
    Procedure: COMPOUND (1)
    Credentials
        Flavor: RPCSEC_GSS (6)
        Length: 32
        GSS Version: 1
        GSS Procedure: RPCSEC_GSS_DATA (0)
        GSS Sequence Number: 10
        GSS Service: rpcsec_gss_svc_none (1)
        GSS Context: <DATA>
            length: 12
            contents: <DATA>
    Verifier
        Flavor: RPCSEC_GSS (6)
        GSS Token: 00000025602306092A864886F71201020201011100FFFFFF...
            GSS Token Length: 37
            GSS-API Generic Security Service Application Program Interface
                OID: 1.2.840.113554.1.2.2 (KRB5 - Kerberos 5)
                krb5_blob: 01011100FFFFFFFFA4C9778A70A0DFF48E0AC0599AD935BE
                    krb5_tok_id: KRB5_GSS_GetMIC (0x0101)
                    krb5_sgn_alg: HMAC (0x0011)
                    krb5_snd_seq: A4C9778A70A0DFF4
                    krb5_sgn_cksum: 8E0AC0599AD935BE
Network File System
    [Program Version: 4]
    [V4 Procedure: COMPOUND (1)]
    Tag: <EMPTY>
        length: 0
        contents: <EMPTY>
    minorversion: 0
    Operations (count: 4)
        Opcode: PUTFH (22)
            filehandle
                length: 28
                [hash (CRC-32): 0x285d5ed2]
                decode type as: unknown
                filehandle:
                2A04000001000000050000000000042A0100000002000000...
        Opcode: LOOKUP (15)
            Filename: vol
                length: 3
                contents: vol
                fill bytes: opaque data
        Opcode: GETFH (10)
        Opcode: GETATTR (9)
            GETATTR4args
                attr_request
                    bitmap[0] = 0x0010011a
                        [5 attributes requested]
                        mand_attr: FATTR4_TYPE (1)
                        mand_attr: FATTR4_CHANGE (3)
                        mand_attr: FATTR4_SIZE (4)
                        mand_attr: FATTR4_FSID (8)
                        recc_attr: FATTR4_FILEID (20)
                    bitmap[1] = 0x0030a23a
                        [9 attributes requested]
                        recc_attr: FATTR4_MODE (33)
                        recc_attr: FATTR4_NUMLINKS (35)
                        recc_attr: FATTR4_OWNER (36)
                        recc_attr: FATTR4_OWNER_GROUP (37)
                        recc_attr: FATTR4_RAWDEV (41)
                        recc_attr: FATTR4_SPACE_USED (45)
                        recc_attr: FATTR4_TIME_ACCESS (47)
                        recc_attr: FATTR4_TIME_METADATA (52)
                        recc_attr: FATTR4_TIME_MODIFY (53)

Answer:
Internet Protocol, Src: 10.1.1.14 (10.1.1.14), Dst: 10.1.7.174 (10.1.7.174)
Transmission Control Protocol, Src Port: nfs (2049), Dst Port: 793 (793), Seq: 1657, Ack: 1825, Len: 300
Remote Procedure Call, Type:Reply XID:0x1496ad4c
    Fragment header: Last fragment, 296 bytes
        1... .... .... .... .... .... .... .... = Last Fragment: Yes
        .000 0000 0000 0000 0000 0001 0010 1000 = Fragment Length: 296
    XID: 0x1496ad4c (345419084)
    Message Type: Reply (1)
    [Program: NFS (100003)]
    [Program Version: 4]
    [Procedure: COMPOUND (1)]
    Reply State: accepted (0)
    [This is a reply to a request in frame 40]
    [Time from request: 0.000489000 seconds]
    Verifier
        Flavor: RPCSEC_GSS (6)
        GSS Token: 00000025602306092A864886F71201020201011100FFFFFF...
            GSS Token Length: 37
            GSS-API Generic Security Service Application Program Interface
                OID: 1.2.840.113554.1.2.2 (KRB5 - Kerberos 5)
                krb5_blob: 01011100FFFFFFFF4E710FD04090348728ADC573608BB721
                    krb5_tok_id: KRB5_GSS_GetMIC (0x0101)
                    krb5_sgn_alg: HMAC (0x0011)
                    krb5_snd_seq: 4E710FD040903487
                    krb5_sgn_cksum: 28ADC573608BB721
    Accept State: RPC executed successfully (0)
Network File System
    [Program Version: 4]
    [V4 Procedure: COMPOUND (1)]
    Status: NFS4_OK (0)
    Tag: <EMPTY>
        length: 0
        contents: <EMPTY>
    Operations (count: 4)
        Opcode: PUTFH (22)
            Status: NFS4_OK (0)
        Opcode: LOOKUP (15)
            Status: NFS4_OK (0)
        Opcode: GETFH (10)
            Status: NFS4_OK (0)
            Filehandle
                length: 28
                [hash (CRC-32): 0x4cc21d2f]
                decode type as: unknown
                filehandle:
                2B04000001000000050000000000042B0100000002000000...
        Opcode: GETATTR (9)
            Status: NFS4_OK (0)
            GETATTR4res
                resok4
                    obj_attributes
                        attrmask
                            bitmap[0] = 0x0010011a
                                [5 attributes requested]
                                mand_attr: FATTR4_TYPE (1)
                                mand_attr: FATTR4_CHANGE (3)
                                mand_attr: FATTR4_SIZE (4)
                                mand_attr: FATTR4_FSID (8)
                                recc_attr: FATTR4_FILEID (20)
                            bitmap[1] = 0x0030a23a
                                [9 attributes requested]
                                recc_attr: FATTR4_MODE (33)
                                recc_attr: FATTR4_NUMLINKS (35)
                                recc_attr: FATTR4_OWNER (36)
                                recc_attr: FATTR4_OWNER_GROUP (37)
                                recc_attr: FATTR4_RAWDEV (41)
                                recc_attr: FATTR4_SPACE_USED (45)
                                recc_attr: FATTR4_TIME_ACCESS (47)
                                recc_attr: FATTR4_TIME_METADATA (52)
                                recc_attr: FATTR4_TIME_MODIFY (53)
                        attr_vals
                            mand_attr: FATTR4_TYPE (1)
                                nfs_ftype4: NF4DIR (2)
                            mand_attr: FATTR4_CHANGE (3)
                                changeid: 1426762506587602944
                            mand_attr: FATTR4_SIZE (4)
                                size: 0
                            mand_attr: FATTR4_FSID (8)
                                fattr4_fsid
                                    fsid4.major: 2
                                    fsid4.minor: 0
                            recc_attr: FATTR4_FILEID (20)
                                fileid: 1067
                            recc_attr: FATTR4_MODE (33)
                                fattr4_mode: 00
                                    000. .... .... .... = Unknown
                                    .... 0... .... .... = not SUID
                                    .... .0.. .... .... = not SGID
                                    .... ..0. .... .... = not save swapped text
                                    .... ...0 .... .... = no Read permission for owner
                                    .... .... 0... .... = no Write permission for owner
                                    .... .... .0.. .... = no Execute permission for owner
                                    .... .... ..0. .... = no Read permission for group
                                    .... .... ...0 .... = no Write permission for group
                                    .... .... .... 0... = no Execute permission for group
                                    .... .... .... .0.. = no Read permission for others
                                    .... .... .... ...0 = no Execute permission for others
                            recc_attr: FATTR4_NUMLINKS (35)
                                numlinks: 1
                            recc_attr: FATTR4_OWNER (36)
                                fattr4_owner: root@<fqdn>
                                    length: 19
                                    contents: root@<fqdn>
                                    fill bytes: opaque data
                            recc_attr: FATTR4_OWNER_GROUP (37)
                                fattr4_owner_group: nobody
                                    length: 6
                                    contents: nobody
                                    fill bytes: opaque data
                            recc_attr: FATTR4_RAWDEV (41)
                                specdata1: 0
                                specdata2: 0
                            recc_attr: FATTR4_SPACE_USED (45)
                                space_used: 0
                            recc_attr: FATTR4_TIME_ACCESS (47)
                                seconds: 1328776131
                                nseconds: 359437000
                            recc_attr: FATTR4_TIME_METADATA (52)
                                seconds: 1328776131
                                nseconds: 0
                            recc_attr: FATTR4_TIME_MODIFY (53)
                                seconds: 1328776131
                                nseconds: 0

Sven

-- 
"A strategy for rewarding artists that regulates 'copies' makes as much sense
in the digital age as a strategy for controlling greenhouse gases that
regulates breathing." (Lawrence Lessig)
/me is giggls@ircnet, http://sven.gegg.us/ on the Web

      reply	other threads:[~2012-02-09  9:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-08 14:49 NFS4: ID-mapping Problem with Linux Client and NetApp Server Sven Geggus
2012-02-08 15:33 ` Bryan Schumaker
2012-02-08 16:12   ` Sven Geggus
2012-02-08 18:06     ` Bryan Schumaker
2012-02-09  8:51       ` Sven Geggus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='jh01e8$6oh$1@ultimate100.geggus.net' \
    --to=lists@fuchsschwanzdomain.de \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox