Skip to contentSkip to conversation

Enabling files as directories?

DISCUSSION Grant Miner 3 participants 3 messages Aug 15, 2003

lore
Share & tools
lore
#0 lore raw

I am wondering how can I enable files as directories behavior. For example:
touch a; chmod a+x a
cd a
touch b -> error, not a directory

Thanks,
Grant

#1 lore raw
Quoted 7 lines · Grant Miner

I am wondering how can I enable files as directories behavior. For example:
touch a; chmod a+x a
cd a
touch b -> error, not a directory

Thanks,
Grant

linux kernel 2.4.x does not allow this. At least sys_fchdir() does not allow this. linux-2.6.x does.

Signature · 1 line
We're flying high, we're watching the world passes by...
#2 lore raw
Quoted 6 lines · Yury Umanets
Quoted 5 lines · Grant Miner

I am wondering how can I enable files as directories behavior. For example:
touch a; chmod a+x a
cd a
touch b -> error, not a directory

Quoted 6 lines
Quoted 2 lines

Thanks,
Grant

linux kernel 2.4.x does not allow this. At least sys_fchdir() does not allow this. linux-2.6.x does.

Err. Wait. Grant, you are talking about reiser4, right?

In reiser4 you cannot use plain regular files "as directories" that is, create files within them. Set of files living within regular file is predetermined. Take a look at http://namesys.com/v4/pseudo.html. We are, however, planning having special type (plugin in reiser4 parlance) of file that is both file and directory. But it is not yet implemented.

By the way, thanks again for benchmarks. I added them to the
http://www.namesys.com/benchmarks/v4marks.html.

Quoted 4 lines
Signature · 2 lines
-- 
We're flying high, we're watching the world passes by...

Nikita.