Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
bb49af5e
Commit
bb49af5e
authored
Jan 04, 2002
by
heikki@donna.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
os0file.c:
Improve error messages which may occur in installation
parent
89f8ca05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
7 deletions
+35
-7
innobase/os/os0file.c
innobase/os/os0file.c
+35
-7
No files found.
innobase/os/os0file.c
View file @
bb49af5e
...
@@ -169,8 +169,20 @@ os_file_get_last_error(void)
...
@@ -169,8 +169,20 @@ os_file_get_last_error(void)
if
(
err
!=
ERROR_FILE_EXISTS
)
{
if
(
err
!=
ERROR_FILE_EXISTS
)
{
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: Warning: operating system error number %li in a file operation.
\n
"
,
"InnoDB: Operating system error number %li in a file operation.
\n
"
"InnoDB: See http://www.innodb.com/ibman.html for installation help.
\n
"
,
(
long
)
err
);
(
long
)
err
);
if
(
err
==
ERROR_PATH_NOT_FOUND
)
{
fprintf
(
stderr
,
"InnoDB: The error means the system cannot find the path specified.
\n
"
"InnoDB: In installation you must create directories yourself, InnoDB
\n
"
"InnoDB: does not create them.
\n
"
);
}
else
{
fprintf
(
stderr
,
"InnoDB: Look from section 13.2 at http://www.innodb.com/ibman.html
\n
"
"InnoDB: what the error number means.
\n
"
);
}
}
}
if
(
err
==
ERROR_FILE_NOT_FOUND
)
{
if
(
err
==
ERROR_FILE_NOT_FOUND
)
{
...
@@ -186,9 +198,21 @@ os_file_get_last_error(void)
...
@@ -186,9 +198,21 @@ os_file_get_last_error(void)
err
=
(
ulint
)
errno
;
err
=
(
ulint
)
errno
;
if
(
err
!=
EEXIST
)
{
if
(
err
!=
EEXIST
)
{
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: Warning: operating system error number %i in a file operation.
\n
"
,
"InnoDB: Operating system error number %li in a file operation.
\n
"
errno
);
"InnoDB: See http://www.innodb.com/ibman.html for installation help.
\n
"
,
(
long
)
err
);
if
(
err
==
ENOENT
)
{
fprintf
(
stderr
,
"InnoDB: The error means the system cannot find the path specified.
\n
"
"InnoDB: In installation you must create directories yourself, InnoDB
\n
"
"InnoDB: does not create them.
\n
"
);
}
else
{
fprintf
(
stderr
,
"InnoDB: Look from section 13.2 at http://www.innodb.com/ibman.html
\n
"
"InnoDB: what the error number means or use the perror program of MySQL.
\n
"
);
}
}
}
if
(
err
==
ENOSPC
)
{
if
(
err
==
ENOSPC
)
{
...
@@ -228,11 +252,11 @@ os_file_handle_error(
...
@@ -228,11 +252,11 @@ os_file_handle_error(
if
(
err
==
OS_FILE_DISK_FULL
)
{
if
(
err
==
OS_FILE_DISK_FULL
)
{
fprintf
(
stderr
,
"
\n
"
);
fprintf
(
stderr
,
"
\n
"
);
if
(
name
)
{
if
(
name
)
{
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: Encountered a problem with file %s.
\n
"
,
"InnoDB: Encountered a problem with file %s.
\n
"
,
name
);
name
);
}
}
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: Cannot continue operation.
\n
"
"InnoDB: Cannot continue operation.
\n
"
"InnoDB: Disk is full. Try to clean the disk to free space.
\n
"
"InnoDB: Disk is full. Try to clean the disk to free space.
\n
"
"InnoDB: Delete a possible created file and restart.
\n
"
);
"InnoDB: Delete a possible created file and restart.
\n
"
);
...
@@ -245,6 +269,10 @@ os_file_handle_error(
...
@@ -245,6 +269,10 @@ os_file_handle_error(
}
else
if
(
err
==
OS_FILE_ALREADY_EXISTS
)
{
}
else
if
(
err
==
OS_FILE_ALREADY_EXISTS
)
{
return
(
FALSE
);
return
(
FALSE
);
}
else
{
}
else
{
if
(
name
)
{
fprintf
(
stderr
,
"InnoDB: File name %s
\n
"
,
name
);
}
fprintf
(
stderr
,
"InnoDB: Cannot continue operation.
\n
"
);
fprintf
(
stderr
,
"InnoDB: Cannot continue operation.
\n
"
);
exit
(
1
);
exit
(
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment