WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] linux-2.4.29-xenU and blockdev --getss

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] linux-2.4.29-xenU and blockdev --getss
From: Pasi Kärkkäinen <pasik@xxxxxx>
Date: Sat, 12 Feb 2005 21:31:18 +0200
Delivery-date: Sat, 12 Feb 2005 19:32:38 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6+20040523i
Hi!

When I run blockdev --getss on Xen 2.0 Linux-2.4.29-xenU I get this:

$ blockdev --getss /dev/sda4
-1

Why sectorsize is not 512?

$ blockdev --getsize /dev/sda4
2097152

The size of sda4 is 1 GB, so the sectorsize has to be 512.

xenU sda4 is lvm-volume in dom0. 

blockdev on dom0:

$ blockdev --getss /dev/vg0/swap_sda4
512

$ blockdev --getsize /dev/vg0/swap_sda4
2097152

I'm asking this because I'm having problem using loopback-mounts in xenU
using those sd-devices.. mount/loop calculates the device size two times too
big.. and that of course causes problems when trying to access the
non-existing second-half of the loopback-mounted sda4-device.

-- Pasi Kärkkäinen
       
                                   ^
                                .     .
                                 Linux
                              /    -    \
                             Choice.of.the
                           .Next.Generation.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>