Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It does not show my BTRFS unit #11

Closed
simonbcn opened this issue Jun 28, 2021 · 8 comments
Closed

It does not show my BTRFS unit #11

simonbcn opened this issue Jun 28, 2021 · 8 comments

Comments

@simonbcn
Copy link

simonbcn commented Jun 28, 2021

lfs 0.7.1

It should show (as previous versions did) my BTRFS drive (/dev/sda1) which is mounted (/multimedia) under the root system.

$ lfs
┌──┬─────┬──────────────┬───┬────┬────┬─────────┬─────┬────┬───────────┐
│id│ dev │  filesystem  │dsk│type│used│  use%   │avail│size│mount point│
├──┼─────┼──────────────┼───┼────┼────┼─────────┼─────┼────┼───────────┤
│61│259:2│/dev/nvme0n1p2│SSD│f2fs│433G│22% █▏   │ 1.6T│2.0T│/          │
│88│259:1│/dev/nvme0n1p1│SSD│vfat│ 37M│14% ▊    │ 231M│268M│/boot      │
└──┴─────┴──────────────┴───┴────┴────┴─────────┴─────┴────┴───────────┘
$ lfs -a
┌───┬─────┬──────────────┬───┬───────────┬────┬─────────┬─────┬────┬─────────────────────────┐
│ id│ dev │  filesystem  │dsk│   type    │used│  use%   │avail│size│mount point              │
├───┼─────┼──────────────┼───┼───────────┼────┼─────────┼─────┼────┼─────────────────────────┤
│ 92│0:35 │/dev/sda1     │   │   btrfs   │ 15T│92% ████▋│ 1.3T│16T │/multimedia              │
│ 61│259:2│/dev/nvme0n1p2│SSD│   f2fs    │433G│22% █▏   │ 1.6T│2.0T│/                        │
│ 26│0:23 │tmpfs         │   │   tmpfs   │110M│ 0%      │  34G│34G │/dev/shm                 │
│ 38│0:32 │tmpfs         │   │   tmpfs   │228M│ 1%      │  33G│34G │/tmp                     │
│ 24│0:5  │devtmpfs      │   │ devtmpfs  │   0│ 0%      │  34G│34G │/dev                     │
│ 28│0:25 │tmpfs         │   │   tmpfs   │ 10M│ 0%      │  13G│13G │/run                     │
│342│0:43 │tmpfs         │   │   tmpfs   │ 66K│ 0%      │ 6.7G│6.7G│/run/user/1000           │
│ 88│259:1│/dev/nvme0n1p1│SSD│   vfat    │ 37M│14% ▊    │ 231M│268M│/boot                    │
│ 22│0:21 │proc          │   │   proc    │    │         │     │    │/proc                    │
│ 23│0:22 │sysfs         │   │   sysfs   │    │         │     │    │/sys                     │
│ 25│0:6  │securityfs    │   │securityfs │    │         │     │    │/sys/kernel/security     │
│ 27│0:24 │devpts        │   │  devpts   │    │         │     │    │/dev/pts                 │
│ 29│0:26 │cgroup2       │   │  cgroup2  │    │         │     │    │/sys/fs/cgroup           │
│ 30│0:27 │pstore        │   │  pstore   │    │         │     │    │/sys/fs/pstore           │
│ 31│0:28 │efivarfs      │   │ efivarfs  │    │         │     │    │/sys/firmware/efi/efivars│
│ 32│0:29 │none          │   │    bpf    │    │         │     │    │/sys/fs/bpf              │
│ 33│0:30 │systemd-1     │   │  autofs   │    │         │     │    │/proc/sys/fs/binfmt_misc │
│ 34│0:31 │hugetlbfs     │   │ hugetlbfs │    │         │     │    │/dev/hugepages           │
│ 35│0:20 │mqueue        │   │  mqueue   │    │         │     │    │/dev/mqueue              │
│ 36│0:7  │debugfs       │   │  debugfs  │    │         │     │    │/sys/kernel/debug        │
│ 37│0:12 │tracefs       │   │  tracefs  │    │         │     │    │/sys/kernel/tracing      │
│ 39│0:33 │fusectl       │   │  fusectl  │    │         │     │    │/sys/fs/fuse/connections │
│ 40│0:34 │configfs      │   │ configfs  │    │         │     │    │/sys/kernel/config       │
│275│0:41 │binfmt_misc   │   │binfmt_misc│    │         │     │    │/proc/sys/fs/binfmt_misc │
└───┴─────┴──────────────┴───┴───────────┴────┴─────────┴─────┴────┴─────────────────────────┘
@Canop
Copy link
Owner

Canop commented Jun 28, 2021

Can you show me what was displayed with the previous version ?

@simonbcn
Copy link
Author

simonbcn commented Jun 28, 2021

It is weird, I have been using this program for several months and it has always shown me all the regular drives (including btrfs). But now I have installed several previous versions and none of them show it. Could the problem be external to lfs? Maybe a Rust problem?

@simonbcn simonbcn changed the title Latest version does not show my BTRFS unit It does not show my BTRFS unit Jun 28, 2021
@Canop
Copy link
Owner

Canop commented Jun 28, 2021

Would you mind coming to the chat ?
https://miaou.dystroy.org/3768

@Canop
Copy link
Owner

Canop commented Jun 29, 2021

I'd be interested in the output of lfs -a -j

@simonbcn
Copy link
Author

[
  {
    "dev": {
      "major": 0,
      "minor": 21
    },
    "disk": null,
    "fs": "proc",
    "fs-type": "proc",
    "id": 22,
    "mount-point": "/proc",
    "stats": {
      "available": "0",
      "bavail": 0,
      "bfree": 0,
      "blocks": 0,
      "bsize": 4096,
      "size": "0",
      "used": "0",
      "used-percent": "0%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 22
    },
    "disk": null,
    "fs": "sysfs",
    "fs-type": "sysfs",
    "id": 23,
    "mount-point": "/sys",
    "stats": {
      "available": "0",
      "bavail": 0,
      "bfree": 0,
      "blocks": 0,
      "bsize": 4096,
      "size": "0",
      "used": "0",
      "used-percent": "0%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 5
    },
    "disk": null,
    "fs": "devtmpfs",
    "fs-type": "devtmpfs",
    "id": 24,
    "mount-point": "/dev",
    "stats": {
      "available": "34G",
      "bavail": 8210240,
      "bfree": 8210240,
      "blocks": 8210240,
      "bsize": 4096,
      "size": "34G",
      "used": "0",
      "used-percent": "0%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 6
    },
    "disk": null,
    "fs": "securityfs",
    "fs-type": "securityfs",
    "id": 25,
    "mount-point": "/sys/kernel/security",
    "stats": {
      "available": "0",
      "bavail": 0,
      "bfree": 0,
      "blocks": 0,
      "bsize": 4096,
      "size": "0",
      "used": "0",
      "used-percent": "0%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 23
    },
    "disk": null,
    "fs": "tmpfs",
    "fs-type": "tmpfs",
    "id": 26,
    "mount-point": "/dev/shm",
    "stats": {
      "available": "34G",
      "bavail": 8180163,
      "bfree": 8180163,
      "blocks": 8220442,
      "bsize": 4096,
      "size": "34G",
      "used": "165M",
      "used-percent": "0%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 24
    },
    "disk": null,
    "fs": "devpts",
    "fs-type": "devpts",
    "id": 27,
    "mount-point": "/dev/pts",
    "stats": {
      "available": "0",
      "bavail": 0,
      "bfree": 0,
      "blocks": 0,
      "bsize": 4096,
      "size": "0",
      "used": "0",
      "used-percent": "0%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 25
    },
    "disk": null,
    "fs": "tmpfs",
    "fs-type": "tmpfs",
    "id": 28,
    "mount-point": "/run",
    "stats": {
      "available": "13G",
      "bavail": 3285643,
      "bfree": 3285643,
      "blocks": 3288177,
      "bsize": 4096,
      "size": "13G",
      "used": "10M",
      "used-percent": "0%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 26
    },
    "disk": null,
    "fs": "cgroup2",
    "fs-type": "cgroup2",
    "id": 29,
    "mount-point": "/sys/fs/cgroup",
    "stats": {
      "available": "0",
      "bavail": 0,
      "bfree": 0,
      "blocks": 0,
      "bsize": 4096,
      "size": "0",
      "used": "0",
      "used-percent": "0%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 27
    },
    "disk": null,
    "fs": "pstore",
    "fs-type": "pstore",
    "id": 30,
    "mount-point": "/sys/fs/pstore",
    "stats": {
      "available": "0",
      "bavail": 0,
      "bfree": 0,
      "blocks": 0,
      "bsize": 4096,
      "size": "0",
      "used": "0",
      "used-percent": "0%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 28
    },
    "disk": null,
    "fs": "efivarfs",
    "fs-type": "efivarfs",
    "id": 31,
    "mount-point": "/sys/firmware/efi/efivars",
    "stats": {
      "available": "0",
      "bavail": 0,
      "bfree": 0,
      "blocks": 0,
      "bsize": 4096,
      "size": "0",
      "used": "0",
      "used-percent": "0%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 29
    },
    "disk": null,
    "fs": "none",
    "fs-type": "bpf",
    "id": 32,
    "mount-point": "/sys/fs/bpf",
    "stats": {
      "available": "0",
      "bavail": 0,
      "bfree": 0,
      "blocks": 0,
      "bsize": 4096,
      "size": "0",
      "used": "0",
      "used-percent": "0%"
    }
  },
  {
    "dev": {
      "major": 259,
      "minor": 2
    },
    "disk": {
      "crypted": false,
      "ram": false,
      "removable": false,
      "rotational": false,
      "type": "SSD"
    },
    "fs": "/dev/nvme0n1p2",
    "fs-type": "f2fs",
    "id": 61,
    "mount-point": "/",
    "stats": {
      "available": "1.6T",
      "bavail": 382556225,
      "bfree": 382556225,
      "blocks": 488311313,
      "bsize": 4096,
      "size": "2.0T",
      "used": "433G",
      "used-percent": "22%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 30
    },
    "disk": null,
    "fs": "systemd-1",
    "fs-type": "autofs",
    "id": 33,
    "mount-point": "/proc/sys/fs/binfmt_misc",
    "stats": {
      "available": "0",
      "bavail": 0,
      "bfree": 0,
      "blocks": 0,
      "bsize": 4096,
      "size": "0",
      "used": "0",
      "used-percent": "0%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 31
    },
    "disk": null,
    "fs": "hugetlbfs",
    "fs-type": "hugetlbfs",
    "id": 34,
    "mount-point": "/dev/hugepages",
    "stats": {
      "available": "0",
      "bavail": 0,
      "bfree": 0,
      "blocks": 0,
      "bsize": 2097152,
      "size": "0",
      "used": "0",
      "used-percent": "0%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 20
    },
    "disk": null,
    "fs": "mqueue",
    "fs-type": "mqueue",
    "id": 35,
    "mount-point": "/dev/mqueue",
    "stats": {
      "available": "0",
      "bavail": 0,
      "bfree": 0,
      "blocks": 0,
      "bsize": 4096,
      "size": "0",
      "used": "0",
      "used-percent": "0%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 7
    },
    "disk": null,
    "fs": "debugfs",
    "fs-type": "debugfs",
    "id": 36,
    "mount-point": "/sys/kernel/debug",
    "stats": {
      "available": "0",
      "bavail": 0,
      "bfree": 0,
      "blocks": 0,
      "bsize": 4096,
      "size": "0",
      "used": "0",
      "used-percent": "0%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 12
    },
    "disk": null,
    "fs": "tracefs",
    "fs-type": "tracefs",
    "id": 37,
    "mount-point": "/sys/kernel/tracing",
    "stats": {
      "available": "0",
      "bavail": 0,
      "bfree": 0,
      "blocks": 0,
      "bsize": 4096,
      "size": "0",
      "used": "0",
      "used-percent": "0%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 32
    },
    "disk": null,
    "fs": "tmpfs",
    "fs-type": "tmpfs",
    "id": 38,
    "mount-point": "/tmp",
    "stats": {
      "available": "34G",
      "bavail": 8181039,
      "bfree": 8181039,
      "blocks": 8220442,
      "bsize": 4096,
      "size": "34G",
      "used": "161M",
      "used-percent": "0%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 33
    },
    "disk": null,
    "fs": "fusectl",
    "fs-type": "fusectl",
    "id": 39,
    "mount-point": "/sys/fs/fuse/connections",
    "stats": {
      "available": "0",
      "bavail": 0,
      "bfree": 0,
      "blocks": 0,
      "bsize": 4096,
      "size": "0",
      "used": "0",
      "used-percent": "0%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 34
    },
    "disk": null,
    "fs": "configfs",
    "fs-type": "configfs",
    "id": 40,
    "mount-point": "/sys/kernel/config",
    "stats": {
      "available": "0",
      "bavail": 0,
      "bfree": 0,
      "blocks": 0,
      "bsize": 4096,
      "size": "0",
      "used": "0",
      "used-percent": "0%"
    }
  },
  {
    "dev": {
      "major": 259,
      "minor": 1
    },
    "disk": {
      "crypted": false,
      "ram": false,
      "removable": false,
      "rotational": false,
      "type": "SSD"
    },
    "fs": "/dev/nvme0n1p1",
    "fs-type": "vfat",
    "id": 88,
    "mount-point": "/boot",
    "stats": {
      "available": "231M",
      "bavail": 452027,
      "bfree": 452027,
      "blocks": 524256,
      "bsize": 512,
      "size": "268M",
      "used": "37M",
      "used-percent": "14%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 36
    },
    "disk": null,
    "fs": "/dev/sda1",
    "fs-type": "btrfs",
    "id": 92,
    "mount-point": "/multimedia",
    "stats": {
      "available": "1.1T",
      "bavail": 278453696,
      "bfree": 278623795,
      "blocks": 3906469627,
      "bsize": 4096,
      "size": "16T",
      "used": "15T",
      "used-percent": "93%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 43
    },
    "disk": null,
    "fs": "tmpfs",
    "fs-type": "tmpfs",
    "id": 342,
    "mount-point": "/run/user/1000",
    "stats": {
      "available": "6.7G",
      "bavail": 1644074,
      "bfree": 1644074,
      "blocks": 1644088,
      "bsize": 4096,
      "size": "6.7G",
      "used": "57K",
      "used-percent": "0%"
    }
  },
  {
    "dev": {
      "major": 0,
      "minor": 41
    },
    "disk": null,
    "fs": "binfmt_misc",
    "fs-type": "binfmt_misc",
    "id": 275,
    "mount-point": "/proc/sys/fs/binfmt_misc",
    "stats": {
      "available": "0",
      "bavail": 0,
      "bfree": 0,
      "blocks": 0,
      "bsize": 4096,
      "size": "0",
      "used": "0",
      "used-percent": "0%"
    }
  }
]

@Canop
Copy link
Owner

Canop commented Jun 30, 2021

This isn't related to Rust but to lfs.

I've analyzed the problem and it's due to the new way lfs links block devices to mount points.

I'll release soon a new version combining both ways.

image

@Canop Canop closed this as completed in eb407eb Jun 30, 2021
@Canop
Copy link
Owner

Canop commented Jun 30, 2021

Can you please confirm it's OK ?
(or reopen if it's not)

@simonbcn
Copy link
Author

ok, now it works:

$ lfs
┌──┬─────┬──────────────┬────┬─────┬────┬─────────┬─────┬────┬───────────┐
│id│ dev │  filesystem  │disk│type │used│  use%   │avail│size│mount point│
├──┼─────┼──────────────┼────┼─────┼────┼─────────┼─────┼────┼───────────┤
│92│0:36 │/dev/sda1     │HDD │btrfs│ 15T│93% ████▋│ 1.1T│16T │/multimedia│
│61│259:2│/dev/nvme0n1p2│SSD │f2fs │433G│22% █▏   │ 1.6T│2.0T│/          │
│88│259:1│/dev/nvme0n1p1│SSD │vfat │ 37M│14% ▊    │ 231M│268M│/boot      │
└──┴─────┴──────────────┴────┴─────┴────┴─────────┴─────┴────┴───────────┘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants