Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64767
b: refs/heads/master
c: b8da0d1
h: refs/heads/master
i:
  64765: e859bce
  64763: 037c580
  64759: a6a1783
  64751: 51b1aa6
  64735: abe8195
  64703: 3cbfc51
  64639: 5ce0438
  64511: c3008c1
v: v3
  • Loading branch information
Neil Brown authored and Linus Torvalds committed Sep 11, 2007
1 parent 50c0e1f commit 05c18eb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a1033be72cdb053e182bb41e302a1c11e72b68bb
refs/heads/master: b8da0d1c27f144bce999c653467106f3f0d5a308
20 changes: 15 additions & 5 deletions trunk/fs/nfsd/nfsfh.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,13 +566,23 @@ enum fsid_source fsid_source(struct svc_fh *fhp)
case FSID_DEV:
case FSID_ENCODE_DEV:
case FSID_MAJOR_MINOR:
return FSIDSOURCE_DEV;
if (fhp->fh_export->ex_dentry->d_inode->i_sb->s_type->fs_flags
& FS_REQUIRES_DEV)
return FSIDSOURCE_DEV;
break;
case FSID_NUM:
return FSIDSOURCE_FSID;
default:
if (fhp->fh_export->ex_flags & NFSEXP_FSID)
return FSIDSOURCE_FSID;
else
return FSIDSOURCE_UUID;
break;
default:
break;
}
/* either a UUID type filehandle, or the filehandle doesn't
* match the export.
*/
if (fhp->fh_export->ex_flags & NFSEXP_FSID)
return FSIDSOURCE_FSID;
if (fhp->fh_export->ex_uuid)
return FSIDSOURCE_UUID;
return FSIDSOURCE_DEV;
}

0 comments on commit 05c18eb

Please sign in to comment.