busybox/util-linux
Denys Vlasenko cf4dc4a09d mount: "mount -o rw ...." should not fall back to RO mount
The reported case was an attempt to remount,rw a CD-ROM:

  mount -o remount,rw /mnt/sr0

which "succeeded" by falling back to RO:

  mount("/dev/sr0", "/mnt/sr0", 0x412862, MS_REMOUNT|MS_SILENT|MS_RELATIME, "nojoliet,check=s,map=n,blocksize"...) = -1 EROFS (Read-only file system)
  ...
  mount("/dev/sr0", "/mnt/sr0", 0x412862, MS_RDONLY|MS_REMOUNT|MS_SILENT|MS_RELATIME, "nojoliet,check=s,map=n,blocksize"...) = 0

Clearly, not what was intended!

function                                             old     new   delta
parse_mount_options                                  241     267     +26
mount_main                                          1198    1211     +13
singlemount                                         1301    1313     +12
inetd_main                                          1919    1911      -8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 51/-8)              Total: 43 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2021-10-08 02:20:10 +02:00
..
2020-08-13 17:12:56 +02:00
2021-06-16 17:00:56 +02:00
2021-09-21 15:25:37 +02:00
2020-12-18 04:12:51 +01:00
2021-06-14 20:47:20 +02:00
2020-08-13 17:12:56 +02:00
2018-12-28 03:20:17 +01:00
2020-08-13 17:12:56 +02:00
2020-08-13 17:12:56 +02:00
2021-08-16 11:13:30 +02:00
2021-06-25 01:14:43 +02:00
2020-08-13 17:12:56 +02:00
2021-06-13 03:51:55 +02:00
2020-08-13 17:12:56 +02:00
2021-09-16 01:09:32 +02:00
2021-06-25 00:16:04 +02:00
2020-12-13 19:18:28 +01:00
2021-06-17 13:45:13 +02:00
2018-12-28 03:20:17 +01:00
2020-08-13 17:12:56 +02:00
2016-03-14 19:34:15 +01:00
2020-08-13 17:12:56 +02:00
2020-08-13 17:12:56 +02:00
2018-12-28 03:20:17 +01:00
2021-06-13 03:51:55 +02:00
2020-12-18 04:12:51 +01:00
2020-08-13 17:12:56 +02:00
2018-12-28 03:20:17 +01:00
2021-06-13 03:51:55 +02:00
2021-06-15 10:00:18 +02:00
2021-08-22 00:08:18 +02:00
2018-12-28 03:20:17 +01:00
2020-08-13 17:12:56 +02:00
2020-12-18 04:12:51 +01:00
2018-12-28 03:20:17 +01:00
2020-08-13 17:12:56 +02:00
2021-08-15 20:41:18 +02:00
2020-12-18 04:12:51 +01:00
2020-12-18 04:12:51 +01:00
2018-12-28 03:20:17 +01:00