From e7def468fd1aee46e3c23b218b2cc12cab55c963 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 23 Jun 2010 12:08:30 -0700 Subject: [PATCH] pxe: set the file type in the inode structure 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 --- core/fs/pxe/pxe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c index 692241e..e2bd29c 100644 --- a/core/fs/pxe/pxe.c +++ b/core/fs/pxe/pxe.c @@ -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; -- 2.7.4