search for: root_dev

Displaying 20 results from an estimated 72 matches for "root_dev".

2006 Jun 26
0
[klibc 06/43] Re-create ROOT_DEV, too many architectures need it.
ROOT_DEV carries a root device number communicated in an architecture- specific way. We now pass it to kinit via the real-root-dev sysctl call. Signed-off-by: H. Peter Anvin <hpa at zytor.com> --- commit 0f5a324d655ad582246b6830843114d09835f593 tree fd3a96a69b6d74ee33dcd54a58b8666c02139a3a parent f...
2011 Mar 22
1
[PATCH v2v] Add --root (root choice) option.
...s" => \$profile, "list-profiles" => \$list_profiles ) or pod2usage(2); @@ -539,20 +579,74 @@ sub inspect_guest my $oses = inspect_operating_systems ($g, \%fses); - # Only work on single-root operating systems. + # Get list of roots, sorted. my $root_dev; - my @roots = keys %$oses; + my @roots = sort (keys %$oses); if(@roots == 0) { v2vdie __('No root device found in this operating system image.'); } - if(@roots > 1) { - v2vdie __('Multiboot operating systems are not supported by virt-v2v.')...
2011 Apr 26
7
[PATCH 1/7] Push $desc creation into Sys::VirtConvert::Converter->convert
...initrd, and is therefore extremely nasty # and applicable only to a particular version of mkinitrd. if ($desc->{distro} eq 'rhel' && $desc->{major_version} eq '4') { - push(@env, 'root_lvm=1') if ($g->is_lv($desc->{root_device})); + push(@env, 'root_lvm=1') if ($g->is_lv($root)); } $g->sh(join(' ', @env).' /sbin/mkinitrd '.join(' ', @module_args). diff --git a/lib/Sys/VirtConvert/Converter/Windows.pm b/lib/Sys/VirtConvert/Converter/Window...
2003 May 22
0
[PATCH 2.5.69 2/3] Remove NFS root support from the kernel
...ch/ppc/platforms/spruce_setup.c | 4 b/arch/ppc/platforms/zx4500_setup.c | 4 b/arch/sparc/defconfig | 1 b/arch/um/config.release | 1 b/fs/Kconfig | 11 b/fs/nfs/Makefile | 1 b/include/linux/root_dev.h | 2 b/init/do_mounts.c | 51 +-- b/kernel/sysctl.c | 4 b/net/sunrpc/pmap_clnt.c | 33 -- fs/nfs/mount_clnt.c | 183 ------------ fs/nfs/nfsroot.c | 472 ---------------------...
2010 Mar 24
2
[PATCH node][REPOST 1/2] Fix uninstall to detect and cleanup correct partitions
...+ root2=RootBackup + elif findfs LABEL=RootUpdate 2>&1 >/dev/null; then + root2=RootUpdate + elif findfs LABEL=RootNew 2>&1 >/dev/null; then + root2=RootNew + fi + if ! get_part_info $(findfs LABEL=Root 2>/dev/null) root_dev root_part; then + log "Can't find Root device" + exit 2 + fi + if ! get_part_info $(findfs LABEL=${root2} 2>/dev/null) root2_dev root2_part; then + log "Can't find RootBackup/RootNew/RootUpdate device" + exit 3...
2011 Mar 10
1
[PATCH 10/21] Staging: hv: Cleanup root device handling
...lt;hjanssen at microsoft.com> */ #include <linux/init.h> +#include <linux/err.h> #include <linux/module.h> #include <linux/device.h> #include <linux/irq.h> @@ -40,6 +41,8 @@ #define VMBUS_IRQ 0x5 #define VMBUS_IRQ_VECTOR IRQ5_VECTOR +static struct device *root_dev; /* Root device */ + /* Main vmbus driver data structure */ struct vmbus_driver_context { @@ -47,8 +50,6 @@ struct vmbus_driver_context { struct tasklet_struct msg_dpc; struct tasklet_struct event_dpc; - /* The bus root device */ - struct hv_device device_ctx; }; static int vmbus_matc...
2011 Mar 10
1
[PATCH 10/21] Staging: hv: Cleanup root device handling
...lt;hjanssen at microsoft.com> */ #include <linux/init.h> +#include <linux/err.h> #include <linux/module.h> #include <linux/device.h> #include <linux/irq.h> @@ -40,6 +41,8 @@ #define VMBUS_IRQ 0x5 #define VMBUS_IRQ_VECTOR IRQ5_VECTOR +static struct device *root_dev; /* Root device */ + /* Main vmbus driver data structure */ struct vmbus_driver_context { @@ -47,8 +50,6 @@ struct vmbus_driver_context { struct tasklet_struct msg_dpc; struct tasklet_struct event_dpc; - /* The bus root device */ - struct hv_device device_ctx; }; static int vmbus_matc...
2010 Mar 23
1
[PATCH node][RFC] Remove dependencies on /dev/disk/by-label entries
...# keep the list of services @@ -709,12 +709,14 @@ lvremove() { # cleanup before reboot reboot() { cd / - # setup new Root if update is prepared - if [ -e "/dev/disk/by-label/RootUpdate" ]; then - root_update_dev=$(readlink -f /dev/disk/by-label/RootUpdate) - root_dev=$(readlink -f /dev/disk/by-label/Root) - e2label $root_dev RootBackup - e2label $root_update_dev Root + if [ "$OVIRT_ISCSI_ENABLED" = "yes" ]; then + # setup new Root if update is prepared + if findfs LABEL=RootUpdate 2>&1 >/dev/null; the...
2011 Nov 22
0
[PATCH] kinit: Add ability to mount filesystems via /etc/fstab or cmdline
...init/do_mounts.c +++ b/usr/kinit/do_mounts.c @@ -7,6 +7,7 @@ #include <string.h> #include <unistd.h> #include <inttypes.h> +#include <mntent.h> #include "do_mounts.h" #include "kinit.h" @@ -199,12 +200,97 @@ mount_root(int argc, char *argv[], dev_t root_dev, const char *root_dev_name) return ret; } +int do_cmdline_mounts(int argc, char *argv[]) +{ + int arg_i; + + for (arg_i = 0; arg_i < argc; arg_i++) { + const char *fs_name, *fs_dir, *fs_type; + char *fs_opts; + unsigned long flags = 0; + char new_fs_opts[128] = { 0 }; + char *saveptr =...
2011 Mar 10
1
[PATCH 13/21] [PATCH 13/21] Staging: hv: Rename vmbus_driver_context structure
...+++-------------------- 1 files changed, 16 insertions(+), 20 deletions(-) diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv/vmbus_drv.c index 4e45016..7b9a2c8 100644 --- a/drivers/staging/hv/vmbus_drv.c +++ b/drivers/staging/hv/vmbus_drv.c @@ -44,12 +44,10 @@ static struct device *root_dev; /* Root device */ struct pci_dev *hv_pci_dev; /* Main vmbus driver data structure */ -struct vmbus_driver_context { - +struct hv_bus { struct bus_type bus; struct tasklet_struct msg_dpc; struct tasklet_struct event_dpc; - }; static int vmbus_match(struct device *device, struct device...
2011 Mar 10
1
[PATCH 13/21] [PATCH 13/21] Staging: hv: Rename vmbus_driver_context structure
...+++-------------------- 1 files changed, 16 insertions(+), 20 deletions(-) diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv/vmbus_drv.c index 4e45016..7b9a2c8 100644 --- a/drivers/staging/hv/vmbus_drv.c +++ b/drivers/staging/hv/vmbus_drv.c @@ -44,12 +44,10 @@ static struct device *root_dev; /* Root device */ struct pci_dev *hv_pci_dev; /* Main vmbus driver data structure */ -struct vmbus_driver_context { - +struct hv_bus { struct bus_type bus; struct tasklet_struct msg_dpc; struct tasklet_struct event_dpc; - }; static int vmbus_match(struct device *device, struct device...
2005 Jan 11
17
[Fwd: Installing from distribution CDs]
Sorry, hit send instead of attach again. Rest of patches included. -- Anthony Liguori Samba, Linux/Windows Interoperability Linux Technology Center (LTC) - IBM Austin E-mail: aliguori@us.ibm.com Phone: (512) 838-1208 Tie Line: 678-1208
2006 Jun 26
0
[klibc 07/43] Eliminate unnecessary whitespace delta vs. Linus' tree
...l/setup.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/i386/kernel/setup.c b/arch/i386/kernel/setup.c index 54c72d9..4945931 100644 --- a/arch/i386/kernel/setup.c +++ b/arch/i386/kernel/setup.c @@ -1460,7 +1460,7 @@ #ifdef CONFIG_EFI efi_enabled = 1; #endif - ROOT_DEV = old_decode_dev(ORIG_ROOT_DEV); + ROOT_DEV = old_decode_dev(ORIG_ROOT_DEV); drive_info = DRIVE_INFO; screen_info = SCREEN_INFO; edid_info = EDID_INFO; diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c index 6d4f025..003667e 100644 --- a/arch/x86_64/kernel/setup.c +++ b/...
2010 Mar 02
17
[PATCH 00/16] External building, update for 2.6.33 and multiple root devices.
...use $(srctree) 9: Fix asm includes for newer kernel sources. 10: Add missing NFS mount RPC call ordinals. 11: packet.h needs a definition for struct iovec 12: netdev.c needs sockios.h 13: Define types and values in sys/socket.h 14: Include sys/socket.h from net/if_arp.h 15: Drop unused argument root_dev to ramdisk_load() 16: Support for multiple devices specified on the root= cmdline. Thanks, Mike Waychison
2010 Mar 23
1
[PATCH node][RFC] Fix uninstall to detect and cleanup correct partitions
...LABEL=RootBackup 2>&1 >/dev/null; then + root2=RootBackup + elif findfs LABEL=RootUpdate 2>&1 >/dev/null; then + root2=RootUpdate + elif findfs LABEL=RootNew 2>&1 >/dev/null; then + root2=RootNew + fi + local root_dev root_part pv_dev pv_part root2_dev root2_part + if ! get_part_info $(findfs LABEL=Root 2>/dev/null) root_dev root_part; then + log "Can't find Root device" + exit 2 + fi + if ! get_part_info $(findfs LABEL=root2 2>/dev/null) root2_dev r...
2010 Oct 27
0
[PATCH node] add uninstall module
...;findfs LABEL=RootNew 2>&1 >/dev/null") + if rc == 0: + root2 = "RootNew" + + root_label_lookup_cmd = "findfs LABEL=Root" + root_label_lookup = subprocess.Popen(root_label_lookup_cmd, shell=True, stdout=PIPE, stderr=STDOUT) + root_device = root_label_lookup.stdout.read() + if root_device is None: + log("Can't find Root device") + sys.exit(2) + root_dev, root_part = get_part_info(root_device) + + root2_label_lookup_cmd = "findfs LABEL=" + root2 + root2_lab...
2011 Mar 10
2
[PATCH 11/21] Staging: hv: Make vmbus driver a platform pci driver
...+++++----------------- 1 files changed, 36 insertions(+), 27 deletions(-) diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv/vmbus_drv.c index 8b9394a..e4855ac 100644 --- a/drivers/staging/hv/vmbus_drv.c +++ b/drivers/staging/hv/vmbus_drv.c @@ -43,6 +43,8 @@ static struct device *root_dev; /* Root device */ +struct pci_dev *hv_pci_dev; + /* Main vmbus driver data structure */ struct vmbus_driver_context { @@ -887,36 +889,24 @@ static irqreturn_t vmbus_isr(int irq, void *dev_id) } } -static struct dmi_system_id __initdata microsoft_hv_dmi_table[] = { - { - .ident = "...
2011 Mar 10
2
[PATCH 11/21] Staging: hv: Make vmbus driver a platform pci driver
...+++++----------------- 1 files changed, 36 insertions(+), 27 deletions(-) diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv/vmbus_drv.c index 8b9394a..e4855ac 100644 --- a/drivers/staging/hv/vmbus_drv.c +++ b/drivers/staging/hv/vmbus_drv.c @@ -43,6 +43,8 @@ static struct device *root_dev; /* Root device */ +struct pci_dev *hv_pci_dev; + /* Main vmbus driver data structure */ struct vmbus_driver_context { @@ -887,36 +889,24 @@ static irqreturn_t vmbus_isr(int irq, void *dev_id) } } -static struct dmi_system_id __initdata microsoft_hv_dmi_table[] = { - { - .ident = "...
2006 Jun 26
0
[klibc 16/43] sparc64: transmit arch-specific options to kinit via /arch.cmd
...++++++++++++++++++++++++++-------------- 1 files changed, 61 insertions(+), 31 deletions(-) diff --git a/arch/sparc64/kernel/setup.c b/arch/sparc64/kernel/setup.c index 9cf1c88..e8f61fa 100644 --- a/arch/sparc64/kernel/setup.c +++ b/arch/sparc64/kernel/setup.c @@ -32,6 +32,7 @@ #include <linux/root_dev.h> #include <linux/interrupt.h> #include <linux/cpu.h> #include <linux/initrd.h> +#include <linux/fcntl.h> #include <asm/system.h> #include <asm/io.h> @@ -102,7 +103,7 @@ int obp_system_intr(void) return 0; } -/* +/* * Process kernel command lin...
2010 Mar 23
0
[PATCH node] Fix uninstall to detect and cleanup correct partitions
...+ root2=RootBackup + elif findfs LABEL=RootUpdate 2>&1 >/dev/null; then + root2=RootUpdate + elif findfs LABEL=RootNew 2>&1 >/dev/null; then + root2=RootNew + fi + if ! get_part_info $(findfs LABEL=Root 2>/dev/null) root_dev root_part; then + log "Can't find Root device" + exit 2 + fi + if ! get_part_info $(findfs LABEL=${root2} 2>/dev/null) root2_dev root2_part; then + log "Can't find RootBackup/RootNew/RootUpdate device" + exit 3...