linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* New warning: Unable to get device geometry for [filename]
@ 2012-01-27 22:53 Richard W.M. Jones
  2012-01-28  3:57 ` Eric Sandeen
  0 siblings, 1 reply; 3+ messages in thread
From: Richard W.M. Jones @ 2012-01-27 22:53 UTC (permalink / raw)
  To: linux-ext4


I've just noticed that with the latest e2fsprogs, kernel 3.3.0 and
blkid (util-linux 2.20.1), I see this spurious warning when using
mke2fs on a file:

  $ truncate -s 4G test1.img
  $ mke2fs -t ext2 -q -F test1.img 
  warning: Unable to get device geometry for test1.img

Oddly this *doesn't* happen except on the very bleeding edge latest
versions of everything.  I've not (yet) worked out exactly what
component has to be upgraded to see it ...

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: New warning: Unable to get device geometry for [filename]
  2012-01-27 22:53 New warning: Unable to get device geometry for [filename] Richard W.M. Jones
@ 2012-01-28  3:57 ` Eric Sandeen
  2012-01-30 14:34   ` Richard W.M. Jones
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Sandeen @ 2012-01-28  3:57 UTC (permalink / raw)
  To: Richard W.M. Jones; +Cc: linux-ext4

On 1/27/12 4:53 PM, Richard W.M. Jones wrote:
> 
> I've just noticed that with the latest e2fsprogs, kernel 3.3.0 and
> blkid (util-linux 2.20.1), I see this spurious warning when using
> mke2fs on a file:
> 
>   $ truncate -s 4G test1.img
>   $ mke2fs -t ext2 -q -F test1.img 
>   warning: Unable to get device geometry for test1.img
> 
> Oddly this *doesn't* happen except on the very bleeding edge latest
> versions of everything.  I've not (yet) worked out exactly what
> component has to be upgraded to see it ...

Taking a quick look, I don't _think_ anything above blkid changed
in e2fsprogs lately, but keep us posted.

Does mkfs.xfs do any differently?

thanks,
-Eric
 
> Rich.
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: New warning: Unable to get device geometry for [filename]
  2012-01-28  3:57 ` Eric Sandeen
@ 2012-01-30 14:34   ` Richard W.M. Jones
  0 siblings, 0 replies; 3+ messages in thread
From: Richard W.M. Jones @ 2012-01-30 14:34 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: linux-ext4

On Fri, Jan 27, 2012 at 09:57:27PM -0600, Eric Sandeen wrote:
> On 1/27/12 4:53 PM, Richard W.M. Jones wrote:
> > 
> > I've just noticed that with the latest e2fsprogs, kernel 3.3.0 and
> > blkid (util-linux 2.20.1), I see this spurious warning when using
> > mke2fs on a file:
> > 
> >   $ truncate -s 4G test1.img
> >   $ mke2fs -t ext2 -q -F test1.img 
> >   warning: Unable to get device geometry for test1.img
> > 
> > Oddly this *doesn't* happen except on the very bleeding edge latest
> > versions of everything.  I've not (yet) worked out exactly what
> > component has to be upgraded to see it ...
> 
> Taking a quick look, I don't _think_ anything above blkid changed
> in e2fsprogs lately, but keep us posted.

Some more observations:

- The warning is 32 bit *only*.  Sorry I didn't notice this rather
  obvious point before.  I have two identically configured Rawhide
  guests, except that one is i686 and the other is x86-64, and only
  the i686 guest gives this warning.

- If the disk is 1G, no warning.  After some binary searching I found
  the threshold for the warning is 'truncate -s 2048M' (greater than
  or equal gives the warning; smaller, no warning).

> Does mkfs.xfs do any differently?

No warning, at least, not with the default settings and a 4G disk on
32 bit.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-30 14:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-27 22:53 New warning: Unable to get device geometry for [filename] Richard W.M. Jones
2012-01-28  3:57 ` Eric Sandeen
2012-01-30 14:34   ` Richard W.M. Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).