Commit graph

72863 commits

Author SHA1 Message Date
Jean-Baptiste Queru
829dd45fe9 Build for ARMv4T
Modify a few files in the system to use the macros introduced in
<machine/cpu-features.h> in order to build for ARMv4T.
2008-12-04 12:11:15 -08:00
Ivan Djelic
165de92bf1 show error message when exec fails during service startup 2008-12-02 17:58:36 -08:00
Xiaopeng Yang
5bb44c8ea2 Create sound device nodes in /dev/snd/. 2008-12-02 17:54:51 -08:00
Android Code Review
7186a800c0 Merge 2008-12-03 00:56:26 +00:00
Android Code Review
2f688cf94d Merge 2008-11-26 21:14:16 +00:00
Jay Freeman (saurik)
e520d03616 Added support for loop@/path/to/filename to init's mount.
In keeping with the pattern of mtd@partition, I have added loop@path as a way to specify a loopback device. This way you can do things like mount directories in /system using cramfs from a file otherwise on /system (just one example oof how I'm using it). I specifically went with loop@ rather than adding this feature as a flag as the flags system is designed to set bits in the flags argument to mount: using loop@ fit the model in a much simpler manner and actually feels "correct".

This is a better version of the previously submitted 4045 that also refactors the mtd@ case. The reason for this is that I received comments that I should check for errors and return errors rather that do work in the case of success and fall through, but the mtd@ case wasn't doing that either and it became awkward to design the function so that it was half in one style of error handling and half in another. I also made certain to use inequality comparisons for Unix's -1 error returns rather than checking for -1, refactored my large if statement so as not to have danling parentheses, and disassocited the loop device on mount failure.
2008-11-20 18:38:36 +00:00
Jay Freeman (saurik)
1964942af0 Removed special consideration of EBUSY from mountd's auto-mounter.
If the SD card is partitioned and one attempts to use a partition of the SD card for another purpose (maybe even booting off of it), then mmcblk0 is considered "busy" when mountd tries to mount it (as specified by /etc/mountd.conf). Normally, it would then attempt to mount partitions of the device, but as "busy" is specially treated in the code it does not consider this to be an error condition.

The argment for this check is that "the device is likely already mounted", but that is obviously not something that should be assumed (and is not true in this example situation). Even if the device were already mounted, from the auto-mounter's viewpoint this should be considered an error anyway, as it failed to mount it as it was told. I therefore believe this check to not only be causing the above problem but also to be incorrect. This change removes it.

For more information, see this thread:
http://groups.google.com/group/android-porting/browse_thread/thread/a67cbe36603d429a
2008-11-20 00:20:44 +00:00
Jay Freeman (saurik)
bc7b0cbe15 Open file and loop device with O_RDONLY when -o loop,ro.
Otherwise: ioctl LOOP_SET_FD failed: Bad file number.
2008-11-16 13:28:23 +00:00
Alexey Tarasov
abb9638e36 1. added macro definitions to AndroidConfig.h
2. removed unnecessary include of <alloca.h>
2008-11-07 11:44:22 +10:00
Alexey Tarasov
57401dc849 Added AndroidConfig.h for FreeBSD 2008-11-03 03:19:27 +10:00
Mike Lockwood
011a60c9ec logwrapper: switch from root to user/group "log" after forking child.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2008-11-01 15:35:28 -04:00
Iliyan Malchev
3088ff8d39 Set permissions for /dev/msm_snd.
Signed-off-by: Iliyan Malchev <malchev@google.com>
2008-10-29 16:08:18 -07:00
The Android Open Source Project
4f6e8d7a00 Initial Contribution 2008-10-21 07:00:00 -07:00