Skip to contentSkip to conversation

cfuse and ceph.conf

DISCUSSION Fyodor Ustinov 3 participants 3 messages May 31, 2011 – Jun 1, 2011

lore
Share & tools
lore
#0 lore raw

Hi!

As I understand with -m key cfuse should not require ceph.conf.

But:

root@st8:~# cfuse -m 10.5.51.230:6789 /stor01
common_init: unable to open config file.
root@st8:~#

Workaround:

root@st8:~# cfuse -c /dev/null -m 10.5.51.230:6789 /stor01
failed to open log file '/var/log/ceph/client.admin.log': error 2: No such file or directory
 ** WARNING: Ceph is still under development.  Any feedback can be 
directed  **
 **          at [email protected] or 
http://ceph.newdream.net/.     **
cfuse[2944]: starting ceph client
cfuse[2944]: starting fuse
root@st8:~# ls -al /stor01/
total 1
drwxr-xr-x 1 root root 0 2011-06-01 00:22 .
drwxr-xr-x 1 root root 0 2011-05-31 01:27 bbb
root@st8:~#

WBR,
Fyodor.

P.S. BTW, where ".." directory?
P.P.S. I'm starting to feel myself like QA.

#1 lore raw
Quoted 1 line · Fyodor Ustinov

As I understand with -m key cfuse should not require ceph.conf.

It does need a config, to even know whether it should attempt cryptographic authentication or not (and where to find the key, etc).

It could be changed to do things more like the kernel client, but as is, it always requires a config file.

Quoted 1 line
root@st8:~# cfuse -c /dev/null -m 10.5.51.230:6789 /stor01

...

Quoted 7 lines
root@st8:~# ls -al /stor01/
total 1
drwxr-xr-x 1 root root 0 2011-06-01 00:22 .
drwxr-xr-x 1 root root 0 2011-05-31 01:27 bbb
root@st8:~#

P.S. BTW, where ".." directory?

Oh, heh, that's interesting.

It seems "." and ".." are optional, according to POSIX:

http://sourceforge.net/mailarchive/forum.php?thread_name=E1O3s82-0008BY-MW%40pomaz-ex.szeredi.hu&forum_name=fuse-devel

Signature · 1 line
:(){ :|:&};:
#2 lore raw
Quoted 17 lines · Tommi Virtanen
Quoted 1 line · Fyodor Ustinov

As I understand with -m key cfuse should not require ceph.conf.

It does need a config, to even know whether it should attempt cryptographic authentication or not (and where to find the key, etc).

It could be changed to do things more like the kernel client, but as is, it always requires a config file.

Quoted 1 line
root@st8:~# cfuse -c /dev/null -m 10.5.51.230:6789 /stor01

...

Quoted 6 lines
root@st8:~# ls -al /stor01/
total 1
drwxr-xr-x 1 root root 0 2011-06-01 00:22 .
drwxr-xr-x 1 root root 0 2011-05-31 01:27 bbb
root@st8:~#
Quoted 7 lines
Quoted 1 line

P.S. BTW, where ".." directory?

Oh, heh, that's interesting.

It seems "." and ".." are optional, according to POSIX:

http://sourceforge.net/mailarchive/forum.php?thread_name=E1O3s82-0008BY-MW%40pomaz-ex.szeredi.hu&forum_name=fuse-devel

I couldn't figure out how to make a (correct) .. when writing the original fuse glue layer way back when.

Hmm, it looks like sshfs generates one, so it's at lesat possible. It's probably simple enough to fix.

sage