• S
    [V4] virtio-9p: readdir implementation for 9p2000.L · c18e2f94
    Sripathi Kodi 提交于
    This patch implements the server part of readdir() implementation for
    9p2000.L
    
        SYNOPSIS
    
        size[4] Treaddir tag[2] fid[4] offset[8] count[4]
        size[4] Rreaddir tag[2] count[4] data[count]
    
        DESCRIPTION
    
        The readdir request asks the server to read the directory specified by 'fid'
        at an offset specified by 'offset' and return as many dirent structures as
        possible that fit into count bytes. Each dirent structure is laid out as
        follows.
    
                qid.type[1]
                  the type of the file (directory, etc.), represented as a bit
                  vector corresponding to the high 8 bits of the file's mode
                  word.
    
                qid.vers[4]
                  version number for given path
    
                qid.path[8]
                  the file server's unique identification for the file
    
                offset[8]
                  offset into the next dirent.
    
                type[1]
                  type of this directory entry.
    
                name[256]
                  name of this directory entry.
    Signed-off-by: NSripathi Kodi <sripathik@in.ibm.com>
    Reviewed-by: NM. Mohan Kumar <mohan@in.ibm.com>
    Signed-off-by: NVenkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
    c18e2f94
virtio-9p.c 60.5 KB