From: Hans Reiser <reiser@namesys.com>
To: Brice Arnould <un_brice@vleu.net>
Cc: reiserfs-list@namesys.com,
reiserfs-dev <reiserfs-dev@namesys.com>,
Alexander Zarochentcev <zam@namesys.com>
Subject: Re: Possible bug with FIBMAP
Date: Sun, 27 Aug 2006 23:33:05 -0700 [thread overview]
Message-ID: <44F28E21.6000801@namesys.com> (raw)
In-Reply-To: <200608271057.12684.un_brice@vleu.net>
zam, please review this unless vs is back.
What is the file size? Is there anything special about the file (holes,
etc.)?
Thanks for finding what I assume is a bug. (I wonder if this has been
sporadically affecting use of reiser4 with bootloaders.....)
Hans
Brice Arnould wrote:
> Hi
>
> Two users of a hack I wrote told me that
> http://vleu.net/shake/fb_r4.c (also attached with the mail)
> returned "FIBMAP=-22, FIGETBSZ=4096"
> on some of their files on reiser4 filesystems.
>
> Does this value of "-22" have a special meaning (would be strange), or is it a
> bug in Reiser4 ?
> I can ask them for more details, if you want.
>
> Thanks
> Brice
>
> ------------------------------------------------------------------------
>
> /*
> * Non released test software, distributed under GPL-2 licence by
> * Brice Arnould (c) 2006
> * You shouldn't use it.
> */
> #include <stdio.h>
> #include <assert.h> // assert()
> #include <errno.h> // errno
> #include <error.h> // error()
> #include <sys/ioctl.h> // ioctl()
> #include <linux/fs.h> // FIBMAP, FIGETBSZ
> #include <sys/types.h> // open()
> #include <sys/stat.h> // open()
> #include <fcntl.h> // open()
>
> int
> main (int argc, char **argv)
> {
> int fd, blocksize, block = 0;
> if (1 != argc)
> error (1, 0, "usage : %s FILE", argv[0]);
> fd = open (argv[1], O_RDONLY);
> assert (0 < fd);
> if (-1 == ioctl (fd, FIGETBSZ, &blocksize)
> || -1 == ioctl (fd, FIBMAP, &block))
> error (1, 0, "ioctl() failed, are you root ?\n");
> printf ("FIBMAP=%i, FIGETBSZ=%i\n", block, blocksize);
> close (fd);
> }
>
next prev parent reply other threads:[~2006-08-28 6:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-27 8:57 Possible bug with FIBMAP Brice Arnould
2006-08-27 19:35 ` Ivan Pulleyn
2006-08-27 19:39 ` Ivan Pulleyn
2006-08-28 6:33 ` Hans Reiser [this message]
2006-08-28 8:33 ` Alexander Zarochentsev
2006-08-29 7:09 ` Brice Arnould
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44F28E21.6000801@namesys.com \
--to=reiser@namesys.com \
--cc=reiserfs-dev@namesys.com \
--cc=reiserfs-list@namesys.com \
--cc=un_brice@vleu.net \
--cc=zam@namesys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.