cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] cluster/cman/qdisk disk.c
@ 2008-01-24  0:19 lhh
  0 siblings, 0 replies; only message in thread
From: lhh @ 2008-01-24  0:19 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL5
Changes by:	lhh at sourceware.org	2008-01-24 00:19:59

Modified files:
	cman/qdisk     : disk.c 

Log message:
	Fix broken device size checking.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/disk.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.4.4.3&r2=1.4.4.4

--- cluster/cman/qdisk/disk.c	2007/12/04 21:09:17	1.4.4.3
+++ cluster/cman/qdisk/disk.c	2008/01/24 00:19:57	1.4.4.4
@@ -215,7 +215,7 @@
 qdisk_open(char *name, target_info_t *disk)
 {
 	int ret;
-	unsigned long ssz;
+	int ssz;
 
 	/*
 	 * Open for synchronous writes to insure all writes go directly
@@ -231,6 +231,7 @@
 		return -1;
 	}
 
+	disk->d_blksz = ssz;
 	disk->d_pagesz = sysconf(_SC_PAGESIZE);
 
 	/* Check to verify that the partition is large enough.*/



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-24  0:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-24  0:19 [Cluster-devel] cluster/cman/qdisk disk.c lhh

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).