public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* please document alternate "bind" syntax in mount(8)
@ 2014-02-07 16:52 Phillip Susi
  2014-02-17 11:58 ` Karel Zak
  0 siblings, 1 reply; 3+ messages in thread
From: Phillip Susi @ 2014-02-07 16:52 UTC (permalink / raw)
  To: util-linux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Forwarded from debian bug #409942:

At the moment, neither mount(8) nor fstab(5) tells us how to do bind
mounts with fstab, or even that it's possible.  We have to *guess* that
doing this in fstab works:
/some/old/dir   /some/new/mountpoint   ???   bind   ???   ???
and it's not clear what is or isn't permitted for ???.

Please consider amending mount(8) so the options listed under -o include
something like this:
        bind     same as --bind (other mount options are silently ignored)
        [...]
	rbind    same as --rbind (other mount options are silently ignored)

Isn't it also time to update the SYNOPSIS in mount(8), now that linux
versions >=2.4.0 will be standard ?  I suggest adding two lines
like this:
         mount { --bind | -o bind } olddir newdir
         mount { --rbind | -o rbind } olddir newdir
or, possibly, just one line
         mount { --bind | --rbind | -o bind | -o rbind } olddir newdir

Thanks for your work.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJS9Q9fAAoJEI5FoCIzSKrwvJcIAJAzpyfRhoqBUred3klaeoVC
MKxWyFlKmfj0qf18KrWcqxdDG2wssXPLkDexCOfD32ZPDUbnJol8BCc237b7TNVe
gU3NJQXZ3WrmwzeGO6+0HVHdSiu0QR2vgMHYda7q+xHhyIyEhZFwl2vHoRf4HXNm
3hd5CeINnz9eu8Zh/h7BFbj+bZFMu7HVlb/IoTT7aByMqCLv+yJvB0+vOOSHFkmU
AEBvEJix8DxwNDyXcq4LniifvrvxeG70B6AY8ZGLumano3I2BpYYu9a/LdUNv+lN
JtiRffmEXk+joeTy8rosKWj7XI12Jabb5+PXUAHg4nxZKzP3I0HUF6UcAiDsoJY=
=WglM
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: please document alternate "bind" syntax in mount(8)
  2014-02-07 16:52 please document alternate "bind" syntax in mount(8) Phillip Susi
@ 2014-02-17 11:58 ` Karel Zak
  2014-02-17 14:45   ` Phillip Susi
  0 siblings, 1 reply; 3+ messages in thread
From: Karel Zak @ 2014-02-17 11:58 UTC (permalink / raw)
  To: Phillip Susi; +Cc: util-linux

On Fri, Feb 07, 2014 at 11:52:48AM -0500, Phillip Susi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Forwarded from debian bug #409942:
> 
> At the moment, neither mount(8) nor fstab(5) tells us how to do bind
> mounts with fstab, or even that it's possible.  We have to *guess* that
> doing this in fstab works:
> /some/old/dir   /some/new/mountpoint   ???   bind   ???   ???
> and it's not clear what is or isn't permitted for ???.

I see section "The bind mounts." in the man mount page where is
fstab example.

> Isn't it also time to update the SYNOPSIS in mount(8), now that linux
> versions >=2.4.0 will be standard ?  I suggest adding two lines
> like this:
>          mount { --bind | -o bind } olddir newdir
>          mount { --rbind | -o rbind } olddir newdir
> or, possibly, just one line
>          mount { --bind | --rbind | -o bind | -o rbind } olddir newdir

 IMHO all is well described in the man page now.

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: please document alternate "bind" syntax in mount(8)
  2014-02-17 11:58 ` Karel Zak
@ 2014-02-17 14:45   ` Phillip Susi
  0 siblings, 0 replies; 3+ messages in thread
From: Phillip Susi @ 2014-02-17 14:45 UTC (permalink / raw)
  To: Karel Zak; +Cc: util-linux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2/17/2014 6:58 AM, Karel Zak wrote:
> I see section "The bind mounts." in the man mount page where is 
> fstab example.

Oh my... even being told right where it was I had to read it three
times before I saw it.

>> Isn't it also time to update the SYNOPSIS in mount(8), now that
>> linux versions >=2.4.0 will be standard ?  I suggest adding two
>> lines like this: mount { --bind | -o bind } olddir newdir mount {
>> --rbind | -o rbind } olddir newdir or, possibly, just one line 
>> mount { --bind | --rbind | -o bind | -o rbind } olddir newdir
> 
> IMHO all is well described in the man page now.

It is... somewhere down in the mountain of text that is mount.8.  It
might be nice to have the usage shown in the synopsis though.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTAiCeAAoJEI5FoCIzSKrwsXIIAKgQX+W54lBwv6+DZgd0jd5N
F+tSMbx2rdfffr5SW2cp98S//JfiQLCC7Z/dtce5ycYHXM5XZacNAWBg9SDi7/ne
OhEFArcMN03GqCUjhPvGfDcoaPSZ246ZkjmSTNePXwzbLGsZlhJmRUK3OgAzgJ5x
qPkHos8/3gG+FnQWYNeeN0VORKjvP069dbBBBOyoFYq/CuL8lv7BJJFz3ktRSOkm
IOkNYeU7SVmhk43Cdw7pEVWHSQ6s8Gw1xR4fjVCGyRgXjrqHO0cj9cK7y48L0uhT
uuRNlTzhbMbYKxCz94CT0mVHSvxwMi0CM3i7JRHlOv2+8U2r2OM11dJwWPHPNJA=
=Nj6l
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-17 14:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-07 16:52 please document alternate "bind" syntax in mount(8) Phillip Susi
2014-02-17 11:58 ` Karel Zak
2014-02-17 14:45   ` Phillip Susi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox