All of lore.kernel.org
 help / color / mirror / Atom feed
* RFC: Devices for files and partitions
@ 2021-07-06 23:05 Simon Glass
  2021-07-09  2:44 ` AKASHI Takahiro
  0 siblings, 1 reply; 4+ messages in thread
From: Simon Glass @ 2021-07-06 23:05 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Heinrich Schuchardt, Ilias Apalodimas, Marek Vasut,
	Sean Anderson, Marek Behún

Hi,

At present U-Boot avoids the concept of 'opening' a file. Being in a
bootloader environment, it is normally better to take the action
immediately and avoid any caching, for example, since there is no
background task to clean up afterwards.

Having said that, the concept of a file is quite useful, for example
to write the output of a command to a file, or to open a file and read
it a line at a time.

Another case has come to light in that EFI wants to access files using
a file handle. This currently uses parallel data structures and does
not map very well in U-Boot.

Finally, partitions has a similar issue, where defining them as a
device can have benefits, e.g. to specify the device to use directly,
rather than with the 'type dev:part' approach, perhaps providing them
in the devicetree, etc.

For the above reasons, I propose that we implement, as an option,
support for files and partitions within driver model.

Regards,
Simon

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-11  0:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-06 23:05 RFC: Devices for files and partitions Simon Glass
2021-07-09  2:44 ` AKASHI Takahiro
2021-07-09  5:27   ` Heinrich Schuchardt
2021-07-11  0:01     ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.