* [Patch 2/6]: ext3 reservations: Renumber the ext3 reservations ioctls
@ 2004-09-07 13:02 Stephen Tweedie
2004-09-07 22:53 ` Christoph Hellwig
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Tweedie @ 2004-09-07 13:02 UTC (permalink / raw)
To: Andrew Morton, linux-kernel, Mingming Cao, pbadari, Ram Pai
Cc: Stephen Tweedie
All ext2/3 ioctls apart from these ones use 'f' as the root char for
their macro-generated ioctl numbers; make reservations consistent with
this.
Signed-off-by: Stephen Tweedie <sct@redhat.com>
--- linux-2.6.9-rc1-mm4/include/linux/ext3_fs.h.=K0001=.orig
+++ linux-2.6.9-rc1-mm4/include/linux/ext3_fs.h
@@ -235,8 +235,8 @@ struct ext3_new_group_data {
#ifdef CONFIG_JBD_DEBUG
#define EXT3_IOC_WAIT_FOR_READONLY _IOR('f', 99, long)
#endif
-#define EXT3_IOC_GETRSVSZ _IOR('r', 1, long)
-#define EXT3_IOC_SETRSVSZ _IOW('r', 2, long)
+#define EXT3_IOC_GETRSVSZ _IOR('f', 5, long)
+#define EXT3_IOC_SETRSVSZ _IOW('f', 6, long)
/*
* Structure of an inode on the disk
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Patch 2/6]: ext3 reservations: Renumber the ext3 reservations ioctls
2004-09-07 13:02 [Patch 2/6]: ext3 reservations: Renumber the ext3 reservations ioctls Stephen Tweedie
@ 2004-09-07 22:53 ` Christoph Hellwig
2004-09-08 9:41 ` Stephen C. Tweedie
0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2004-09-07 22:53 UTC (permalink / raw)
To: Stephen Tweedie
Cc: Andrew Morton, linux-kernel, Mingming Cao, pbadari, Ram Pai
On Tue, Sep 07, 2004 at 02:02:27PM +0100, Stephen Tweedie wrote:
> All ext2/3 ioctls apart from these ones use 'f' as the root char for
> their macro-generated ioctl numbers; make reservations consistent with
> this.
Maybe you could reuse the XFS reservation ioctls instead of adding
another set? Having incompatible APIs for the same thing on different
filesystems sounds like the wrong way to go.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Patch 2/6]: ext3 reservations: Renumber the ext3 reservations ioctls
2004-09-07 22:53 ` Christoph Hellwig
@ 2004-09-08 9:41 ` Stephen C. Tweedie
2004-09-09 17:57 ` Christoph Hellwig
0 siblings, 1 reply; 4+ messages in thread
From: Stephen C. Tweedie @ 2004-09-08 9:41 UTC (permalink / raw)
To: Christoph Hellwig
Cc: Andrew Morton, linux-kernel, Mingming Cao, Badari Pulavarty,
Ram Pai, Stephen Tweedie
Hi,
On Tue, 2004-09-07 at 23:53, Christoph Hellwig wrote:
> Maybe you could reuse the XFS reservation ioctls instead of adding
> another set? Having incompatible APIs for the same thing on different
> filesystems sounds like the wrong way to go.
I don't mind either way. But I just looked, and I think they are doing
different things. If I'm reading the XFS bits right, the XFS ioctls
actively reserve/free disk space; but the ext3 ones do nothing except
set/query the size of the per-inode sliding reservation window.
So sounds like they are best kept separate for now.
Cheers,
Stephen
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Patch 2/6]: ext3 reservations: Renumber the ext3 reservations ioctls
2004-09-08 9:41 ` Stephen C. Tweedie
@ 2004-09-09 17:57 ` Christoph Hellwig
0 siblings, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2004-09-09 17:57 UTC (permalink / raw)
To: Stephen C. Tweedie
Cc: Christoph Hellwig, Andrew Morton, linux-kernel, Mingming Cao,
Badari Pulavarty, Ram Pai
On Wed, Sep 08, 2004 at 10:41:38AM +0100, Stephen C. Tweedie wrote:
> Hi,
>
> On Tue, 2004-09-07 at 23:53, Christoph Hellwig wrote:
>
> > Maybe you could reuse the XFS reservation ioctls instead of adding
> > another set? Having incompatible APIs for the same thing on different
> > filesystems sounds like the wrong way to go.
>
> I don't mind either way. But I just looked, and I think they are doing
> different things. If I'm reading the XFS bits right, the XFS ioctls
> actively reserve/free disk space; but the ext3 ones do nothing except
> set/query the size of the per-inode sliding reservation window.
>
> So sounds like they are best kept separate for now.
makes sense.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-09-09 18:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-07 13:02 [Patch 2/6]: ext3 reservations: Renumber the ext3 reservations ioctls Stephen Tweedie
2004-09-07 22:53 ` Christoph Hellwig
2004-09-08 9:41 ` Stephen C. Tweedie
2004-09-09 17:57 ` Christoph Hellwig
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.