pxe: set the file type in the inode structure
authorH. Peter Anvin <hpa@zytor.com>
Wed, 23 Jun 2010 19:08:30 +0000 (12:08 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 23 Jun 2010 19:08:30 +0000 (12:08 -0700)
All "files" on PXE are regular files (there is no official directory
mechanism) and so, at least for now, it's all DT_REG.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/fs/pxe/pxe.c

index 692241e..e2bd29c 100644 (file)
@@ -66,6 +66,7 @@ static struct inode *allocate_socket(struct fs_info *fs)
     } else {
        struct pxe_pvt_inode *socket = PVT(inode);
        socket->tftp_localport = get_port();
+       inode->mode = DT_REG;   /* No other types relevant for PXE */
     }
 
     return inode;