[syslinux:master] pxe: set the file type in the inode structure
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Wed Jun 23 12:12:21 PDT 2010
Commit-ID: e7def468fd1aee46e3c23b218b2cc12cab55c963
Gitweb: http://syslinux.zytor.com/commit/e7def468fd1aee46e3c23b218b2cc12cab55c963
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Wed, 23 Jun 2010 12:08:30 -0700
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Wed, 23 Jun 2010 12:08:30 -0700
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 <hpa at zytor.com>
---
core/fs/pxe/pxe.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
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;
More information about the Syslinux-commits
mailing list