All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Problems with journal size option on mkfs
@ 2002-05-15 21:49 Steve Pratt
  2002-05-15 23:43 ` Chris Mason
  0 siblings, 1 reply; 14+ messages in thread
From: Steve Pratt @ 2002-05-15 21:49 UTC (permalink / raw)
  To: Chris Mason; +Cc: reiserfs-list


Chris Mason wrote:
>On Wed, 2002-05-15 at 16:12, Steve Pratt wrote:
>>
>> I am in the process of writing a File System Interface Module (FSIM) for
>> EVMS that will interface with ReiserFS and am having a problem with the
-s
>> (journal size) option on mkfs.reiserfs.  The problem is that if I
specify
>> any journal size the mkfs fails.  By fails, what I mean is that the
device
>> is not mountable, I don't actually get any error message from mkfs.
This
>> happens even when I give it the default size of 8193 blocks.  I didn't
see
>> anything in the faq about this option not working, but I tried it on 2
>> different machines with the same results.  I am running tools level
3.x.1b
>> and stock 2.4.17 kernel + EVMS + JFS + kgdb + vfslock.
>>
>> Here is a sample of the output, the only line that changes is the
reference
>> to non-standard journal

>The kernel side of the dedicated logging device code has not been sent
>for inclusion in 2.4.x yet.  The beta patch below implements it, against
>2.4.19-pre7.

So the -s option only works with offline log devices?  It doesn't say
anything about this in the man pages.  Also, wouldn't the mkfs code just
ignore this option if you did not specify an external log device (like the
example)?

Just looked at man page again, and it indicates that this should work for
inline logs as well.

Steve

EVMS Development - http://www.sf.net/projects/evms
Linux Technology Center - IBM Corporation
(512) 838-9763  EMAIL: SLPratt@US.IBM.COM



^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: Problems with journal size option on mkfs
@ 2002-05-16 14:59 Steve Pratt
  2002-05-16 15:09 ` Oleg Drokin
  0 siblings, 1 reply; 14+ messages in thread
From: Steve Pratt @ 2002-05-16 14:59 UTC (permalink / raw)
  To: Oleg Drokin; +Cc: reiserfs-list


Oleg Drokin wrote:
>Hello!

>On Wed, May 15, 2002 at 03:12:40PM -0500, Steve Pratt wrote:

>> I am in the process of writing a File System Interface Module (FSIM) for
>> EVMS that will interface with ReiserFS and am having a problem with the
-s
>> (journal size) option on mkfs.reiserfs.  The problem is that if I
specify
>> any journal size the mkfs fails.  By fails, what I mean is that the
device
>> is not mountable, I don't actually get any error message from mkfs.
This
>> happens even when I give it the default size of 8193 blocks.  I didn't
see

>This is because non-standard journal support is only included in 2.5
kernel
>series.
>2.4 support is available as separate patch for now.


So just to be sure I understand this:the current 2.4 kernel code (2.4.18)
does not include support for ANY non-standard journal options, including
non default size of an inline log??

If this is true, wouldn't it have made sense to put some checking in the
utilities to detect the level of support in the kernel and either put out a
meaningful error message or simply ignore the option?  As it stands now,
from the command line mkfs doesn't even indicate that there was an error.

Even if the ReiserFS utilities don't check, is there some way I can query
the ReiserFS kernel code to detect the presence of these features?

Steve





^ permalink raw reply	[flat|nested] 14+ messages in thread
* Problems with journal size option on mkfs
@ 2002-05-15 20:12 Steve Pratt
  2002-05-16  5:16 ` Oleg Drokin
  0 siblings, 1 reply; 14+ messages in thread
From: Steve Pratt @ 2002-05-15 20:12 UTC (permalink / raw)
  To: reiserfs-list


I am in the process of writing a File System Interface Module (FSIM) for
EVMS that will interface with ReiserFS and am having a problem with the -s
(journal size) option on mkfs.reiserfs.  The problem is that if I specify
any journal size the mkfs fails.  By fails, what I mean is that the device
is not mountable, I don't actually get any error message from mkfs.  This
happens even when I give it the default size of 8193 blocks.  I didn't see
anything in the faq about this option not working, but I tried it on 2
different machines with the same results.  I am running tools level 3.x.1b
and stock 2.4.17 kernel + EVMS + JFS + kgdb + vfslock.

Here is a sample of the output, the only line that changes is the reference
to non-standard journal


[root@slpratt root]$ mkfs.reiserfs -f -d -s 8193 /dev/evms/test2
mkfs.reiserfs 3.x.1b (2002)
mkfs.reiserfs: Guessing about desired format..
mkfs.reiserfs: Kernel 2.4.17 is running.
Block 16 (0x3ffe) contains super block. Format 3.6 with non-standard
journal
Count of blocks on the device: 32121
Number of blocks consumed by mkreiserfs formatting process: 8212
Free blocks: 23909
Blocksize: 4096
Hash function used to sort names: "r5"
Number of bitmaps: 1
Root block: 8211
Tree height: 2
Objectid map size 2, max 972
Journal parameters:
      Device [0x0]
      Magic [0x6aaeccf4]
      Size 8193 blocks (including 1 for journal header) (first block 18)
      Max transaction length 1024 blocks
      Max batch size 900 blocks
      Max commit age 30
Filesystem state 0x0
sb_version 2
inode generation number: 0
UUID: a7ee44d1-8af3-43f7-af4b-5a979684eff4
Initializing journal - 0%....20%....40%....60%....80%....100%
Syncing..ok
[root@slpratt root]$
[root@slpratt root]$ mount -t reiserfs /dev/evms/test2 /mnt/tmp
mount: wrong fs type, bad option, bad superblock on /dev/evms/test2,
       or too many mounted file systems
[root@slpratt root]$


and ....


[root@slpratt root]$ fsck.reiserfs /dev/evms/test2
reiserfsck 3.x.1b (2002)
Will read-only check consistency of the filesystem on /dev/evms/test2
Will put log info to 'stdout'

Do you want to run this program?[N/Yes] (note need to type Yes):Yes
reiserfsck: either make journal device available or use
--no-journal-available
            if you have the standard journal or if your device is available
            and you specified it correctly, you have to run rebuild-sb
[root@slpratt root]$


Let me know if you need more information.

Steve

EVMS Development - http://www.sf.net/projects/evms
Linux Technology Center - IBM Corporation
(512) 838-9763  EMAIL: SLPratt@US.IBM.COM



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

end of thread, other threads:[~2002-05-16 16:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-15 21:49 Problems with journal size option on mkfs Steve Pratt
2002-05-15 23:43 ` Chris Mason
  -- strict thread matches above, loose matches on Subject: below --
2002-05-16 14:59 Steve Pratt
2002-05-16 15:09 ` Oleg Drokin
2002-05-16 15:15   ` Hans Reiser
2002-05-16 16:14     ` Edward Shushkin
2002-05-15 20:12 Steve Pratt
2002-05-16  5:16 ` Oleg Drokin
2002-05-16 10:47   ` Hans Reiser
2002-05-16 11:00     ` Yury Umanets
2002-05-16 10:55       ` Hans Reiser
2002-05-16 11:52     ` Chris Mason
2002-05-16 12:00       ` Hans Reiser
2002-05-16 13:02         ` Chris Mason

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.