All of lore.kernel.org
 help / color / mirror / Atom feed
* reiser4 on large block devices
@ 2005-05-31 18:42 Aaron Porter
  2005-06-01 12:42 ` Vitaly Fertman
  0 siblings, 1 reply; 5+ messages in thread
From: Aaron Porter @ 2005-05-31 18:42 UTC (permalink / raw)
  To: reiserfs-list


	I'm trying to create a reiser4 filesystem on a ~4tb block device,
but I'm getting the error "Fatal: The partition size is too big." The FAQ
seems to list a max filesystem size of 16tb. Am I missing something?

diablo:~# mkreiser4 /dev/sda3
mkreiser4 1.0.4
Copyright (C) 2001, 2002, 2003, 2004 by Hans Reiser, licensing governed by 
reiser4progs/COPYING. 

Block size 4096 will be used.                                                 
Linux 2.6.11.8 is detected.                                                   
Uuid f22c4f94-4fcd-4655-b4e0-6665048db8ce will be used.                       
Fatal: The partition size is too big.                                         
Reiser4 is going to be created on /dev/sda3.                                  
(Yes/No): no
diablo:~#

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: reiser4 on large block devices
  2005-05-31 18:42 reiser4 on large block devices Aaron Porter
@ 2005-06-01 12:42 ` Vitaly Fertman
  2005-06-01 17:27   ` Aaron Porter
  0 siblings, 1 reply; 5+ messages in thread
From: Vitaly Fertman @ 2005-06-01 12:42 UTC (permalink / raw)
  To: reiserfs-list; +Cc: Aaron Porter

[-- Attachment #1: Type: text/plain, Size: 932 bytes --]

On Tuesday 31 May 2005 22:42, Aaron Porter wrote:
> 
> 	I'm trying to create a reiser4 filesystem on a ~4tb block device,
> but I'm getting the error "Fatal: The partition size is too big." The FAQ
> seems to list a max filesystem size of 16tb. Am I missing something?
> 
> diablo:~# mkreiser4 /dev/sda3
> mkreiser4 1.0.4
> Copyright (C) 2001, 2002, 2003, 2004 by Hans Reiser, licensing governed by 
> reiser4progs/COPYING. 
> 
> Block size 4096 will be used.                                                 
> Linux 2.6.11.8 is detected.                                                   
> Uuid f22c4f94-4fcd-4655-b4e0-6665048db8ce will be used.                       
> Fatal: The partition size is too big.                                         
> Reiser4 is going to be created on /dev/sda3.                                  
> (Yes/No): no
> diablo:~#

would you try this patch for libaal-1.0.4?

-- 
Thanks,
Vitaly Fertman

[-- Attachment #2: libaal-1.172.patch --]
[-- Type: text/x-diff, Size: 2522 bytes --]

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2005/03/21 13:15:23+03:00 vitaly@digger.namesys.com 
#   use BLKBLKGETSIZE & BLKGETSIZE6464 defines
#   
#   file.c:
#     do not limit file size by 2^41 bytes
#     
#   configure.in:
#     check for large files correctly
# 
# src/file.c
#   2005/03/21 13:14:02+03:00 vitaly@digger.namesys.com +3 -4
# 
# src/file.c
#   2005/03/21 12:40:49+03:00 vitaly@digger.namesys.com +3 -14
#   do not limit file size by 2^41 bytes
# 
# configure.in
#   2005/03/21 12:40:29+03:00 vitaly@digger.namesys.com +1 -1
#   check for large files correctly
# 
diff -Nru a/configure.in b/configure.in
--- a/configure.in	2005-06-01 15:50:06 +04:00
+++ b/configure.in	2005-06-01 15:50:06 +04:00
@@ -136,7 +136,7 @@
 GENERIC_CFLAGS="$GENERIC_CFLAGS -D_REENTRANT"
 
 AC_SYS_LARGEFILE
-if test -z "${ac_cv_sys_file_offset_bits}"; then
+if test x${ac_cv_sys_file_offset_bits} = xno; then
 	AC_MSG_WARN(Can't detect right _FILE_OFFSET_BITS. Will be forced to 64bit.)
 	ac_cv_sys_file_offset_bits=64
 fi
diff -Nru a/src/file.c b/src/file.c
--- a/src/file.c	2005-06-01 15:50:06 +04:00
+++ b/src/file.c	2005-06-01 15:50:06 +04:00
@@ -18,6 +18,9 @@
 #include <sys/stat.h>
 #include <sys/ioctl.h>
 
+/* BLKGETSIZE & BLKGETSIZE64 defines: */
+#include <sys/mount.h>
+
 #include <aal/libaal.h>
 
 /* Function for saving last error message into device assosiated buffer */
@@ -193,10 +196,6 @@
 	return !aal_strncmp(file1, file2, aal_strlen(file1));
 }
 
-#if defined(__linux__) && defined(_IOR) && !defined(BLKGETSIZE64)
-#   define BLKGETSIZE64 _IOR(0x12, 114, uint64_t)
-#endif
-
 /* Handler for "len" operation for use with file device. See bellow for
    understanding where it is used. */
 static count_t file_len(
@@ -209,18 +208,8 @@
 		return INVAL_BLK;
     
 #ifdef BLKGETSIZE64
-	if ((int)ioctl(*((int *)device->entity), BLKGETSIZE64, &size) >= (int)0) {
-		uint32_t block_count;
-		
-		size = (size / 4096) * 4096 / device->blksize;
-		block_count = size;
-		
-		if ((uint64_t)block_count != size) {
-			aal_fatal("The partition size is too big.");
-			return INVAL_BLK;
-		}
-		
-		return (count_t)block_count;
+	if (ioctl(*((int *)device->entity), BLKGETSIZE64, &size) >= 0) {
+		return size / device->blksize;
 	}
     
 #endif
@@ -231,8 +220,7 @@
 		
 		if (ioctl(*((int *)device->entity), BLKGETSIZE, &l_size) >= 0) {
 			size = l_size;
-			return (count_t)((size * 512 / 4096) * 4096 / 
-				device->blksize);
+			return size * 512 / device->blksize;
 		}
 	}
     

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: reiser4 on large block devices
  2005-06-01 12:42 ` Vitaly Fertman
@ 2005-06-01 17:27   ` Aaron Porter
  2005-06-01 17:56     ` Adrian Ulrich
  0 siblings, 1 reply; 5+ messages in thread
From: Aaron Porter @ 2005-06-01 17:27 UTC (permalink / raw)
  To: Vitaly Fertman; +Cc: reiserfs-list

On Wed, Jun 01, 2005 at 04:42:33PM +0400, Vitaly Fertman wrote:

> would you try this patch for libaal-1.0.4?

	mkreiser4 completes without errors now, but attempting to mount
the filesystem gives:

ReiserFS: sda3: warning: sh-2021: reiserfs_fill_super: can not find reiserfs on sda3


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: reiser4 on large block devices
  2005-06-01 17:27   ` Aaron Porter
@ 2005-06-01 17:56     ` Adrian Ulrich
  2005-06-01 20:17       ` Aaron Porter
  0 siblings, 1 reply; 5+ messages in thread
From: Adrian Ulrich @ 2005-06-01 17:56 UTC (permalink / raw)
  To: reiserfs-list


> ReiserFS: sda3: warning: sh-2021: reiserfs_fill_super: can not find
> reiserfs on sda3

Ehrm, This sounds like Reiser3,
does your kernel support Reiser4? Maybe you should use modprobe?



-- 
 We're working on it, slowly but surely...or not-so-surely in the spots
we're not so sure...               -- Larry Wall

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: reiser4 on large block devices
  2005-06-01 17:56     ` Adrian Ulrich
@ 2005-06-01 20:17       ` Aaron Porter
  0 siblings, 0 replies; 5+ messages in thread
From: Aaron Porter @ 2005-06-01 20:17 UTC (permalink / raw)
  To: Adrian Ulrich; +Cc: reiserfs-list

On Wed, Jun 01, 2005 at 07:56:05PM +0200, Adrian Ulrich wrote:
> 
> > ReiserFS: sda3: warning: sh-2021: reiserfs_fill_super: can not find
> > reiserfs on sda3
> 
> Ehrm, This sounds like Reiser3,
> does your kernel support Reiser4? Maybe you should use modprobe?

	You would be correct. I had assumed 2.6.11.* defaulted to reiser4.
Everything seems to be working now.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-06-01 20:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-31 18:42 reiser4 on large block devices Aaron Porter
2005-06-01 12:42 ` Vitaly Fertman
2005-06-01 17:27   ` Aaron Porter
2005-06-01 17:56     ` Adrian Ulrich
2005-06-01 20:17       ` Aaron Porter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.