Displaying 20 results from an estimated 30 matches for "new_device".
Did you mean:
net_device
2008 Jun 17
6
mirroring zfs slice
Hi All,
I had a slice with zfs file system which I want to mirror, I
followed the procedure mentioned in the amin guide I am getting this
error. Can you tell me what I did wrong?
root # zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
export 254G 230K 254G 0% ONLINE -
root # echo |format
Searching for disks...done
2011 Apr 20
4
[PATCH 1/5] Btrfs: fix bh leak on __btrfs_open_devices path
''bh'' is forgot to release if no error is detected
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
---
fs/btrfs/volumes.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 8b9fb8c..69fc902 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -631,6 +631,7 @@ static int
2008 Dec 17
11
zpool detach on non-mirrored drive
I''m using zfs not to have access to a fail-safe backed up system, but to easily manage my file system. I would like to be able to, as I buy new harddrives, just to be able to replace the old ones. I''m very environmentally concious, so I don''t want to leave old drives in there to consume power as they''ve already been replaced by larger ones. However, ZFS
2009 Jul 21
1
[PATCH node-image] Moved all temporary files into a single work directory to clean up.
...# create the hard disk file
if [ -n "${hdsize}" ]; then
- hdfile=$(mktemp)
+ hdfile=$WORKDIR/$nodename-hd.img
create_hard_disk $hdfile $hdsize
fi
@@ -457,7 +458,7 @@ substitute_boot_device () {
local nodename=$1
local old_device=$2
local new_device=$3
- local new_node_file=$(mktemp)
+ local new_node_file=$WORKDIR/$nodename-new.xml
if [ -n "${nodename}" ]; then
local xml=$(sudo virsh dumpxml $nodename | sed "s/boot dev='"${old_device}"'/boot dev='"${new_device}"'/")...
2007 Jul 20
2
[PATCH] Remove -static from Documentation/lguest/Makefile
...tures = features;
+ descs[i].num_pages = num_pages;
+ if (num_pages) {
+ map_zeroed_pages(top, num_pages);
+ descs[i].pfn = top/getpagesize();
+ top += num_pages*getpagesize();
+ }
+ return &descs[i];
+ }
+ }
+ errx(1, "too many devices");
}
static struct device *new_device(struct device_list *devices,
@@ -669,7 +672,7 @@ static struct device *new_device(struct
dev->fd = fd;
if (handle_input)
set_fd(dev->fd, devices);
- dev->desc = new_dev_desc(type, features, num_pages);
+ dev->desc = new_dev_desc(devices->descs, type, features, num_pages);
d...
2007 Jul 20
2
[PATCH] Remove -static from Documentation/lguest/Makefile
...tures = features;
+ descs[i].num_pages = num_pages;
+ if (num_pages) {
+ map_zeroed_pages(top, num_pages);
+ descs[i].pfn = top/getpagesize();
+ top += num_pages*getpagesize();
+ }
+ return &descs[i];
+ }
+ }
+ errx(1, "too many devices");
}
static struct device *new_device(struct device_list *devices,
@@ -669,7 +672,7 @@ static struct device *new_device(struct
dev->fd = fd;
if (handle_input)
set_fd(dev->fd, devices);
- dev->desc = new_dev_desc(type, features, num_pages);
+ dev->desc = new_dev_desc(devices->descs, type, features, num_pages);
d...
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 07/13] lguest64 loader
...pages;
+ descs[i].pfn = pfn;
+ return &descs[i];
+ }
+ }
+ errx(1, "too many devices");
+}
+
+static void set_fd(int fd, struct devices *devices)
+{
+ FD_SET(fd, &devices->infds);
+ if (fd > devices->max_infd)
+ devices->max_infd = fd;
+}
+
+static struct device *new_device(struct devices *devices,
+ struct lguest_device_desc *descs,
+ u16 type, u16 num_pages,
+ int fd,
+ int (*handle_input)(int, struct device *),
+ unsigned long watch_off,
+ u32 (*handle_output)(int,
+ const struct iovec *,
+ unsigned,
+ struct...
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 07/13] lguest64 loader
...pages;
+ descs[i].pfn = pfn;
+ return &descs[i];
+ }
+ }
+ errx(1, "too many devices");
+}
+
+static void set_fd(int fd, struct devices *devices)
+{
+ FD_SET(fd, &devices->infds);
+ if (fd > devices->max_infd)
+ devices->max_infd = fd;
+}
+
+static struct device *new_device(struct devices *devices,
+ struct lguest_device_desc *descs,
+ u16 type, u16 num_pages,
+ int fd,
+ int (*handle_input)(int, struct device *),
+ unsigned long watch_off,
+ u32 (*handle_output)(int,
+ const struct iovec *,
+ unsigned,
+ struct...
2011 May 25
1
Hook script to preserve one partition untouched during install
This hook script tries to address the fact that a RHEV-H installation
will format all the storage devices available in the machine in order to
create HostVG and AppVG with all the available space. It may be the case
that RHEV-H needs to respect and co-exist with a proposed partitioning
scheme, not getting all the storage space for HostVG and AppVG volume
groups.
The proposed solution adds the
2007 May 09
0
[patch 9/9] lguest: the documentation, example launcher
...= type;
+ desc->num_pages = num_pages;
+ desc->features = features;
+ desc->status = 0;
+ if (num_pages) {
+ top -= num_pages*getpagesize();
+ map_zeroed_pages(top, num_pages);
+ desc->pfn = top / getpagesize();
+ } else
+ desc->pfn = 0;
+ return desc;
+}
+
+static struct device *new_device(struct device_list *devices,
+ u16 type, u16 num_pages, u16 features,
+ int fd,
+ bool (*handle_input)(int, struct device *),
+ unsigned long watch_off,
+ u32 (*handle_output)(int,
+ const struct iovec *,
+ unsigned,
+ struct device *))
+{
+ stru...
2007 May 09
0
[patch 9/9] lguest: the documentation, example launcher
...= type;
+ desc->num_pages = num_pages;
+ desc->features = features;
+ desc->status = 0;
+ if (num_pages) {
+ top -= num_pages*getpagesize();
+ map_zeroed_pages(top, num_pages);
+ desc->pfn = top / getpagesize();
+ } else
+ desc->pfn = 0;
+ return desc;
+}
+
+static struct device *new_device(struct device_list *devices,
+ u16 type, u16 num_pages, u16 features,
+ int fd,
+ bool (*handle_input)(int, struct device *),
+ unsigned long watch_off,
+ u32 (*handle_output)(int,
+ const struct iovec *,
+ unsigned,
+ struct device *))
+{
+ stru...
2008 Jan 22
0
zpool attach problem
...7E4BE2BEDBC9600d0 to c8t600C0FF000000000082668310F838000d0: device is too small
</pre>
Is this expected behavior? The ''zpool'' man page says:
If device is not currently part of a mirrored configuration, device
automatically transforms into a two-way mirror of device and new_device.
But, this isn''t what I''m seeing . . . did I do something wrong?
Here''s the format output for the disks:
<pre>
4. c8t600C0FF00000000007E4BE2BEDBC9600d0 <SUN-StorEdge 3510-421F-545.91GB>
/scsi_vhci/ssd at g600c0ff00000000007e4be2bedb...
2013 Sep 01
0
[PATCH] btrfs: use list_for_each_entry_safe() when delete items
...device, *next;
if (--fs_devices->opened > 0)
return 0;
mutex_lock(&fs_devices->device_list_mutex);
- list_for_each_entry(device, &fs_devices->devices, dev_list) {
+ list_for_each_entry_safe(device, next, &fs_devices->devices, dev_list) {
struct btrfs_device *new_device;
struct rcu_string *name;
--
1.7.10.4
2010 Jan 08
2
Virtio ballooning support for Lguest
Hi,
I am doing working on enabling Transcendent Memory(OLS '09) support on
lguest.
For the same, I need ballooning support for lguest. Is there an
implmentation of Virtio Balloon driver, that I can use for my purpose?
Could someone give me an insight, as to how to go about, for implementing
this myself, incase I dont find this patch...
Thankyou.
--
Gaurav Kukreja
+91 997 030 1257
2010 Jan 08
2
Virtio ballooning support for Lguest
Hi,
I am doing working on enabling Transcendent Memory(OLS '09) support on
lguest.
For the same, I need ballooning support for lguest. Is there an
implmentation of Virtio Balloon driver, that I can use for my purpose?
Could someone give me an insight, as to how to go about, for implementing
this myself, incase I dont find this patch...
Thankyou.
--
Gaurav Kukreja
+91 997 030 1257
2010 Mar 26
3
[PATCH node] Update autobuild and autotest scripts for new build structure
...sudo virsh start $nodename > /dev/null 2>&1
+ if $show_viewer; then
+ start_virt_viewer $nodename
+ fi
+}
+
+# $1 - the node name
+# $2 - the old boot device
+# $3 - the new boot device
+substitute_boot_device () {
+ local nodename=$1
+ local old_device=$2
+ local new_device=$3
+ local new_node_file=$WORKDIR/$nodename-new.xml
+
+ if [ -n "${nodename}" ]; then
+ local xml=$(sudo virsh dumpxml $nodename | sed "s/boot dev='"${old_device}"'/boot dev='"${new_device}"'/")
+
+ sudo printf "${xml}...
2007 Apr 18
1
[PATCH 0/2] Use a single loader for i386 and x86_64
...e_offset)
+static unsigned long load_bzimage(int bzimage_fd, const Elf32_Ehdr *ehdr,
+ unsigned long mem, unsigned long *pgdir_addr,
+ const char *initrd, unsigned long *ird_size,
+ unsigned long *page_offset)
{
unsigned char c;
int state = 0;
@@ -363,7 +509,7 @@ static struct device *new_device(struct
int fd,
int (*handle_input)(int, struct device *),
unsigned long watch_off,
- u32 (*handle_output)(int,
+ unsigned long (*handle_output)(int,
const struct iovec *,
unsigned,
struct device *))
@@ -384,16 +530,16 @@ static struc...
2007 Apr 18
1
[PATCH 0/2] Use a single loader for i386 and x86_64
...e_offset)
+static unsigned long load_bzimage(int bzimage_fd, const Elf32_Ehdr *ehdr,
+ unsigned long mem, unsigned long *pgdir_addr,
+ const char *initrd, unsigned long *ird_size,
+ unsigned long *page_offset)
{
unsigned char c;
int state = 0;
@@ -363,7 +509,7 @@ static struct device *new_device(struct
int fd,
int (*handle_input)(int, struct device *),
unsigned long watch_off,
- u32 (*handle_output)(int,
+ unsigned long (*handle_output)(int,
const struct iovec *,
unsigned,
struct device *))
@@ -384,16 +530,16 @@ static struc...
2007 Dec 21
0
[kvm-devel] [Virtio-for-kvm] [PATCH 2/13] [Mostly resend] virtio additions
...d_and_trigger(fd, dev->vq, head, len);
+
+ /* Everything went OK! */
+ return true;
+}
+
+static void setup_rng(void)
+{
+ struct device *dev;
+ int fd;
+
+ fd = open_or_die("/dev/urandom", O_RDONLY);
+
+ /* The device responds to return from I/O thread. */
+ dev = new_device("rng", VIRTIO_ID_RNG, fd, handle_rng_input);
+
+ /* The device has one virtqueue, where the Guest places inbufs. */
+ add_virtqueue(dev, VIRTQUEUE_NUM, enable_fd);
+
+ verbose("device %u: rng\n", devices.device_num);
+}
+/* That's the end of device setup. */
+
/*L:...
2007 Dec 21
0
[kvm-devel] [Virtio-for-kvm] [PATCH 2/13] [Mostly resend] virtio additions
...d_and_trigger(fd, dev->vq, head, len);
+
+ /* Everything went OK! */
+ return true;
+}
+
+static void setup_rng(void)
+{
+ struct device *dev;
+ int fd;
+
+ fd = open_or_die("/dev/urandom", O_RDONLY);
+
+ /* The device responds to return from I/O thread. */
+ dev = new_device("rng", VIRTIO_ID_RNG, fd, handle_rng_input);
+
+ /* The device has one virtqueue, where the Guest places inbufs. */
+ add_virtqueue(dev, VIRTQUEUE_NUM, enable_fd);
+
+ verbose("device %u: rng\n", devices.device_num);
+}
+/* That's the end of device setup. */
+
/*L:...