modules/vfs_catia.c

ソースコードを見る。

関数

static void catia_string_replace (char *s, unsigned char oldc, unsigned char newc)
static void from_unix (char *s)
static void to_unix (char *s)
static SMB_STRUCT_DIR * catia_opendir (vfs_handle_struct *handle, const char *fname, const char *mask, uint32 attr)
static SMB_STRUCT_DIRENT * catia_readdir (vfs_handle_struct *handle, SMB_STRUCT_DIR *dirp)
static int catia_open (vfs_handle_struct *handle, const char *fname, files_struct *fsp, int flags, mode_t mode)
static int catia_rename (vfs_handle_struct *handle, const char *oldname, const char *newname)
static int catia_stat (vfs_handle_struct *handle, const char *fname, SMB_STRUCT_STAT *sbuf)
static int catia_lstat (vfs_handle_struct *handle, const char *path, SMB_STRUCT_STAT *sbuf)
static int catia_unlink (vfs_handle_struct *handle, const char *path)
static int catia_chmod (vfs_handle_struct *handle, const char *path, mode_t mode)
static int catia_chown (vfs_handle_struct *handle, const char *path, uid_t uid, gid_t gid)
static int catia_chdir (vfs_handle_struct *handle, const char *path)
static char * catia_getwd (vfs_handle_struct *handle, char *buf)
static int catia_ntimes (vfs_handle_struct *handle, const char *path, const struct timespec ts[2])
static BOOL catia_symlink (vfs_handle_struct *handle, const char *oldpath, const char *newpath)
static BOOL catia_readlink (vfs_handle_struct *handle, const char *path, char *buf, size_t bufsiz)
static int catia_link (vfs_handle_struct *handle, const char *oldpath, const char *newpath)
static int catia_mknod (vfs_handle_struct *handle, const char *path, mode_t mode, SMB_DEV_T dev)
static char * catia_realpath (vfs_handle_struct *handle, const char *path, char *resolved_path)
static size_t catia_get_nt_acl (vfs_handle_struct *handle, files_struct *fsp, const char *name, uint32 security_info, struct security_descriptor_info **ppdesc)
static BOOL catia_set_nt_acl (vfs_handle_struct *handle, files_struct *fsp, const char *name, uint32 security_info_sent, struct security_descriptor_info *psd)
static int catia_chmod_acl (vfs_handle_struct *handle, const char *name, mode_t mode)
NTSTATUS vfs_catia_init (void)

変数

static vfs_op_tuple catia_op_tuples []


関数

static void catia_string_replace ( char *  s,
unsigned char  oldc,
unsigned char  newc 
) [static]

vfs_catia.c31 行で定義されています。

参照先 pull_ucs2()push_ucs2()tmpbuf.

参照元 from_unix()to_unix().

00033 {
00034         static smb_ucs2_t tmpbuf[sizeof(pstring)];
00035         smb_ucs2_t *ptr = tmpbuf;
00036         smb_ucs2_t old = oldc;
00037 
00038         push_ucs2(NULL, tmpbuf, s, sizeof(tmpbuf), STR_TERMINATE);
00039 
00040         for (;*ptr;ptr++)
00041                 if (*ptr==old) *ptr=newc;
00042 
00043         pull_ucs2(NULL, s, tmpbuf, -1, sizeof(tmpbuf), STR_TERMINATE);
00044 }

static void from_unix ( char *  s  )  [static]

vfs_catia.c46 行で定義されています。

参照先 catia_string_replace().

参照元 catia_readdir().

00047 {
00048         catia_string_replace(s, '\x22', '\xa8');
00049         catia_string_replace(s, '\x2a', '\xa4');
00050         catia_string_replace(s, '\x2f', '\xf8');
00051         catia_string_replace(s, '\x3a', '\xf7');
00052         catia_string_replace(s, '\x3c', '\xab');
00053         catia_string_replace(s, '\x3e', '\xbb');
00054         catia_string_replace(s, '\x3f', '\xbf');
00055         catia_string_replace(s, '\x5c', '\xff');
00056         catia_string_replace(s, '\x7c', '\xa6');
00057         catia_string_replace(s, ' ', '\xb1');
00058 }

static void to_unix ( char *  s  )  [static]

vfs_catia.c60 行で定義されています。

参照先 catia_string_replace().

参照元 catia_chdir()catia_chmod()catia_chown()catia_lstat()catia_open()catia_opendir()catia_rename()catia_stat()catia_unlink().

00061 {
00062         catia_string_replace(s, '\xa8', '\x22');
00063         catia_string_replace(s, '\xa4', '\x2a');
00064         catia_string_replace(s, '\xf8', '\x2f');
00065         catia_string_replace(s, '\xf7', '\x3a');
00066         catia_string_replace(s, '\xab', '\x3c');
00067         catia_string_replace(s, '\xbb', '\x3e');
00068         catia_string_replace(s, '\xbf', '\x3f');
00069         catia_string_replace(s, '\xff', '\x5c');
00070         catia_string_replace(s, '\xa6', '\x7c');
00071         catia_string_replace(s, '\xb1', ' ');
00072 }

static SMB_STRUCT_DIR* catia_opendir ( vfs_handle_struct handle,
const char *  fname,
const char *  mask,
uint32  attr 
) [static]

vfs_catia.c74 行で定義されています。

参照先 handlenameto_unix().

00076 {
00077         pstring name;
00078         pstrcpy(name, fname);
00079         to_unix(name);
00080 
00081         return SMB_VFS_NEXT_OPENDIR(handle, name, mask, attr);
00082 }

static SMB_STRUCT_DIRENT* catia_readdir ( vfs_handle_struct handle,
SMB_STRUCT_DIR *  dirp 
) [static]

vfs_catia.c84 行で定義されています。

参照先 from_unix()handleresult.

00086 {
00087         SMB_STRUCT_DIRENT *result = SMB_VFS_NEXT_READDIR(handle, dirp);
00088 
00089         if (result == NULL)
00090                 return result;
00091 
00092         from_unix(result->d_name);
00093         return result;
00094 }

static int catia_open ( vfs_handle_struct handle,
const char *  fname,
files_struct fsp,
int  flags,
mode_t  mode 
) [static]

vfs_catia.c96 行で定義されています。

参照先 handlenameto_unix().

00098 {
00099         pstring name;
00100 
00101         pstrcpy(name, fname);
00102         to_unix(name);
00103  
00104         return SMB_VFS_NEXT_OPEN(handle, name, fsp, flags, mode);
00105 }

static int catia_rename ( vfs_handle_struct handle,
const char *  oldname,
const char *  newname 
) [static]

vfs_catia.c107 行で定義されています。

参照先 handleto_unix().

00109 {
00110         pstring oname, nname;
00111 
00112         pstrcpy(oname, oldname);
00113         to_unix(oname);
00114         pstrcpy(nname, newname);
00115         to_unix(nname);
00116 
00117         DEBUG(10, ("converted old name: %s\n", oname));
00118         DEBUG(10, ("converted new name: %s\n", nname));
00119  
00120         return SMB_VFS_NEXT_RENAME(handle, oname, nname);
00121 }

static int catia_stat ( vfs_handle_struct handle,
const char *  fname,
SMB_STRUCT_STAT *  sbuf 
) [static]

vfs_catia.c123 行で定義されています。

参照先 handlenameto_unix().

00125 {
00126         pstring name;
00127         pstrcpy(name, fname);
00128         to_unix(name);
00129 
00130         return SMB_VFS_NEXT_STAT(handle, name, sbuf);
00131 }

static int catia_lstat ( vfs_handle_struct handle,
const char *  path,
SMB_STRUCT_STAT *  sbuf 
) [static]

vfs_catia.c133 行で定義されています。

参照先 handlenameto_unix().

00135 {
00136         pstring name;
00137         pstrcpy(name, path);
00138         to_unix(name);
00139 
00140         return SMB_VFS_NEXT_LSTAT(handle, name, sbuf);
00141 }

static int catia_unlink ( vfs_handle_struct handle,
const char *  path 
) [static]

vfs_catia.c143 行で定義されています。

参照先 handlenameto_unix().

00144 {
00145         pstring name;
00146         pstrcpy(name, path);
00147         to_unix(name);
00148 
00149         return SMB_VFS_NEXT_UNLINK(handle, name);
00150 }

static int catia_chmod ( vfs_handle_struct handle,
const char *  path,
mode_t  mode 
) [static]

vfs_catia.c152 行で定義されています。

参照先 handlenameto_unix().

00154 {
00155         pstring name;
00156         pstrcpy(name, path);
00157         to_unix(name);
00158 
00159         return SMB_VFS_NEXT_CHMOD(handle, name, mode);
00160 }

static int catia_chown ( vfs_handle_struct handle,
const char *  path,
uid_t  uid,
gid_t  gid 
) [static]

vfs_catia.c162 行で定義されています。

参照先 handlenameto_unix().

00164 {
00165         pstring name;
00166         pstrcpy(name, path);
00167         to_unix(name);
00168 
00169         return SMB_VFS_NEXT_CHOWN(handle, name, uid, gid);
00170 }

static int catia_chdir ( vfs_handle_struct handle,
const char *  path 
) [static]

vfs_catia.c172 行で定義されています。

参照先 handlenameto_unix().

00174 {
00175         pstring name;
00176         pstrcpy(name, path);
00177         to_unix(name);
00178 
00179         return SMB_VFS_NEXT_CHDIR(handle, name);
00180 }

static char* catia_getwd ( vfs_handle_struct handle,
char *  buf 
) [static]

vfs_catia.c182 行で定義されています。

参照先 handle.

00183 {
00184         return SMB_VFS_NEXT_GETWD(handle, buf);
00185 }

static int catia_ntimes ( vfs_handle_struct handle,
const char *  path,
const struct timespec  ts[2] 
) [static]

vfs_catia.c187 行で定義されています。

参照先 handle.

00189 {
00190         return SMB_VFS_NEXT_NTIMES(handle, path, ts);
00191 }

static BOOL catia_symlink ( vfs_handle_struct handle,
const char *  oldpath,
const char *  newpath 
) [static]

vfs_catia.c193 行で定義されています。

参照先 handle.

00195 {
00196         return SMB_VFS_NEXT_SYMLINK(handle, oldpath, newpath);
00197 }

static BOOL catia_readlink ( vfs_handle_struct handle,
const char *  path,
char *  buf,
size_t  bufsiz 
) [static]

vfs_catia.c199 行で定義されています。

参照先 handle.

00201 {
00202         return SMB_VFS_NEXT_READLINK(handle, path, buf, bufsiz);
00203 }

static int catia_link ( vfs_handle_struct handle,
const char *  oldpath,
const char *  newpath 
) [static]

vfs_catia.c205 行で定義されています。

参照先 handle.

00207 {
00208         return SMB_VFS_NEXT_LINK(handle, oldpath, newpath);
00209 }

static int catia_mknod ( vfs_handle_struct handle,
const char *  path,
mode_t  mode,
SMB_DEV_T  dev 
) [static]

vfs_catia.c211 行で定義されています。

参照先 handle.

00213 {
00214         return SMB_VFS_NEXT_MKNOD(handle, path, mode, dev);
00215 }

static char* catia_realpath ( vfs_handle_struct handle,
const char *  path,
char *  resolved_path 
) [static]

vfs_catia.c217 行で定義されています。

参照先 handle.

00219 {
00220         return SMB_VFS_NEXT_REALPATH(handle, path, resolved_path);
00221 }

static size_t catia_get_nt_acl ( vfs_handle_struct handle,
files_struct fsp,
const char *  name,
uint32  security_info,
struct security_descriptor_info **  ppdesc 
) [static]

vfs_catia.c223 行で定義されています。

参照先 handle.

00226 {
00227         return SMB_VFS_NEXT_GET_NT_ACL(handle, fsp, name, security_info,
00228                                        ppdesc);
00229 }

static BOOL catia_set_nt_acl ( vfs_handle_struct handle,
files_struct fsp,
const char *  name,
uint32  security_info_sent,
struct security_descriptor_info psd 
) [static]

vfs_catia.c231 行で定義されています。

参照先 handle.

00234 {
00235         return SMB_VFS_NEXT_SET_NT_ACL(handle, fsp, name, security_info_sent,
00236                                        psd);
00237 }

static int catia_chmod_acl ( vfs_handle_struct handle,
const char *  name,
mode_t  mode 
) [static]

vfs_catia.c239 行で定義されています。

参照先 errnohandle.

00241 {
00242         /* If the underlying VFS doesn't have ACL support... */
00243         if (!handle->vfs_next.ops.chmod_acl) {
00244                 errno = ENOSYS;
00245                 return -1;
00246         }
00247         return SMB_VFS_NEXT_CHMOD_ACL(handle, name, mode);
00248 }

NTSTATUS vfs_catia_init ( void   ) 

vfs_catia.c312 行で定義されています。

参照先 catia_op_tuplessmb_register_vfs().

00313 {
00314         return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "catia", 
00315 catia_op_tuples);
00316 }


変数

vfs_op_tuple catia_op_tuples[] [static]

vfs_catia.c252 行で定義されています。

参照元 vfs_catia_init().


Sambaに対してSat Aug 29 21:23:51 2009に生成されました。  doxygen 1.4.7