.. code:: bash
- $ ceph nfs export create <type=cephfs> <fsname> <binding> [--readonly] [--path=/path/in/cephfs] [--attach=<clusterid>]
+ $ ceph nfs export create <type=cephfs> <fsname> <binding> <clusterid> [--readonly] [--path=/path/in/cephfs]
It creates export rados objects containing the export block. Here binding is
the pseudo root name and type is export type. Currently only CephFS is
'name=type,type=CephString '
'name=fsname,type=CephString '
'name=binding,type=CephString '
+ 'name=attach,type=CephString '
'name=readonly,type=CephBool,req=false '
- 'name=path,type=CephString,req=false '
- 'name=attach,type=CephString,req=false ',
+ 'name=path,type=CephString,req=false ',
'desc': "Create a cephfs export",
'perm': 'rw'
},
#TODO Extend export creation for rgw.
return self.fs_export.create_export(export_type=cmd['type'], fs_name=cmd['fsname'],
pseudo_path=cmd['binding'], read_only=cmd.get('readonly', False),
- path=cmd.get('path', '/'), cluster_id=cmd.get('attach','None'))
+ path=cmd.get('path', '/'), cluster_id=cmd.get('attach'))
def _cmd_fs_nfs_export_delete(self, inbuf, cmd):
return self.fs_export.delete_export(cmd['export_id'])
pid file = $ganesha_dir/ganesha.pid
EOF
- prun ceph_adm nfs export create cephfs "a" "/cephfs" --attach=$name
+ prun ceph_adm nfs export create cephfs "a" "/cephfs" $name
prun ganesha-rados-grace -p $pool_name -n $namespace add $name
prun ganesha-rados-grace -p $pool_name -n $namespace