bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inserting CD-ROM crashes parted 1.6.6


From: K Borel
Subject: Re: inserting CD-ROM crashes parted 1.6.6
Date: Sun, 18 Jan 2004 02:09:29 -0800
User-agent: KMail/1.5.4

Andrew,

I found that the following patch eliminates the crash.  Is there something 
out-of-date about this section of linux.c?  I note that this section was 
patched at version 1.5.5 with the note that kernel 2.3.0 had some kind of bug 
that was being worked around; yet, this kernel bug seems to have been fixed 
in 2.3.99.

--- parted-1.6.6/libparted/linux.c~     2004-01-18 01:51:03.180622352 -0800
+++ parted-1.6.6/libparted/linux.c      2004-01-18 02:01:33.819750632 -0800
@@ -361,6 +361,8 @@

        PED_ASSERT (dev->open_count, return 0);

+       if (_get_linux_version() > KERNEL_VERSION (2,4,0))
+               return PED_SECTOR_SIZE;
        if (_get_linux_version() < KERNEL_VERSION (2,3,0))
                return PED_SECTOR_SIZE;
        if (ioctl (arch_specific->fd, BLKSSZGET, &sector_size))

K Borel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]