bug-parted
[Top][All Lists]
Advanced

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

[patch] linux specific code


From: Neal H Walfield
Subject: [patch] linux specific code
Date: Tue, 14 Aug 2001 10:37:22 +0200
User-agent: Mutt/1.3.18i

There is linux specific code in libparted/device.c.  This patch marks it
as such.

Change log:

2001-08-12  Neal H Walfield  <address@hidden>

        * libparted/device.c (ped_device_get_part_path) [!__linux__]:
        Remove Linux specific code.

diff --exclude aclocal.m4 --exclude configure --exclude Makefile.in -urNp 
parted-1.5.4-pre1.orig/libparted/device.c parted-1.5.4-pre1/libparted/device.c
--- parted-1.5.4-pre1.orig/libparted/device.c   Wed Jul 25 04:11:25 2001
+++ parted-1.5.4-pre1/libparted/device.c        Mon Aug 13 18:58:28 2001
@@ -337,6 +282,7 @@ ped_device_get_part_path (PedDevice* dev
        if (!result)
                return NULL;
 
+#ifdef __linux__
        if (strstr (dev->path, "disc"))         /* HACK: devfs */
                snprintf (result, result_len, "%s/part%d", dev->path, num);
        else if (dev->type == PED_DEVICE_DAC960
@@ -344,6 +290,7 @@ ped_device_get_part_path (PedDevice* dev
                        || dev->type == PED_DEVICE_ATARAID)
                snprintf (result, result_len, "%sp%d", dev->path, num);
        else
+#endif
                snprintf (result, result_len, "%s%d", dev->path, num);
 
        return result;

Attachment: pgpYcQW5kgO1K.pgp
Description: PGP signature


reply via email to

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