All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sami Kerola <kerolasa@iki.fi>
To: Karel Zak <kzak@redhat.com>
Cc: Davidlohr Bueso <dave@gnu.org>, util-linux@vger.kernel.org
Subject: Re: [PATCH] minix: v3 super-block does not have s_state field
Date: Wed, 20 Jul 2011 20:53:11 +0200	[thread overview]
Message-ID: <CAG27Bk3pxKEUPVE92=rZwA-FDHqA81TSM71J0Ati3mFXcGvE3g@mail.gmail.com> (raw)
In-Reply-To: <20110718221926.GE4354@nb.redhat.com>

On Tue, Jul 19, 2011 at 00:19, Karel Zak <kzak@redhat.com> wrote:
> On Thu, Jul 14, 2011 at 05:47:39PM +0200, Sami Kerola wrote:
>> +++ b/include/minix.h
>> @@ -1,69 +1,65 @@
>> =A0#ifndef __MINIX_H__
>> =A0#define __MINIX_H__
>
> =A0we usually use UTIL_LINUX prefix, so #ifndef UTIL_LINUX_MINIX_H.

Changed.

>> =A0#define BLOCK_SIZE_BITS 10
>> =A0#define BLOCK_SIZE (1<<BLOCK_SIZE_BITS)
>
> =A0This is too generic. Please, use MINIX_ prefix.

Adding MINIX_ prefix will cause a greater change, but as you wish I did tha=
t.

>> =A0#define Inode (((struct minix_inode *) inode_buffer)-1)
>> =A0#define Inode2 (((struct minix2_inode *) inode_buffer)-1)
>>
>> =A0#define INODE_SIZE (sizeof(struct minix_inode))
>> =A0#define INODE2_SIZE (sizeof(struct minix2_inode))
>>
>> -int fs_version =3D 1; /* this default value needs to change in a near f=
uture */
>> -char *super_block_buffer, *inode_buffer =3D NULL;
>> +static int fs_version =3D 1; /* this default value needs to change in a
>> near future */
>> +static char *super_block_buffer, *inode_buffer =3D NULL;
>>
>> =A0static char *inode_map;
>> =A0static char *zone_map;
>
> =A0The global variables don't belong to this generic header file. The
> =A0stuff around inode_buffer, fs_version and the inline functions are
> =A0specific to the disk-utils/ utils. Please, add
> =A0disk-utils/minix_programs.h and use it in {mkfs,fsck}.minix.

Done.

The following changes since commit 872a1575e81f5ed1e871d4ed9558f43effe96423=
:

  dmesg: fix typo in usage() (2011-07-14 13:46:13 +0200)

are available in the git repository at:
  https://github.com/kerolasa/lelux-utiliteetit minix

Sami Kerola (7):
      include: minix.h: use data types from stdint.h
      include: remove kernel headers from minix.h
      include: move minix.h to include directory
      libblkid: use superblock structure from minix.h
      libblkid: use MINIX_BLOCK_SIZE from minix.h
      minix: move globals and inline functions to minix_programs.h
      libblkid: move MINIX_MAXPARTITIONS to minix.h

 disk-utils/Makefile.am           |    4 +-
 disk-utils/fsck.minix.c          |   99 ++++++++++---------
 disk-utils/minix.h               |  202 ----------------------------------=
----
 disk-utils/minix_programs.h      |  113 +++++++++++++++++++++
 disk-utils/mkfs.minix.c          |   77 +++++++-------
 include/Makefile.am              |    1 +
 include/minix.h                  |   97 ++++++++++++++++++
 libblkid/src/partitions/minix.c  |    6 +-
 libblkid/src/superblocks/minix.c |   33 +------
 9 files changed, 304 insertions(+), 328 deletions(-)
 delete mode 100644 disk-utils/minix.h
 create mode 100644 disk-utils/minix_programs.h
 create mode 100644 include/minix.h

--=20
=A0=A0 Sami Kerola
=A0=A0 http://www.iki.fi/kerolasa/

  reply	other threads:[~2011-07-20 18:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-12 15:50 [PATCH] minix: v3 super-block does not have s_state field Sami Kerola
2011-07-13  4:05 ` Davidlohr Bueso
2011-07-13 11:33   ` Sami Kerola
2011-07-13 12:12     ` Karel Zak
2011-07-13 14:54       ` Sami Kerola
2011-07-13 17:34         ` Karel Zak
2011-07-14  2:03           ` Davidlohr Bueso
2011-07-14  9:18             ` Karel Zak
2011-07-14 15:47               ` Sami Kerola
2011-07-18 22:19                 ` Karel Zak
2011-07-20 18:53                   ` Sami Kerola [this message]
2011-07-21 11:21                     ` Karel Zak

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='CAG27Bk3pxKEUPVE92=rZwA-FDHqA81TSM71J0Ati3mFXcGvE3g@mail.gmail.com' \
    --to=kerolasa@iki.fi \
    --cc=dave@gnu.org \
    --cc=kerolasa@gmail.com \
    --cc=kzak@redhat.com \
    --cc=util-linux@vger.kernel.org \
    /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.