Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug/Request: _umountable should not depend on /etc/mtab
- X-seq: zsh-users 26104
- From: Norbert Lange <nolange79@xxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: Bug/Request: _umountable should not depend on /etc/mtab
- Date: Fri, 16 Oct 2020 16:11:10 +0200
- Archived-at: <https://zsh.org/users/26104>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-10/CADYdroMUhw9zEOxuOUm6XHMuA4cKk0EUEJnH%3D%3D1U8%2B5nyKDSRg%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-oo1-f66.google.com) smtp.remote-ip=209.85.161.66; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vEknXiGJoYavjFBM8dXfjF5FXj4qKVg7H7MQHpF6lrI=; b=OSsCt/xT5OMSk373L7cpujm8ac7I45xggLEzb9if4RBCYozb779MkSFci+IYGknVAx 7OZLbfymTKIglvYo9lVQNfGY8yX/UN3yoPTzJDrPksdwWThGC57wsRCKQLnQNYETt2A+ XYJe6Uj1Ao8Z09BxLjU4G9Po8l3lSrouek9uICmZ3GKvtxtRrTTz3SbWG7M0OrSWxu3V TlEggwH2OrUDM2yxh/Pwbb1RZFsAg8NjMT4jb0zOdqahc5cpBk/CQcZ+F5Ma4FQNsT71 JkozRFr4IuyTGI2FZfFA6QlI7rpdx6/voayT1IjKRQRQyKro41yRUrxGX1DCd5q7qIbs wS0Q==
- In-reply-to: <58433fbc-e91c-4ed5-8f36-104a1b6a1ee9@www.fastmail.com>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:zsh-users-request@zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-users>
- References: <CADYdroORkN84P+eEdDBnKVTo-eY6A9C0ZEj53Y5=m9ihaW0CqQ@mail.gmail.com> <58433fbc-e91c-4ed5-8f36-104a1b6a1ee9@www.fastmail.com>
- Sender: zsh-users-request@xxxxxxx
Am Fr., 16. Okt. 2020 um 15:35 Uhr schrieb Daniel Shahaf
<d.s@xxxxxxxxxxxxxxxxxx>:
>
> Norbert Lange wrote on Fri, 16 Oct 2020 10:14 +00:00:
> > Hello,
> >
> > On Linux, /etc/mtab is ancient history, please use /proc/self/mounts.
> > Atleast the _unmountable function is affected.
> > (its easy to add an compatibility symlink, but this should not be necessary)
>
> Can we just s#/etc/mtab#/proc/self/mounts#g? I.e., what Linux systems
> _don't_ have /proc/self/mounts? (New systems with custom kernel
> configs? Old systems? _How_ old?)
>
> Failing that, the code will have to use /proc/self/mounts if it exists
> and /etc/mtab otherwise.
Hi,
/proc/self/mounts has been available since Linux 2.4.19, released in 2002.
Given how likely that is to run on current hardware I'd say, just sed away.
/proc/self/mounts is itself superseded by /proc/self/mountinfo,
which contains more info but has a different format.
https://man7.org/linux/man-pages/man5/proc.5.html
Norbert
Messages sorted by:
Reverse Date,
Date,
Thread,
Author