Move OS-specific driver configuration to grub_util_fd_open. This
moves OS-dependent parts from kern/emu/hostdisk.c to grub-core/osdep/*/hostdisk.c.
This commit is contained in:
		
							parent
							
								
									f7676b7016
								
							
						
					
					
						commit
						caca1c70cf
					
				
					 13 changed files with 101 additions and 93 deletions
				
			
		|  | @ -169,6 +169,13 @@ grub_util_fd_open (const char *dev, int flg) | |||
|   IPTR unit = 0; | ||||
|   ULONG flags = 0; | ||||
| 
 | ||||
| #ifdef O_LARGEFILE | ||||
|   flg |= O_LARGEFILE; | ||||
| #endif | ||||
| #ifdef O_BINARY | ||||
|   flg |= O_BINARY; | ||||
| #endif | ||||
| 
 | ||||
|   ret->off = 0; | ||||
| 
 | ||||
|   if (dev[0] == '\0') | ||||
|  | @ -479,12 +486,6 @@ grub_util_fd_sync (grub_util_fd_t fd) | |||
|     } | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| void | ||||
| grub_hostdisk_configure_device_driver (grub_util_fd_t fd __attribute__ ((unused))) | ||||
| { | ||||
| } | ||||
| 
 | ||||
| void | ||||
| grub_hostdisk_flush_initial_buffer (const char *os_dev __attribute__ ((unused))) | ||||
| { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue