Merge lp:~jelmer/brz/win32-fstypes into lp:brz/3.2
Proposed by
Jelmer Vernooij
Status: | Merged |
---|---|
Approved by: | Jelmer Vernooij |
Approved revision: | no longer in the source branch. |
Merge reported by: | The Breezy Bot |
Merged at revision: | not available |
Proposed branch: | lp:~jelmer/brz/win32-fstypes |
Merge into: | lp:brz/3.2 |
Diff against target: |
241 lines (+101/-17) 3 files modified
breezy/osutils.py (+37/-7) breezy/tests/test_osutils.py (+30/-2) breezy/win32utils.py (+34/-8) |
To merge this branch: | bzr merge lp:~jelmer/brz/win32-fstypes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jelmer Vernooij | Approve | ||
Aleksandr Smyshliaev (community) | Approve | ||
Review via email: mp+414132@code.launchpad.net |
Description of the change
Attempt to support finding filesystem type on Windows.
To post a comment you must log in.
I found these problems with this patch:
1. Line 425 in win32utils.py is useless. ation must be a Unicode string and it must include the trailing backslash. ation() is upper case.
2. kernel32 is not defined in win32utils.py line 423.
3. The call in win32utils.py line 426 should use the API call computed in line 423. (It is possible to just put the whole path here and drop line 423 altogether.)
4. The argument to GetVolumeInform
5. The path must be made absolute before passing it to splitdrive().
7. The type string returned by GetVolumeInform
And one more note: for FAT volumes the type is "FAT32"; perhaps it should be added to the type checks.