enfs

Luke Gorrie luke@REDACTED
Thu Sep 13 17:47:50 CEST 2001


Hi all,

I've got a fun hack: it's a small NFS server written in Erlang, which
has a "/proc" clone as an example. Downloadable at
http://www.bluetail.com/~luke/misc/nfs-1.0.tar.gz

The proc-fs looks like this:

  luke@REDACTED:~/misc/t/nfs-1.0/mnt$ ls
  0.0.0   0.18.0  0.29.0                  erl_prim_loader     nfs_mountd
  0.10.0  0.19.0  0.31.0                  error_logger        nfs_rpc_nfsd
  0.11.0  0.2.0   0.4.0                   file_server         nfs_server
  0.12.0  0.20.0  0.5.0                   global_group        rex
  0.13.0  0.21.0  0.7.0                   global_name_server  user
  0.14.0  0.22.0  0.8.0                   inet_db
  0.15.0  0.23.0  0.9.0                   init
  0.16.0  0.24.0  application_controller  kernel_safe_sup
  0.17.0  0.28.0  code_server             kernel_sup
  luke@REDACTED:~/misc/t/nfs-1.0/mnt$ ls inet_db
  current_function    group_leader  message_queue_len  registered_name
  dictionary          heap_size     messages           stack_size
  error_handler       initial_call  priority           status
  garbage_collection  links         reductions         trap_exit
  luke@REDACTED:~/misc/t/nfs-1.0/mnt$ cat inet_db/heap_size 
  233
  luke@REDACTED:~/misc/t/nfs-1.0/mnt$ cat inet_db/current_function 
  {gen_server,loop,6}
  luke@REDACTED:~/misc/t/nfs-1.0/mnt$ grep gen_server */current_function
  0.10.0/current_function:{gen_server,loop,6}
  0.11.0/current_function:{gen_server,loop,6}
  0.12.0/current_function:{gen_server,loop,6}
  0.13.0/current_function:{gen_server,loop,6}
  0.14.0/current_function:{gen_server,loop,6}
  0.15.0/current_function:{gen_server,loop,6}
  0.16.0/current_function:{gen_server,loop,6}
  0.21.0/current_function:{gen_server,loop,6}
  0.22.0/current_function:{gen_server,loop,6}
  0.29.0/current_function:{gen_server,loop,6}
  0.5.0/current_function:{gen_server,loop,6}
  0.9.0/current_function:{gen_server,loop,6}
  application_controller/current_function:{gen_server,loop,6}
  code_server/current_function:{gen_server,loop,6}
  file_server/current_function:{gen_server,loop,6}
  global_group/current_function:{gen_server,loop,6}
  global_name_server/current_function:{gen_server,loop,6}
  inet_db/current_function:{gen_server,loop,6}
  kernel_safe_sup/current_function:{gen_server,loop,6}
  kernel_sup/current_function:{gen_server,loop,6}
  nfs_mountd/current_function:{gen_server,loop,6}
  rex/current_function:{gen_server,loop,6}
  luke@REDACTED:~/misc/t/nfs-1.0/mnt$ 



More information about the erlang-questions mailing list