if (status == STATUS_OBJECTID_NOT_FOUND) /* No object ID */
return 0;
- if (status == STATUS_INVALID_DEVICE_REQUEST) {
+ if (status == STATUS_INVALID_DEVICE_REQUEST ||
+ status == STATUS_NOT_SUPPORTED /* Samba volume, WinXP */) {
/* The filesystem claimed to support object IDs, but we can't
* actually read them. This happens with Samba. */
ctx->vol_flags &= ~FILE_SUPPORTS_OBJECT_IDS;
* all files have been enumerated. */
if (status != STATUS_END_OF_FILE) {
if (status == STATUS_INVALID_DEVICE_REQUEST /* old OS */ ||
- status == STATUS_INVALID_PARAMETER /* not root directory */ ) {
+ status == STATUS_NOT_SUPPORTED /* Samba volume, WinXP */ ||
+ status == STATUS_INVALID_PARAMETER /* not root directory */ )
+ {
/* Silently try standard recursive scan instead */
ret = -1;
} else {