projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c82de17
)
pxe: set the file type in the inode structure
author
H. Peter Anvin
<hpa@zytor.com>
Wed, 23 Jun 2010 19:08:30 +0000
(12:08 -0700)
committer
H. 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
patch
|
blob
|
history
diff --git
a/core/fs/pxe/pxe.c
b/core/fs/pxe/pxe.c
index
692241e
..
e2bd29c
100644
(file)
--- 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;