reiser4 on large block devices
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:~#
Quoted 10 lines · Aaron Porter
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.
Quoted 7 lines
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?
Signature · 2 lines
Thanks, Vitaly Fertman
# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2005/03/21 13:15:23+03:00 [email protected]
# 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 [email protected] +3 -4 # # src/file.c # 2005/03/21 12:40:49+03:00 [email protected] +3 -14 # do not limit file size by 2^41 bytes # # configure.in # 2005/03/21 12:40:29+03:00 [email protected] +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
src/file.c +6 -18
@@ -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; } }
Quoted 1 line · Vitaly Fertman
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
Quoted 3 lines
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?
Signature · 2 lines
We're working on it, slowly but surely...or not-so-surely in the spots we're not so sure... -- Larry Wall
Quoted 6 lines · Adrian Ulrich
Quoted 3 lines
ReiserFS: sda3: warning: sh-2021:
reiserfs_fill_super: can not find reiserfs on sda3Ehrm, 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.