public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* Block allocation
@ 2008-09-27 15:07 vineetagarwal
  2008-09-27 21:50 ` Theodore Tso
  2008-09-29 12:05 ` vineetagarwal
  0 siblings, 2 replies; 4+ messages in thread
From: vineetagarwal @ 2008-09-27 15:07 UTC (permalink / raw)
  To: linux-ext4


hello everybody,

I want to allocate few blocks from a blockgroup in ext2 within a range of
offset specified by user. Is it possible of doing so if yes then can someone
please explain.As i know balloc.c and ialloc.c are responsible for it and
they work on entire file system can i somehow manipulate it for ceratin
ranges.

For Ex
let say i provide a range 100 - 3000. Can i allocate few blocks within this
range .

Thanking you

-- 
>From :
Vineet Agarwal
-- 
View this message in context: http://www.nabble.com/Block-allocation-tp19703506p19703506.html
Sent from the linux-ext4 mailing list archive at Nabble.com.


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

* Re: Block allocation
  2008-09-27 15:07 Block allocation vineetagarwal
@ 2008-09-27 21:50 ` Theodore Tso
  2008-09-29 12:01   ` vineetagarwal
  2008-09-29 12:05 ` vineetagarwal
  1 sibling, 1 reply; 4+ messages in thread
From: Theodore Tso @ 2008-09-27 21:50 UTC (permalink / raw)
  To: vineetagarwal; +Cc: linux-ext4

On Sat, Sep 27, 2008 at 08:07:06AM -0700, vineetagarwal wrote:
> 
> I want to allocate few blocks from a blockgroup in ext2 within a range of
> offset specified by user. Is it possible of doing so if yes then can someone
> please explain.As i know balloc.c and ialloc.c are responsible for it and
> they work on entire file system can i somehow manipulate it for ceratin
> ranges.
> 
> For Ex
> let say i provide a range 100 - 3000. Can i allocate few blocks within this
> range .

While the filesystem mounted (and accessed through the kernel) or
unmounted (and accessed via libext2fs)?  Anything is possible. if you
are willing to write some code....

Why do you need to do this, and is this for some class or problem set?

       	   	      	    	   	- Ted

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

* Re: Block allocation
  2008-09-27 21:50 ` Theodore Tso
@ 2008-09-29 12:01   ` vineetagarwal
  0 siblings, 0 replies; 4+ messages in thread
From: vineetagarwal @ 2008-09-29 12:01 UTC (permalink / raw)
  To: linux-ext4


thank you for replying .
well iam working on a project where i need to allocate few blockgroups for
manipulation of data.
yeah i can write the code but i was actually thinking that could i somehow
manipulate the code at top level of allocation , so that not much changes


Theodore Ts'o wrote:
> 
> On Sat, Sep 27, 2008 at 08:07:06AM -0700, vineetagarwal wrote:
>> 
>> I want to allocate few blocks from a blockgroup in ext2 within a range of
>> offset specified by user. Is it possible of doing so if yes then can
>> someone
>> please explain.As i know balloc.c and ialloc.c are responsible for it and
>> they work on entire file system can i somehow manipulate it for ceratin
>> ranges.
>> 
>> For Ex
>> let say i provide a range 100 - 3000. Can i allocate few blocks within
>> this
>> range .
> 
> While the filesystem mounted (and accessed through the kernel) or
> unmounted (and accessed via libext2fs)?  Anything is possible. if you
> are willing to write some code....
> 
> Why do you need to do this, and is this for some class or problem set?
> 
>        	   	      	    	   	- Ted
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

-- 
View this message in context: http://www.nabble.com/Block-allocation-tp19703506p19722589.html
Sent from the linux-ext4 mailing list archive at Nabble.com.


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

* Re: Block allocation
  2008-09-27 15:07 Block allocation vineetagarwal
  2008-09-27 21:50 ` Theodore Tso
@ 2008-09-29 12:05 ` vineetagarwal
  1 sibling, 0 replies; 4+ messages in thread
From: vineetagarwal @ 2008-09-29 12:05 UTC (permalink / raw)
  To: linux-ext4


thank you for replying .
well iam working on a project where i need to allocate few blockgroups for
manipulation of data.
yeah i can write the code but i was actually thinking that could i somehow
manipulate the code at top level of allocation , so that not much changes
are made to the good old existing code and work is done.
if you can please provide me with some help
thank you


vineetagarwal wrote:
> 
> hello everybody,
> 
> I want to allocate few blocks from a blockgroup in ext2 within a range of
> offset specified by user. Is it possible of doing so if yes then can
> someone please explain.As i know balloc.c and ialloc.c are responsible for
> it and they work on entire file system can i somehow manipulate it for
> ceratin ranges.
> 
> For Ex
> let say i provide a range 100 - 3000. Can i allocate few blocks within
> this range .
> 
> Thanking you
> 
> -- 
> From :
> Vineet Agarwal
> 

-- 
View this message in context: http://www.nabble.com/Block-allocation-tp19703506p19722649.html
Sent from the linux-ext4 mailing list archive at Nabble.com.


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

end of thread, other threads:[~2008-09-29 12:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-27 15:07 Block allocation vineetagarwal
2008-09-27 21:50 ` Theodore Tso
2008-09-29 12:01   ` vineetagarwal
2008-09-29 12:05 ` vineetagarwal

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