linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* inode and blocks
@ 2008-09-28 10:19 Rohit Sharma
  2008-09-28 21:01 ` Theodore Tso
  0 siblings, 1 reply; 5+ messages in thread
From: Rohit Sharma @ 2008-09-28 10:19 UTC (permalink / raw)
  To: Kernelnewbies, ext4

Suppose i have a file named abc.txt and i want to specify that
all the *.txt files must be allocated between block groups no. 100 -
200 in ext2 fs.

Is there a way to do this?

can we modify function ext2_new_inode and find_group_orlov for this?

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

* Re: inode and blocks
  2008-09-28 10:19 inode and blocks Rohit Sharma
@ 2008-09-28 21:01 ` Theodore Tso
  2008-09-29 14:33   ` Rohit Sharma
  0 siblings, 1 reply; 5+ messages in thread
From: Theodore Tso @ 2008-09-28 21:01 UTC (permalink / raw)
  To: Rohit Sharma; +Cc: Kernelnewbies, ext4

On Sun, Sep 28, 2008 at 03:49:04PM +0530, Rohit Sharma wrote:
> Suppose i have a file named abc.txt and i want to specify that
> all the *.txt files must be allocated between block groups no. 100 -
> 200 in ext2 fs.
> 
> Is there a way to do this?
> 
> can we modify function ext2_new_inode and find_group_orlov for this?

You would have to modify kernel code to do this; the main question
which comes to mind is *why* would you want to do something like this?
It seems like an ideal problem set that a professor might give to a
student, since it would force them to try to get from an inode to the
pathname used to open the file.  So it seems to be one of these really
pointless things that isn't particularly useful in real life, except
for pedagogical purposes.

							- Ted

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

* Re: inode and blocks
  2008-09-28 21:01 ` Theodore Tso
@ 2008-09-29 14:33   ` Rohit Sharma
  2008-09-29 17:24     ` Sunil
  0 siblings, 1 reply; 5+ messages in thread
From: Rohit Sharma @ 2008-09-29 14:33 UTC (permalink / raw)
  To: Theodore Tso; +Cc: ext4, Kernelnewbies

Not an assignment actually, but a project.
We are working on open hierarchical storage management, in which we
store files on disks according to different file placement policies.
For eg. if i say that all the important files, like all the employee
database should be in disk 1 and all the songs on disk 2, then we
place them accordingly in different disks.


On Mon, Sep 29, 2008 at 2:31 AM, Theodore Tso <tytso@mit.edu> wrote:
> On Sun, Sep 28, 2008 at 03:49:04PM +0530, Rohit Sharma wrote:
>> Suppose i have a file named abc.txt and i want to specify that
>> all the *.txt files must be allocated between block groups no. 100 -
>> 200 in ext2 fs.
>>
>> Is there a way to do this?
>>
>> can we modify function ext2_new_inode and find_group_orlov for this?
>
> You would have to modify kernel code to do this; the main question
> which comes to mind is *why* would you want to do something like this?
> It seems like an ideal problem set that a professor might give to a
> student, since it would force them to try to get from an inode to the
> pathname used to open the file.  So it seems to be one of these really
> pointless things that isn't particularly useful in real life, except
> for pedagogical purposes.
>
>                                                        - Ted
>

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

* Re: inode and blocks
  2008-09-29 14:33   ` Rohit Sharma
@ 2008-09-29 17:24     ` Sunil
  2008-09-30 13:56       ` Rohit Sharma
  0 siblings, 1 reply; 5+ messages in thread
From: Sunil @ 2008-09-29 17:24 UTC (permalink / raw)
  To: Rohit Sharma; +Cc: Theodore Tso, ext4, Kernelnewbies

[-- Attachment #1: Type: text/plain, Size: 1738 bytes --]

On Mon, Sep 29, 2008 at 8:03 PM, Rohit Sharma <imreckless@gmail.com> wrote:

> Not an assignment actually, but a project.
> We are working on open hierarchical storage management, in which we
> store files on disks according to different file placement policies.
> For eg. if i say that all the important files, like all the employee
> database should be in disk 1 and all the songs on disk 2, then we
> place them accordingly in different disks.
>
>
> On Mon, Sep 29, 2008 at 2:31 AM, Theodore Tso <tytso@mit.edu> wrote:
> > On Sun, Sep 28, 2008 at 03:49:04PM +0530, Rohit Sharma wrote:
> >> Suppose i have a file named abc.txt and i want to specify that
> >> all the *.txt files must be allocated between block groups no. 100 -
> >> 200 in ext2 fs.
> >>
> >> Is there a way to do this?
> >>
> >> can we modify function ext2_new_inode and find_group_orlov for this?
> >
> > You would have to modify kernel code to do this; the main question
> > which comes to mind is *why* would you want to do something like this?
> > It seems like an ideal problem set that a professor might give to a
> > student, since it would force them to try to get from an inode to the
> > pathname used to open the file.  So it seems to be one of these really
> > pointless things that isn't particularly useful in real life, except
> > for pedagogical purposes.
> >
> >                                                        - Ted
> >
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecartis@nl.linux.org
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>
Hi Rohit,

Just out of curiosity, how are you going to identify the type of file inside
kernel ? from an extension or file format ?

Thanks.

-- 
Sunil.

[-- Attachment #2: Type: text/html, Size: 3167 bytes --]

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

* Re: inode and blocks
  2008-09-29 17:24     ` Sunil
@ 2008-09-30 13:56       ` Rohit Sharma
  0 siblings, 0 replies; 5+ messages in thread
From: Rohit Sharma @ 2008-09-30 13:56 UTC (permalink / raw)
  To: Sunil; +Cc: Theodore Tso, ext4, Kernelnewbies

On Mon, Sep 29, 2008 at 10:54 PM, Sunil <infinite.questions@gmail.com> wrote:
>
>
> On Mon, Sep 29, 2008 at 8:03 PM, Rohit Sharma <imreckless@gmail.com> wrote:
>>
>> Not an assignment actually, but a project.
>> We are working on open hierarchical storage management, in which we
>> store files on disks according to different file placement policies.
>> For eg. if i say that all the important files, like all the employee
>> database should be in disk 1 and all the songs on disk 2, then we
>> place them accordingly in different disks.
>>
>>
>> On Mon, Sep 29, 2008 at 2:31 AM, Theodore Tso <tytso@mit.edu> wrote:
>> > On Sun, Sep 28, 2008 at 03:49:04PM +0530, Rohit Sharma wrote:
>> >> Suppose i have a file named abc.txt and i want to specify that
>> >> all the *.txt files must be allocated between block groups no. 100 -
>> >> 200 in ext2 fs.
>> >>
>> >> Is there a way to do this?
>> >>
>> >> can we modify function ext2_new_inode and find_group_orlov for this?
>> >
>> > You would have to modify kernel code to do this; the main question
>> > which comes to mind is *why* would you want to do something like this?
>> > It seems like an ideal problem set that a professor might give to a
>> > student, since it would force them to try to get from an inode to the
>> > pathname used to open the file.  So it seems to be one of these really
>> > pointless things that isn't particularly useful in real life, except
>> > for pedagogical purposes.
>> >
>> >                                                        - Ted
>> >
>>
>> --
>> To unsubscribe from this list: send an email with
>> "unsubscribe kernelnewbies" to ecartis@nl.linux.org
>> Please read the FAQ at http://kernelnewbies.org/FAQ
>>
>
> Hi Rohit,
>
> Just out of curiosity, how are you going to identify the type of file inside
Thanks Sunil for looking into the matter.

> kernel ? from an extension or file format ?
>

Yes i will find using extension. :)

> Thanks.
>
> --
> Sunil.
>

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

end of thread, other threads:[~2008-09-30 13:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-28 10:19 inode and blocks Rohit Sharma
2008-09-28 21:01 ` Theodore Tso
2008-09-29 14:33   ` Rohit Sharma
2008-09-29 17:24     ` Sunil
2008-09-30 13:56       ` Rohit Sharma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).