[Parted-maintainers] Bug#477378: parted: Can't open ramdisk

Ferenc Wagner wferi at niif.hu
Tue Apr 22 19:48:26 BST 2008


Package: parted
Version: 1.8.8.git.2008.03.24-3
Forwarded: http://parted.alioth.debian.org/cgi-bin/trac.cgi/ticket/192
Tags: upstream

Hi,

This is a duplicate of a genuine GNU Parted ticket, as per fjp's
request on debian-boot.  The version is somewhat fake, this issue was
found in a fresh pull on 2008.04.22, but I wanted to target the
current experimental version.  Here we go:

Seems like 1.8.8 can't open ramdisks anymore, probably due to the use
of O_DIRECT. Not doing make install but running from the build tree:

    # strace -eopen ~/installcd/parted/parted/parted /dev/ram1 print
    [...]
    open("/dev/ram1", O_RDONLY|O_DIRECT|O_LARGEFILE) = -1 EINVAL (Invalid argument)
    Error: Error opening /dev/ram1: Invalid argument                          
    Retry/Cancel?

Version 1.7.1 has no problem opening this device. Strace shows:

    open("/dev/ram1", O_RDONLY|O_LARGEFILE) = 3

Working with a ramdisk would be useful for testing.

The above happens under Linux 2.6.24.2, but an otherwise rather stock
Etch system.
-- 
Thanks,
Feri.





More information about the Parted-maintainers mailing list