Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
9127afbf
Commit
9127afbf
authored
Nov 13, 2015
by
Thomas Guillem
Committed by
Max Kellermann
Aug 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/nfs/Connection: use nfs_stat64_async
Since nfs_stat_async is deprecated.
parent
f2caac59
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
Connection.cxx
src/lib/nfs/Connection.cxx
+2
-2
NfsStorage.cxx
src/storage/plugins/NfsStorage.cxx
+8
-8
No files found.
src/lib/nfs/Connection.cxx
View file @
9127afbf
...
...
@@ -47,9 +47,9 @@ NfsConnection::CancellableCallback::Stat(nfs_context *ctx,
{
assert
(
connection
.
GetEventLoop
().
IsInside
());
int
result
=
nfs_stat_async
(
ctx
,
path
,
Callback
,
this
);
int
result
=
nfs_stat
64
_async
(
ctx
,
path
,
Callback
,
this
);
if
(
result
<
0
)
throw
FormatRuntimeError
(
"nfs_stat_async() failed: %s"
,
throw
FormatRuntimeError
(
"nfs_stat
64
_async() failed: %s"
,
nfs_get_error
(
ctx
));
}
...
...
src/storage/plugins/NfsStorage.cxx
View file @
9127afbf
...
...
@@ -246,19 +246,19 @@ NfsStorage::MapToRelativeUTF8(const char *uri_utf8) const noexcept
}
static
void
Copy
(
StorageFileInfo
&
info
,
const
struct
stat
&
st
)
Copy
(
StorageFileInfo
&
info
,
const
struct
nfs_stat_64
&
st
)
{
if
(
S_ISREG
(
st
.
st
_mode
))
if
(
S_ISREG
(
st
.
nfs
_mode
))
info
.
type
=
StorageFileInfo
::
Type
::
REGULAR
;
else
if
(
S_ISDIR
(
st
.
st
_mode
))
else
if
(
S_ISDIR
(
st
.
nfs
_mode
))
info
.
type
=
StorageFileInfo
::
Type
::
DIRECTORY
;
else
info
.
type
=
StorageFileInfo
::
Type
::
OTHER
;
info
.
size
=
st
.
st
_size
;
info
.
mtime
=
st
.
st
_mtime
;
info
.
device
=
st
.
st
_dev
;
info
.
inode
=
st
.
st
_ino
;
info
.
size
=
st
.
nfs
_size
;
info
.
mtime
=
st
.
nfs
_mtime
;
info
.
device
=
st
.
nfs
_dev
;
info
.
inode
=
st
.
nfs
_ino
;
}
class
NfsGetInfoOperation
final
:
public
BlockingNfsOperation
{
...
...
@@ -279,7 +279,7 @@ protected:
}
void
HandleResult
(
gcc_unused
unsigned
status
,
void
*
data
)
override
{
Copy
(
info
,
*
(
const
struct
stat
*
)
data
);
Copy
(
info
,
*
(
const
struct
nfs_stat_64
*
)
data
);
}
};
...
...
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