Justin Pryzby <email address hidden> wrote:
> I can't reproduce this. mount.c:856 blocks all signals, then tries to
> mount the fs, then updates mtab, then unblocks signals. I tested and
> this appears to ensure atomicity of the mount,mtab block WRT signals.
Jason, I just did it again:
- Put cd in tray;
- in one window, "mount /dev/hdc"
- while tray is loading, as the same user mounting the device, find
the mount process in other window (ps ax | grep mount) and kill it (kill -9
26669)
- Mounting window shows "Killed".
- df doesn't show filesystem
- ls /cdrom shows filesystem's contents
- Umount /dev/hdc shows:
umount: /dev/hdc is not mounted (according to mtab)
- umount /dev/hdc as root says "not mounted", but umount
/media/cdrom0 (which doesn't work as a regular user in this situation) works
as root.
I just repoed this twice in a row. The second time, I had to "kill
-9" the mount process twice, but it still worked.
Justin Pryzby <email address hidden> wrote:
> I can't reproduce this. mount.c:856 blocks all signals, then tries to
> mount the fs, then updates mtab, then unblocks signals. I tested and
> this appears to ensure atomicity of the mount,mtab block WRT signals.
Jason, I just did it again:
- Put cd in tray;
- in one window, "mount /dev/hdc"
- while tray is loading, as the same user mounting the device, find
the mount process in other window (ps ax | grep mount) and kill it (kill -9
26669)
- Mounting window shows "Killed".
- df doesn't show filesystem
- ls /cdrom shows filesystem's contents
- Umount /dev/hdc shows:
umount: /dev/hdc is not mounted (according to mtab)
- umount /dev/hdc as root says "not mounted", but umount
/media/cdrom0 (which doesn't work as a regular user in this situation) works
as root.
I just repoed this twice in a row. The second time, I had to "kill
-9" the mount process twice, but it still worked.
- Tyler