* disable partitioning!
@ 2004-03-09 4:52 Jinu M.
2004-03-09 10:52 ` Stefan Smietanowski
2004-03-09 14:02 ` Matthias Urlichs
0 siblings, 2 replies; 5+ messages in thread
From: Jinu M. @ 2004-03-09 4:52 UTC (permalink / raw)
To: linux-kernel
Hi All,
We are writing a block device driver for 2.4.x kernel.
I want to know how to indicate to the filesystem that our block driver does not support partitions.
I mean fdisk should not be allowed on disks supported by our block driver.
Regards,
-Jinu
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: disable partitioning!
2004-03-09 4:52 disable partitioning! Jinu M.
@ 2004-03-09 10:52 ` Stefan Smietanowski
2004-03-09 14:02 ` Matthias Urlichs
1 sibling, 0 replies; 5+ messages in thread
From: Stefan Smietanowski @ 2004-03-09 10:52 UTC (permalink / raw)
To: Jinu M.; +Cc: linux-kernel
Hello Jinu.
> We are writing a block device driver for 2.4.x kernel.
> I want to know how to indicate to the filesystem that our block driver does not support partitions.
> I mean fdisk should not be allowed on disks supported by our block driver.
You can run fdisk on a file if you want to, it doesn't care what type of
block device it is. What you're really asking for is a way to make the
kernel not read the partition table if it exists on the device and
that's something else.
That is also something that the filesystem doesn't handle. Filesystems
are systems that handle files (heh).
// Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: disable partitioning!
2004-03-09 4:52 disable partitioning! Jinu M.
2004-03-09 10:52 ` Stefan Smietanowski
@ 2004-03-09 14:02 ` Matthias Urlichs
1 sibling, 0 replies; 5+ messages in thread
From: Matthias Urlichs @ 2004-03-09 14:02 UTC (permalink / raw)
To: linux-kernel
Hi, Jinu M. wrote:
> We are writing a block device driver for 2.4.x kernel.
> I want to know how to indicate to the filesystem that our block driver does not support partitions.
Forgive me for asking a stupid question, but -- why? (Or rather, why not.)
--
Matthias Urlichs
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: disable partitioning!
@ 2004-03-09 12:13 Jinu M.
2004-03-09 13:58 ` Michael Clark
0 siblings, 1 reply; 5+ messages in thread
From: Jinu M. @ 2004-03-09 12:13 UTC (permalink / raw)
To: Stefan Smietanowski; +Cc: linux-kernel
Hello Stefan.
> We are writing a block device driver for 2.4.x kernel.
> I want to know how to indicate to the filesystem that our block driver does not support partitions.
> I mean fdisk should not be allowed on disks supported by our block driver.
You can run fdisk on a file if you want to, it doesn't care what type of
block device it is. What you're really asking for is a way to make the
kernel not read the partition table if it exists on the device and
that's something else.
So then how do I stop kernel from reading the partition table?
-Jinu
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: disable partitioning!
2004-03-09 12:13 Jinu M.
@ 2004-03-09 13:58 ` Michael Clark
0 siblings, 0 replies; 5+ messages in thread
From: Michael Clark @ 2004-03-09 13:58 UTC (permalink / raw)
To: Jinu M.; +Cc: Stefan Smietanowski, linux-kernel
On 03/09/04 20:13, Jinu M. wrote:
>
> Hello Stefan.
>
>
>>We are writing a block device driver for 2.4.x kernel.
>>I want to know how to indicate to the filesystem that our block driver does not support partitions.
>>I mean fdisk should not be allowed on disks supported by our block driver.
>
>
> You can run fdisk on a file if you want to, it doesn't care what type of
> block device it is. What you're really asking for is a way to make the
> kernel not read the partition table if it exists on the device and
> that's something else.
>
> So then how do I stop kernel from reading the partition table?
I believe you can do this by passing 1 as the number of minors
in your call to alloc_disk(int num_minors).
~mc
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-03-09 14:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-09 4:52 disable partitioning! Jinu M.
2004-03-09 10:52 ` Stefan Smietanowski
2004-03-09 14:02 ` Matthias Urlichs
-- strict thread matches above, loose matches on Subject: below --
2004-03-09 12:13 Jinu M.
2004-03-09 13:58 ` Michael Clark
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox