search for: do_mounts_md

Displaying 20 results from an estimated 28 matches for "do_mounts_md".

2006 May 08
1
create_dev and raid
...already been created, by some early-userspace app (udev), there's no need to unlink or even parse the name again. Now, when talking about simple block devices, this doesn't make much of a difference (except when you take into account the FS-mount looping). However, if you take a look at do_mounts_md, if the raid array has already been assembled (say, for instance, because the array was encrypted, or part of an lvm group), kinit will again try to assemble it, spit out a mess of error messages, and carry on. The addition of a simple check in the md loop would fix this issue [see below]. The re...
2007 Dec 11
0
[git patch] kinit fix, header install cleanup
...sam has a reservation git pull git://git.debian.org/~maks/klibc.git maks for the changes: Aaron Griffin (1): [klibc] kinit: skip md assembly if mdX exists maximilian attems (1): [klibc] Kbuild.install header install target cleanup scripts/Kbuild.install | 8 ++++---- usr/kinit/do_mounts_md.c | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) thanks -- maks commit d33c99c558a7cf8ab3dad63fd89a634dcaebb469 Author: maximilian attems <max at stro.at> Date: Wed Dec 12 00:42:10 2007 +0100 [klibc] Kbuild.install header install target cleanup - only creat...
2008 Mar 25
2
bunch of small fixes
...ignature maximilian attems (2): [klibc] Kbuild.install header install target cleanup [klibc] .gitingore: move havesyscall.h entry to top .gitignore .gitignore | 3 +++ scripts/Kbuild.install | 8 ++++---- usr/include/klibc/.gitignore | 1 - usr/kinit/do_mounts_md.c | 4 ++++ usr/kinit/fstype/fstype.c | 4 +++- usr/kinit/fstype/swap_fs.h | 5 +++++ usr/utils/mount_main.c | 10 ++++++++-- usr/utils/umount.c | 8 ++++++-- 8 files changed, 33 insertions(+), 10 deletions(-) delete mode 100644 usr/include/klibc/.gitignore...
2007 Sep 03
2
[git patch] minor fixes
.../klibc.git maks with the following shortlog: maximilian attems (8): [klibc] grp.h: Add declaration of getgrgid(), getgrnam() [klibc] getgrgid, getgrnam include grp.h [klibc] getpwnam, getpwuid include pwd.h [klibc] ctype.h declare char classification functions [klibc] do_mounts_md.c include kinit.h [klibc] strtotimex include time.h [klibc] add some specific .gitignore [klibc] qsort, sleep, strntoumax, strtox, usleep include stdlib.h and diffstat klcc/.gitignore | 2 ++ scripts/basic/.gitignore | 1 + usr/include/ctype.h |...
2010 Nov 20
3
[PATCH 1/4] utils: cleanup unused includes
several errno.h for no good reasons. cleanup losesetup which is not using getopt_long, thus doesn't need getopt.h included. Move stdarg.h include up in losesetup to more proper place. Signed-off-by: maximilian attems <max at stro.at> --- usr/utils/dmesg.c | 1 - usr/utils/losetup.c | 4 +--- usr/utils/mkfifo.c | 1 - usr/utils/nuke.c | 1 - usr/utils/umount.c | 1
2011 Jul 08
4
[PATCH 0/4] usr/kinit checkpatch
...ig: reduce checkpatch noise [klibc] fstype: minor checkpatch fixes [klibc] nfsmount: various checkpatch fixes [klibc] kinit: checkpatch cleanup usr/kinit/devname.c | 6 +++- usr/kinit/do_mounts.c | 7 +++-- usr/kinit/do_mounts.h | 8 +++--- usr/kinit/do_mounts_md.c | 8 +++--- usr/kinit/fstype/fstype.c | 20 ++++++++++----- usr/kinit/ipconfig/dhcp_proto.c | 2 +- usr/kinit/ipconfig/main.c | 42 ++++++++++++++++----------------- usr/kinit/ipconfig/packet.c | 4 +- usr/kinit/nfsmount/dummypmap.c | 2 +- usr/kinit/nfsmou...
2006 May 10
1
[patch] skip existing md devices
....g. mdadm) and should remain there. Currently, kinit removes it and attempts to recreate it, which can cause all sorts of issues, especially in the situation that, the md device is further encrypted and/or is an lvm volume. Signed-off-by: Aaron Griffin <aaron@archlinux.org> --- a/usr/kinit/do_mounts_md.c 2006-05-08 12:59:42.000000000 -0500 +++ b/usr/kinit/do_mounts_md.c 2006-05-10 11:07:08.000000000 -0500 @@ -222,6 +222,7 @@ char *devname; mdu_disk_info_t dinfo; char name[16]; + struct stat st; dev_minor = md_setup_args[ent].minor; partitioned = md_setup_args[ent].partitioned; @@...
2019 Jan 20
0
[klibc:master] Build and install kinit and sh without ".shared" suffix
...it. Is used by programs in sub-directories (resume et al) lib-y := name_to_dev.o devname.o getarg.o capabilities.o # use lib for kinit -kinit-y := lib.a +static/kinit-y := lib.a -kinit-y += kinit.o do_mounts.o ramdisk_load.o initrd.o -kinit-y += getintfile.o readfile.o xpio.o -kinit-y += do_mounts_md.o do_mounts_mtd.o nfsroot.o +static/kinit-y += kinit.o do_mounts.o ramdisk_load.o initrd.o +static/kinit-y += getintfile.o readfile.o xpio.o +static/kinit-y += do_mounts_md.o do_mounts_mtd.o nfsroot.o -kinit-y += ipconfig/ -kinit-y += nfsmount/ -kinit-y += run-init/ -kinit-y += fstype/ -ki...
2007 Aug 24
2
[git patch] klibc bzero, mount fixes + random stuff
...link_name/ kinit, mknod: s/(major|minor)/\1_num/ klibc: strcspn, strpbrk, strspn include string.h resume, kill: axe unused envp usage devname.c: include kinit.h add bzero() and diffstat usr/include/string.h | 1 usr/kinit/devname.c | 2 + usr/kinit/do_mounts_md.c | 18 +++++------ usr/kinit/name_to_dev.c | 16 +++++----- usr/kinit/resume/resume.c | 2 - usr/klibc/Kbuild | 2 - usr/klibc/bzero.c | 9 +++++ usr/klibc/strcspn.c | 1 usr/klibc/strpbrk.c | 1 usr/klibc/strspn.c | 1 usr/utils/cpio...
2006 Jul 11
0
[rfc] standalone kinit/resume
.../Kbuild +++ b/usr/kinit/Kbuild @@ -2,19 +2,21 @@ # # Kbuild file for kinit # -static-y := kinit +static-y := kinit static/resume kinit-y := kinit.o do_mounts.o ramdisk_load.o initrd.o kinit-y += name_to_dev.o devname.o kinit-y += getarg.o getintfile.o open.o readfile.o xpio.o -kinit-y += do_mounts_md.o do_mounts_mtd.o nfsroot.o resume.o +kinit-y += do_mounts_md.o do_mounts_mtd.o nfsroot.o resumelib.o kinit-y += ipconfig/ kinit-y += nfsmount/ kinit-y += run-init/ kinit-y += fstype/ -shared-y := kinit.shared +shared-y := kinit.shared shared/resume kinit.shared-y := $(kinit-y) +stati...
2016 Jan 06
3
whole linux kernel bitcode
Hi all, I'm trying to generate whole program bitcode files for linux kernel and do interprocedural analysis on kernel. I use llvmlinux to compile kernel with clang and generate a bunch of bitcode files successfully. I need to link all these bitcode files together into a single bitcode file, so that I can run whole program analysis. Should I use libLTO to link all these bitcode files
2006 Feb 07
0
Hopefully feature-complete kinit pushed out
I just pushed out a version of kinit into the klibc.git repository which should have the last bit of mandatory (to replace the in-kernel stuff) functionality -- do_mounts_md support. It's quite likely it's full of bugs, but if you're brave, you may want to try it out. It hasn't been migrated to the klibc-renamed and the kernel tree yet; that's next on the list... -hpa
2011 Jul 27
0
klibc 1.5.24 release
...net/if.h | 1 + usr/include/sched.h | 2 + usr/include/sys/un.h | 1 + usr/include/unistd.h | 2 +- usr/kinit/devname.c | 6 ++- usr/kinit/do_mounts.c | 7 ++- usr/kinit/do_mounts.h | 8 ++-- usr/kinit/do_mounts_md.c | 8 ++-- usr/kinit/fstype/fstype.c | 34 ++++++++------ usr/kinit/ipconfig/dhcp_proto.c | 2 +- usr/kinit/ipconfig/main.c | 49 ++++++++----------- usr/kinit/ipconfig/packet.c | 4 +- usr/kinit/nfsmount/dummypmap.c | 2 +- usr/kinit/nfsmount/main.c |...
2012 May 04
2
[PATCH] run-init: add drop_capabilities support
...rams in sub-directories (resume et al) -lib-y := name_to_dev.o devname.o getarg.o +lib-y := name_to_dev.o devname.o getarg.o capabilities.o # use lib for kinit kinit-y := lib.a kinit-y += kinit.o do_mounts.o ramdisk_load.o initrd.o kinit-y += getintfile.o readfile.o xpio.o kinit-y += do_mounts_md.o do_mounts_mtd.o nfsroot.o -kinit-y += capabilities.o kinit-y += ipconfig/ kinit-y += nfsmount/ diff --git a/usr/kinit/capabilities.h b/usr/kinit/capabilities.h new file mode 100644 index 0000000..a32a66a --- /dev/null +++ b/usr/kinit/capabilities.h @@ -0,0 +1,10 @@ +/* + * capabilities.h +...
2011 Aug 03
1
[PATCH v2] kinit: Add drop_capabilities support.
...sr/kinit/capabilities.c diff --git a/usr/kinit/Kbuild b/usr/kinit/Kbuild index ff1d449..8f6d08e 100644 --- a/usr/kinit/Kbuild +++ b/usr/kinit/Kbuild @@ -10,6 +10,7 @@ kinit-y := lib.a kinit-y += kinit.o do_mounts.o ramdisk_load.o initrd.o kinit-y += getintfile.o readfile.o xpio.o kinit-y += do_mounts_md.o do_mounts_mtd.o nfsroot.o +kinit-y += capabilities.o kinit-y += ipconfig/ kinit-y += nfsmount/ diff --git a/usr/kinit/capabilities.c b/usr/kinit/capabilities.c new file mode 100644 index 0000000..ad4d6ea --- /dev/null +++ b/usr/kinit/capabilities.c @@ -0,0 +1,237 @@ +/* + * Copyright 2011...
2011 Aug 02
6
[PATCH v2 0/4] Support drop directories directly from kinit
This patchset applies to klibc mainline. This patchset introduces the ability to kinit to execute scripts or executable files present in in the initramfs before switching over to the root filesystem. It is implemented by first implementing scandir() and alphasort() as present in POSIX.1-2008 in klibc itself, and then using that as the basis for iterating and executing files via a run_scripts()
2011 Jul 29
3
[PATCH 1/3] klibc: Add scandir() and alphasort() support.
Add support for scandir() and alphasort() as defined in POSIX.1-2008. Signed-off-by: Mike Waychison <mikew at google.com> --- usr/include/dirent.h | 7 +++++ usr/klibc/Kbuild | 2 + usr/klibc/scandir.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+), 1 deletions(-) create mode 100644 usr/klibc/scandir.c diff --git
2006 Jul 09
6
[PATCH/RFC] klibc/kbuild: use separate kbuild files for each klibc subdirectory
This fixes a long standing issue where it was not possible to do "make usr/klibc/arch/x86_64/longjmp.o" in the kernel. The principle is that all .o files to be part of klibc are listed with klib-y. For each directory a klib.list file is made that specify all .o file and the final AR then adds all .o files to create libc.a. This patch introduce the infrastructure and converts x86_64 to
2011 Jul 13
9
[PATCH 0/8] switch_root() enhancements
On a train ride to Bruxelles, brought out my axe and directly attacked run_init(8). run_init(8) is dead, long live switch_root(8). The next run on switch_root(8) involves fdopendir, so another push for the upcoming stdio 1.6 branch. The following is boot tested with initramfs-tools, kinit(8) tests would very much be appreciated!? Michal Suchanek (1): [klibc] switch_root: Fix single file
2007 Jun 12
1
Compile error on Xen-305-rc1 on x86_64
...hg/build-linux-2.6.18-xen_x86_64/Makefile CHK include/linux/version.h CHK include/linux/utsrelease.h CC init/main.o CHK include/linux/compile.h CC init/version.o CC init/do_mounts.o CC init/do_mounts_rd.o CC init/do_mounts_initrd.o CC init/do_mounts_md.o LD init/mounts.o CC init/initramfs.o CC init/calibrate.o LD init/built-in.o CC arch/x86_64/kernel/process-xen.o CC arch/x86_64/kernel/signal.o AS arch/x86_64/kernel/entry-xen.o CC arch/x86_64/kernel/traps-xen.o CC arch/x86_64/kernel/i...