@@ -747,7 +747,7 @@ static int lxcfs_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
747
747
{
748
748
int ret ;
749
749
enum lxcfs_virt_t type ;
750
-
750
+
751
751
type = file_info_type (fi );
752
752
753
753
if (strcmp (path , "/" ) == 0 ) {
@@ -768,7 +768,7 @@ static int lxcfs_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
768
768
return ret ;
769
769
}
770
770
771
- if (LXCFS_TYPE_PROC ( type ) ) {
771
+ if (strcmp ( path , "/proc" ) == 0 ) {
772
772
up_users ();
773
773
ret = do_proc_readdir (path , buf , filler , offset , fi );
774
774
down_users ();
@@ -883,7 +883,7 @@ static int lxcfs_read(const char *path, char *buf, size_t size, off_t offset,
883
883
{
884
884
int ret ;
885
885
enum lxcfs_virt_t type ;
886
-
886
+
887
887
type = file_info_type (fi );
888
888
889
889
if (cgroup_is_enabled && LXCFS_TYPE_CGROUP (type )) {
@@ -908,7 +908,7 @@ static int lxcfs_read(const char *path, char *buf, size_t size, off_t offset,
908
908
}
909
909
910
910
lxcfs_error ("unknown file type: path=%s, type=%d, fi->fh=%" PRIu64 ,
911
- path , type , fi -> fh );
911
+ path , type , fi -> fh );
912
912
913
913
return - EINVAL ;
914
914
}
@@ -918,7 +918,7 @@ int lxcfs_write(const char *path, const char *buf, size_t size, off_t offset,
918
918
{
919
919
int ret ;
920
920
enum lxcfs_virt_t type ;
921
-
921
+
922
922
type = file_info_type (fi );
923
923
924
924
if (cgroup_is_enabled && LXCFS_TYPE_CGROUP (type )) {
0 commit comments