MySQL 8.0.39
Source Code Documentation
my_symlink2.cc File Reference

Advanced symlink handling. More...

#include "my_config.h"
#include <errno.h>
#include <string.h>
#include "m_string.h"
#include <unistd.h>
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_io.h"
#include "my_sys.h"
#include "my_thread_local.h"
#include "mysys_err.h"

Functions

File my_create_with_symlink (const char *linkname, const char *filename, int createflags, int access_flags, myf MyFlags)
 
int my_delete_with_symlink (const char *name, myf MyFlags)
 
int my_rename_with_symlink (const char *from, const char *to, myf MyFlags)
 

Detailed Description

Advanced symlink handling.

This is used in MyISAM to let users symlinks tables to different disk. The main idea with these functions is to automatically create, delete and rename files and symlinks like they would be one unit.