Added support to netdisk specified in the form (net,protocol,server_ip,username,password)
an to list its information with command ls. * fs/ieee1275/ofnet.c (grub_ofnet_open): parse parameters to determine netdisk data * fs/ieee1275/ofnet.c (grub_ofnet_close): dealloc netdisk data * include/grub/disk.h: added struct grub_netdisk_data * include/grub/ieee1275/ofnet.h: added newline * kern/disk.c (grub_disk_open): ignore partition check for netdisk * normal/misc.c (grub_normal_print_device_info): added support to list netdisk information
This commit is contained in:
parent
3ec6213b17
commit
f8795693f1
5 changed files with 213 additions and 7 deletions
|
@ -119,6 +119,23 @@ struct grub_disk
|
|||
};
|
||||
typedef struct grub_disk *grub_disk_t;
|
||||
|
||||
/* Net Disk */
|
||||
enum grub_netdisk_protocol
|
||||
{
|
||||
GRUB_NETDISK_PROTOCOL_TFTP
|
||||
};
|
||||
typedef enum grub_netdisk_protocol grub_netdisk_protocol_t;
|
||||
|
||||
struct grub_netdisk_data
|
||||
{
|
||||
grub_netdisk_protocol_t protocol;
|
||||
grub_uint32_t server_ip;
|
||||
grub_uint32_t port;
|
||||
char *username;
|
||||
char *password;
|
||||
};
|
||||
typedef struct grub_netdisk_data *grub_netdisk_data_t;
|
||||
|
||||
#ifdef GRUB_UTIL
|
||||
struct grub_disk_memberlist
|
||||
{
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
extern void grub_ofnet_init(void);
|
||||
extern void grub_ofnet_fini(void);
|
||||
|
||||
/*
|
||||
struct grub_net;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue