[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sanlock-devel
Subject:    src/diskio.c
From:       teigland () fedoraproject ! org (David Teigland)
Date:       2012-04-02 16:39:05
Message-ID: 20120402163905.74C3330E2 () lists ! fedorahosted ! org
[Download RAW message or body]

 src/diskio.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit cc844a47f15f1f10a90ced3fe957bb2ddf91112b
Author: David Teigland <teigland at redhat.com>
Date:   Mon Apr 2 11:37:26 2012 -0500

    sanlock: remove physical sector size requirement
    
    It's unnecessary to require the physical sector size
    to match logical sector size.
    
    Signed-off-by: David Teigland <teigland at redhat.com>

diff --git a/src/diskio.c b/src/diskio.c
index ec702f9..1555709 100644
--- a/src/diskio.c
+++ b/src/diskio.c
@@ -56,9 +56,7 @@ static int set_disk_properties(struct sync_disk *disk)
 
 	blkid_free_probe(probe);
 
-	if ((sector_size != ss_logical) ||
-	    (sector_size != ss_physical) ||
-	    (sector_size % 512)) {
+	if ((sector_size != ss_logical) || (sector_size % 512)) {
 		log_error("invalid disk sector size %u logical %u "
 			  "physical %u %s", sector_size, ss_logical,
 			  ss_physical, disk->path);



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic