mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-09 09:35:39 +00:00
file_utils: remove unused function
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
This commit is contained in:
parent
01c8b1cd9d
commit
8b7421f2e5
@ -239,18 +239,6 @@ int lxc_make_tmpfile(char *template, bool rm)
|
|||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* In overlayfs, st_dev is unreliable. So on overlayfs we don't do the
|
|
||||||
* lxc_rmdir_onedev()
|
|
||||||
*/
|
|
||||||
static bool is_native_overlayfs(const char *path)
|
|
||||||
{
|
|
||||||
if (has_fs_type(path, OVERLAY_SUPER_MAGIC) ||
|
|
||||||
has_fs_type(path, OVERLAYFS_SUPER_MAGIC))
|
|
||||||
return true;
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool is_fs_type(const struct statfs *fs, fs_type_magic magic_val)
|
bool is_fs_type(const struct statfs *fs, fs_type_magic magic_val)
|
||||||
{
|
{
|
||||||
return (fs->f_type == (fs_type_magic)magic_val);
|
return (fs->f_type == (fs_type_magic)magic_val);
|
||||||
|
Loading…
Reference in New Issue
Block a user