Displaying 3 results from an estimated 3 matches for "pxe_open_config".
2011 Jul 12
0
[PATCH] pxelinux: open_file() returns a non-negative handle
...eming <matt.fleming at linux.intel.com>
---
core/fs/pxe/pxe.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c
index f0f8b61..d689e61 100644
--- a/core/fs/pxe/pxe.c
+++ b/core/fs/pxe/pxe.c
@@ -1065,7 +1065,7 @@ static int pxe_open_config(struct com32_filedata *filedata)
get_prefix();
if (DHCPMagic & 0x02) {
/* We got a DHCP option, try it first */
- if (!open_file(ConfigName, filedata))
+ if (open_file(ConfigName, filedata) >= 0)
return 0;
}
@@ -1077,13 +1077,13 @@ static int pxe_open_config(s...
2014 Feb 24
3
[RFC, PATCH] core/pxe: Add architecture-specific discovery request for PXE config file
...*.c)) \
$(patsubst %.S,%.o, $(wildcard $(SRC)/thread/*.S)))
+CFLAGS += -D__EFI__
endif
COBJS = $(filter-out $(FILTER_OBJS),$(COBJ))
diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c
index 4de4dbf..5cc9082 100644
--- a/core/fs/pxe/pxe.c
+++ b/core/fs/pxe/pxe.c
@@ -471,6 +471,11 @@ static int pxe_open_config(struct com32_filedata *filedata)
tries--;
};
+ /* Try by client architecture */
+ sprintf(config_file, "arch-%04x", ntohs(DHCP_CLIENT_ARCH));
+ if (open_file(ConfigName, O_RDONLY, filedata) >= 0)
+ return 0;
+
/* Final attempt: "default" s...
2013 Nov 19
2
[PATCH] Add filesystem UUID to SYSAPPEND for FAT
...= ntfs_next_extent,
+ .fs_uuid = NULL,
};
diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c
index 4de4dbf..5efcd9c 100644
--- a/core/fs/pxe/pxe.c
+++ b/core/fs/pxe/pxe.c
@@ -695,4 +695,5 @@ const struct fs_ops pxe_fs_ops = {
.chdir_start = pxe_chdir_start,
.open_config = pxe_open_config,
.readdir = pxe_readdir,
+ .fs_uuid = NULL,
};
diff --git a/core/fs/xfs/xfs.c b/core/fs/xfs/xfs.c
index b6a396a..e42e952 100644
--- a/core/fs/xfs/xfs.c
+++ b/core/fs/xfs/xfs.c
@@ -428,4 +428,5 @@ const struct fs_ops xfs_fs_ops = {
.iget = xfs_iget,
.next_extent = xfs_ne...