History log of /external/rootdev/main.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
70c3349d3c1dad47ded90d8da38811c1a8c3fef3 01-Sep-2015 Bertrand SIMONNET <bsimonnet@google.com> Add Android.mk.

BUG: 22953719
Change-Id: Ie7d9ff703e50210e1b6a1ab8bd7f52ae6a6e46f7
/external/rootdev/main.c
32979f65d3e98094cb9e4d3c787eb87f40277e97 12-Dec-2014 Mike Frysinger <vapier@chromium.org> fix --block handling with invalid paths

The rootdev program was printing the path buffer even when the library
call failed. In that case, the buffer most likely is uninitialized.
Make sure we seed it with a NUL byte so it's always valid.

BUG=chromium:441571
TEST=`FEATURES=test emerge-link rootdev` passes

Change-Id: I00d334376de9bedee0a3fac3b1a74e48237c06b7
Reviewed-on: https://chromium-review.googlesource.com/234920
Trybot-Ready: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Yunlian Jiang <yunlian@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
/external/rootdev/main.c
80fbc6c5d03ba9c192f0e406ee0b6ec60711d603 30-Aug-2010 Will Drewry <wad@chromium.org> rootdev: fix -d, add -c and -r. ifdefs for so use

Multiple changes:
- Ensure the -d flag trims off all of the partition info and only if there is a partition
- Add -c, device node creation for platform-agnostic /dev/ROOT, /dev/ROOT0 and /dev/ROOT1
- Add -r, resolve the first slave if the device is a device-mapper device
- Add -s, create a symlink from the found device to /dev/ACTIVE_ROOT
- Adds short-circuiting if /dev/ACTIVE_ROOT exists to both dm resolution and
normal lookups
- Add support for building a library with a reusable header and interfaces

I'll follow this up with a change to install <rootdev/rootdev.h> and the .so in
the ebuild if the interface is at all interesting. If prefered, I can just add:
rootdev -s -r to chromeos_startup, then AU can just rely on readlink(/dev/ACTIVE_ROOT).

BUG=chromium-os:5988
TEST=built for x86-generic testing with vroot: -r, -s, -c, -d and combos
switching to non-vroot to test now
can someone test arm for me?

Change-Id: Ibab8072afb012ea77d457517f1849e0917d02892

Review URL: http://codereview.chromium.org/3141038
/external/rootdev/main.c