<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/common/cmd_ext4.c, branch v2012.10</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<entry>
<title>disk: get_device_and_partition() "auto" partition and cleanup</title>
<updated>2012-09-25T21:58:48+00:00</updated>
<author>
<name>Stephen Warren</name>
<email>swarren@nvidia.com</email>
</author>
<published>2012-09-21T09:50:57+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=10a37fd7a40826c43a63591855346adf1a1ac02d'/>
<id>10a37fd7a40826c43a63591855346adf1a1ac02d</id>
<content type='text'>
Rework get_device_and_partition() to:
a) Implement a new partition ID of "auto", which requests that U-Boot
   search for the first "bootable" partition, and fall back to the first
   valid partition if none is found. This way, users don't need to
   specify an explicit partition in their commands.
b) Make use of get_device().
c) Add parameter to indicate whether returning a whole device is
   acceptable, or whether a partition is mandatory.
d) Make error-checking of the user's device-/partition-specification
   more complete. In particular, if strtoul() doesn't convert all
   characters, it's an error rather than just ignored.

The resultant device/partition returned by the function will be as
follows, based on whether the disk has a partition table (ptable) or not,
and whether the calling command allows the whole device to be returned
or not.

(D and P are integers, P &gt;= 1)

D
D:
  No ptable:
    !allow_whole_dev: error
    allow_whole_dev: device D
  ptable:
    device D partition 1
D:0
  !allow_whole_dev: error
  allow_whole_dev: device D
D:P
  No ptable: error
  ptable: device D partition P
D:auto
  No ptable:
    !allow_whole_dev: error
    allow_whole_dev: device D
  ptable:
    first partition in device D with bootable flag set.
    If none, first valid paratition in device D.

Note: In order to review this patch, it's probably easiest to simply
look at the file contents post-application, rather than reading the
patch itself.

Signed-off-by: Rob Herring &lt;rob.herring@calxeda.com&gt;
[swarren: Rob implemented scanning for bootable partitions. I fixed a
couple of issues there, switched the syntax to ":auto", added the
error-checking rework, and ":0" syntax for the whole device]
Signed-off-by: Stephen Warren &lt;swarren@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rework get_device_and_partition() to:
a) Implement a new partition ID of "auto", which requests that U-Boot
   search for the first "bootable" partition, and fall back to the first
   valid partition if none is found. This way, users don't need to
   specify an explicit partition in their commands.
b) Make use of get_device().
c) Add parameter to indicate whether returning a whole device is
   acceptable, or whether a partition is mandatory.
d) Make error-checking of the user's device-/partition-specification
   more complete. In particular, if strtoul() doesn't convert all
   characters, it's an error rather than just ignored.

The resultant device/partition returned by the function will be as
follows, based on whether the disk has a partition table (ptable) or not,
and whether the calling command allows the whole device to be returned
or not.

(D and P are integers, P &gt;= 1)

D
D:
  No ptable:
    !allow_whole_dev: error
    allow_whole_dev: device D
  ptable:
    device D partition 1
D:0
  !allow_whole_dev: error
  allow_whole_dev: device D
D:P
  No ptable: error
  ptable: device D partition P
D:auto
  No ptable:
    !allow_whole_dev: error
    allow_whole_dev: device D
  ptable:
    first partition in device D with bootable flag set.
    If none, first valid paratition in device D.

Note: In order to review this patch, it's probably easiest to simply
look at the file contents post-application, rather than reading the
patch itself.

Signed-off-by: Rob Herring &lt;rob.herring@calxeda.com&gt;
[swarren: Rob implemented scanning for bootable partitions. I fixed a
couple of issues there, switched the syntax to ":auto", added the
error-checking rework, and ":0" syntax for the whole device]
Signed-off-by: Stephen Warren &lt;swarren@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cmd_extX: use common get_device_and_partition function</title>
<updated>2012-09-25T21:46:55+00:00</updated>
<author>
<name>Rob Herring</name>
<email>rob.herring@calxeda.com</email>
</author>
<published>2012-08-23T11:31:46+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=81180819b842602f29f325298ee3e522beda3e0a'/>
<id>81180819b842602f29f325298ee3e522beda3e0a</id>
<content type='text'>
Convert ext2/4 load, ls, and write functions to use common device and
partition parsing function. With the common function "dev:part" can come
from the environment and a '-' can be used in that case.

Signed-off-by: Rob Herring &lt;rob.herring@calxeda.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Convert ext2/4 load, ls, and write functions to use common device and
partition parsing function. With the common function "dev:part" can come
from the environment and a '-' can be used in that case.

Signed-off-by: Rob Herring &lt;rob.herring@calxeda.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ext4: remove init_fs/deinit_fs</title>
<updated>2012-09-25T21:46:35+00:00</updated>
<author>
<name>Rob Herring</name>
<email>rob.herring@calxeda.com</email>
</author>
<published>2012-08-23T11:31:45+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=945010629641b00cca95d1fed4f63009a2b4a113'/>
<id>945010629641b00cca95d1fed4f63009a2b4a113</id>
<content type='text'>
There's no real need to expose this and it can be removed by using a static
allocation.

Signed-off-by: Rob Herring &lt;rob.herring@calxeda.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There's no real need to expose this and it can be removed by using a static
allocation.

Signed-off-by: Rob Herring &lt;rob.herring@calxeda.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ext4fs write support</title>
<updated>2012-08-09T21:48:02+00:00</updated>
<author>
<name>Uma Shankar</name>
<email>uma.shankar@samsung.com</email>
</author>
<published>2012-05-25T15:52:49+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ed34f34dbaf206dfe223f4bc2147d600fe1b0f58'/>
<id>ed34f34dbaf206dfe223f4bc2147d600fe1b0f58</id>
<content type='text'>
Signed-off-by: Uma Shankar &lt;uma.shankar@samsung.com&gt;
Signed-off-by: Manjunatha C Achar &lt;a.manjunatha@samsung.com&gt;
Signed-off-by: Iqbal Shareef &lt;iqbal.ams@samsung.com&gt;
Signed-off-by: Hakgoo Lee &lt;goodguy.lee@samsung.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Uma Shankar &lt;uma.shankar@samsung.com&gt;
Signed-off-by: Manjunatha C Achar &lt;a.manjunatha@samsung.com&gt;
Signed-off-by: Iqbal Shareef &lt;iqbal.ams@samsung.com&gt;
Signed-off-by: Hakgoo Lee &lt;goodguy.lee@samsung.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ext4fs ls load support</title>
<updated>2012-08-09T21:47:43+00:00</updated>
<author>
<name>Uma Shankar</name>
<email>uma.shankar@samsung.com</email>
</author>
<published>2012-05-25T15:51:44+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a1596438a68921d2c9b1fdec70a720d38c85ca7d'/>
<id>a1596438a68921d2c9b1fdec70a720d38c85ca7d</id>
<content type='text'>
Signed-off-by: Uma Shankar &lt;uma.shankar@samsung.com&gt;
Signed-off-by: Manjunatha C Achar &lt;a.manjunatha@samsung.com&gt;
Signed-off-by: Iqbal Shareef &lt;iqbal.ams@samsung.com&gt;
Signed-off-by: Hakgoo Lee &lt;goodguy.lee@samsung.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Uma Shankar &lt;uma.shankar@samsung.com&gt;
Signed-off-by: Manjunatha C Achar &lt;a.manjunatha@samsung.com&gt;
Signed-off-by: Iqbal Shareef &lt;iqbal.ams@samsung.com&gt;
Signed-off-by: Hakgoo Lee &lt;goodguy.lee@samsung.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
