public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Documentation/ioctl-number.txt
@ 2001-03-22 21:20 Dave Kleikamp
  2001-03-22 21:50 ` Alexander Viro
  0 siblings, 1 reply; 16+ messages in thread
From: Dave Kleikamp @ 2001-03-22 21:20 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

Linus,
I would like to reserve a block of 32 ioctl's for the JFS filesystem.

Thank you.
Dave Kleikamp

--- linux/Documentation/ioctl-number.txt-orig	Tue Feb 13 16:13:42 2001
+++ linux/Documentation/ioctl-number.txt	Thu Mar 22 14:53:40 2001
@@ -86,6 +86,7 @@
 'F'	all	linux/fb.h
 'I'	all	linux/isdn.h
 'J'	00-1F	drivers/scsi/gdth_ioctl.h
+'J'	20-3F	linux/jfs_fs.h
 'K'	all	linux/kd.h
 'L'	00-1F	linux/loop.h
 'L'	E0-FF	linux/ppdd.h		encrypted disk device driver

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: [RFC] sane access to per-fs metadata (was Re: [PATCH] Documentation/ioctl-number.txt)
@ 2001-03-23 16:56 Bryan Henderson
  2001-03-23 17:16 ` Matthew Wilcox
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Bryan Henderson @ 2001-03-23 16:56 UTC (permalink / raw)
  To: linux-fsdevel, linux-kernel

How it can be used? Well, say it you've mounted JFS on /usr/local
>% mount -t jfsmeta none /mnt -o jfsroot=/usr/local
>% ls /mnt
>stats     control   bootcode whatever_I_bloody_want
>% cat /mnt/stats
>master is on /usr/local
>fragmentation = 5%
>696942 reads, yodda, yodda
>% echo "defrag 69 whatever 42 13" > /mnt/control
>% umount /mnt

There's a lot of cool simplicity in this, both in implementation and 
application, but it leaves something to be desired in functionality.  This 
is partly because the price you pay for being able to use existing, 
well-worn Unix interfaces is the ancient limitations of those interfaces 
-- like the inability to return adequate error information.

Specifically, transactional stuff looks really hard in this method.
If I want the user to know why his "defrag" command failed, how would I 
pass that information back to him?  What if I want to warn him of of a 
filesystem inconsistency I found along the way?  Or inform him of how 
effective the defrag was?  And bear in mind that multiple processes may be 
issuing commands to /mnt/control simultaneously.

With ioctl, I can easily match a response of any kind to a request.  I can 
even return an English text message if I want to be friendly.


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

end of thread, other threads:[~2001-04-10  7:51 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-22 21:20 [PATCH] Documentation/ioctl-number.txt Dave Kleikamp
2001-03-22 21:50 ` Alexander Viro
2001-03-22 22:06   ` Dave Kleikamp
2001-03-22 23:07     ` [RFC] sane access to per-fs metadata (was Re: [PATCH] Documentation/ioctl-number.txt) Alexander Viro
2001-03-23  6:00       ` Andreas Dilger
2001-03-23 12:06         ` Alexander Viro
2001-03-23 14:45       ` Eric W. Biederman
2001-03-23 16:15       ` [RFC] sane access to per-fs metadata (was Re: [PATCH]Documentation/ioctl-number.txt) Dave Kleikamp
  -- strict thread matches above, loose matches on Subject: below --
2001-03-23 16:56 [RFC] sane access to per-fs metadata (was Re: [PATCH] Documentation/ioctl-number.txt) Bryan Henderson
2001-03-23 17:16 ` Matthew Wilcox
2001-03-23 18:28   ` Alexander Viro
2001-03-23 17:35 ` Pjotr Kourzanoff
2001-04-01  9:01 ` Chip Salzenberg
2001-04-01 12:50   ` Keith Owens
2001-04-02 19:49   ` Chip Salzenberg
2001-04-10  7:51     ` Tommi Virtanen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox