Bug 163014
Summary: | incorrect working directory after removing USB flash disk without umounting it | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Vlado Potisk <reg.bugs> |
Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 3 | CC: | wtogami |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-07-12 22:06:41 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Vlado Potisk
2005-07-12 09:26:28 UTC
This is expected behaviour. Trying to do anything like reading/writing files in that dir will fail, but as you have a current reference count on the dir, it's still a valid part of the tree until you cd out of it. The situation is little bit different, but worse when the directory structure on the flash disk are similar to the root disk, here is an example: # mount /media/usbdisk1 # cd /media/usbdisk1/bin -- unplug the usb disk hardware now -- # pwd /media/usbdisk1/bin # sh # pwd /bin # ls . | wc 77 77 419 # ls /bin | wc 96 96 593 The new shell says its working directory is /bin with 77 entries (on the flash disk) but it also recognizes another /bin with 96 entries (on the root hard disk). Two directories with the same name ! Be sure to always correctly unmount external disks, otherwise strange things might happen ! |