Re: ANNOUNCE - mdadm 0.7.1

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

 



On Fri, Mar 15, 2002 at 04:30:28PM +1100, Neil Brown wrote:
> mdadm 0.7.1 is now available at
> 
Great!
> 
>  from ChangeLog
> 
> Changed Prior to 0.7.1 release
>     -   update mdadm.spec
i would add
Obsoletes: mdctl
and put %config(noreplace,missingok) in front of /etc/mdadm.conf in the %files section
i would hate if upgrading the rpm would screw my configuration file.

>     -   use BLKGETSIZE64 if available for array size
could you please apply the attached patch, since not everybody has BLKGETSIZE64 defined

Regards,
Luca

-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \
--- ./Detail.c.orig	Mon Mar 11 02:01:49 2002
+++ ./Detail.c	Fri Mar 15 07:59:27 2002
@@ -83,9 +83,12 @@
 	else {
 		long array_size;
 		long long larray_size;
+#ifdef BLKGETSIZE64
 		if (ioctl(fd, BLKGETSIZE64, &larray_size)==0)
 			;
-		else if (ioctl(fd, BLKGETSIZE, &array_size)==0)
+		else
+#endif /* BLKGETSIZE64 */
+		if (ioctl(fd, BLKGETSIZE, &array_size)==0)
 			larray_size = array_size<<9;
 		else larray_size = 0;
 

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux