Message138197
I was looking at this - and see that (at least as far as GetFileAttributes is concerned) that a mount and a linked directory are seen the same...
Here are some tests using ctypes
# mounted drive
>>> hex(windll.kernel32.GetFileAttributesW(ur"c:\temp\test_c_mount"))
'0x410'
# normal directory
>>> hex(windll.kernel32.GetFileAttributesW(ur"c:\temp\orig"))
'0x10'
# link (created via mklink /d c:\temp\orig c:\temp\here2
>>> hex(windll.kernel32.GetFileAttributesW(ur"c:\temp\here2"))
'0x410'
On futher searching - I found the following link:
http://msdn.microsoft.com/en-us/library/aa363940%28v=vs.85%29.aspx
So the function ismount will need to do the following
a) Get the file attributes
b) check that it's a directory and is a reparse point
c) Use FindFirstFile (and FindNextFile? - I need to test more) to fill in WIN32_FIND_DATA.dwResearved0
d) Check that against IO_REPARSE_TAG_MOUNT_POINT (0xA0000003) |
|
Date |
User |
Action |
Args |
2011-06-12 03:23:51 | markm | set | recipients:
+ markm, orsenthil, giampaolo.rodola, tim.golden, sijinjoseph, Oren_Held, santoso.wijaya |
2011-06-12 03:23:51 | markm | set | messageid: <1307849031.15.0.667455678571.issue9035@psf.upfronthosting.co.za> |
2011-06-12 03:23:50 | markm | link | issue9035 messages |
2011-06-12 03:23:50 | markm | create | |
|