Changeset 24157 in vbox
- Timestamp:
- Oct 29, 2009 12:27:25 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 54093
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MediumImpl.cpp
r24134 r24157 1835 1835 m->accessibleInLock = false; 1836 1836 1837 LogFlowThisFunc(("Okay - prev state=%d readers=%d\n", m->state, m->readers)); 1837 1838 m->state = MediumState_LockedRead; 1838 1839 … … 1841 1842 default: 1842 1843 { 1844 LogFlowThisFunc(("Failing - state=%d\n", m->state)); 1843 1845 rc = setStateError(); 1844 1846 break; … … 1880 1882 } 1881 1883 1884 LogFlowThisFunc(("new state=%d\n", m->state)); 1882 1885 break; 1883 1886 } … … 1887 1890 default: 1888 1891 { 1892 LogFlowThisFunc(("Failing - state=%d\n", m->state)); 1889 1893 rc = setError(VBOX_E_INVALID_OBJECT_STATE, 1890 1894 tr ("Medium '%ls' is not locked for reading"), … … 1928 1932 m->accessibleInLock = false; 1929 1933 1934 LogFlowThisFunc(("Okay - prev state=%d\n", m->state)); 1930 1935 m->state = MediumState_LockedWrite; 1931 1936 break; … … 1933 1938 default: 1934 1939 { 1940 LogFlowThisFunc(("Failing - state=%d\n", m->state)); 1935 1941 rc = setStateError(); 1936 1942 break; … … 1962 1968 else 1963 1969 m->state = MediumState_Inaccessible; 1970 LogFlowThisFunc(("new state=%d\n", m->state)); 1964 1971 break; 1965 1972 } 1966 1973 default: 1967 1974 { 1975 LogFlowThisFunc(("Failing - state=%d\n", m->state)); 1968 1976 rc = setError(VBOX_E_INVALID_OBJECT_STATE, 1969 1977 tr ("Medium '%ls' is not locked for writing"), … … 3601 3609 * since any COMGETTER(State) is (or will be) blocked until we finish 3602 3610 * and restore the actual state. */ 3611 LogFlowThisFunc(("read locking - prev state=%d - %ls\n", m->state, m->locationFull.raw())); 3603 3612 m->state = MediumState_LockedRead; 3604 3613 tempStateSet = true; … … 3849 3858 else 3850 3859 m->state = MediumState_Inaccessible; 3860 LogFlowThisFunc(("restored state=%d\n", m->state)); 3851 3861 } 3852 3862 else
Note:
See TracChangeset
for help on using the changeset viewer.