f7e20b2
From 25442f958a12b428b7d063b927ac48965dcd8164 Mon Sep 17 00:00:00 2001
f7e20b2
From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan@danny.cz>
f7e20b2
Date: Fri, 28 Jan 2011 16:11:19 +0100
f7e20b2
Subject: [PATCH] use detected filesystem block size on FBA devices
f7e20b2
f7e20b2
If a FBA device is not properly formated, then the CMS file system can
f7e20b2
have a different block size. The cmsfs tools were able to detect the file
f7e20b2
system block size, but in fact they still used default 512 instead. And
f7e20b2
using the default was causing crashes. Now the detected value is used.
f7e20b2
f7e20b2
https://bugzilla.redhat.com/show_bug.cgi?id=651012
f7e20b2
---
f7e20b2
 cmsfsany.c |    2 +-
f7e20b2
 1 files changed, 1 insertions(+), 1 deletions(-)
f7e20b2
f7e20b2
diff --git a/cmsfsany.c b/cmsfsany.c
f7e20b2
index 55bcfdc..18efffb 100644
f7e20b2
--- a/cmsfsany.c
f7e20b2
+++ b/cmsfsany.c
f7e20b2
@@ -102,7 +102,7 @@ int cmsfs_find_label(struct CMSSUPER *vol,struct CMSFSADT *adt)
f7e20b2
             cmsfs_error(cmsfs_ermsg);
f7e20b2
           }
f7e20b2
         vol->flags = CMSFSFBA;
f7e20b2
-        vol->blksz = 512;
f7e20b2
+        vol->blksz = blksz;
f7e20b2
         return vol->blksz;
f7e20b2
       } }
f7e20b2
 
f7e20b2
-- 
f7e20b2
1.7.3.5
f7e20b2