diff options
| author | Steve French <stevef@steveft21.ltcsamba> | 2003-09-02 03:34:27 -0500 |
|---|---|---|
| committer | Steve French <cifs.adm@hostme.bitkeeper.com> | 2003-09-02 03:34:27 -0500 |
| commit | 459de5e43f6b3bb70979c3680c238fa13f2deb30 (patch) | |
| tree | 4a14e747b284df537eb4c95e1954421c7433df12 | |
| parent | 2af141c498aebfa73485f49e60327d9b51438875 (diff) | |
fix bad return code mapping when server lacks hard link support
| -rw-r--r-- | fs/cifs/CHANGES | 3 | ||||
| -rw-r--r-- | fs/cifs/link.c | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/fs/cifs/CHANGES b/fs/cifs/CHANGES index fa18b356d648..10114ce265da 100644 --- a/fs/cifs/CHANGES +++ b/fs/cifs/CHANGES @@ -1,7 +1,8 @@ Version 0.91 ------------ Fix oops in reopen_files when invalid dentry. drop dentry on server rename -and on revalidate errors. Fix cases where pid is now tgid +and on revalidate errors. Fix cases where pid is now tgid. Fix return code +on create hard link when server does not support them. Version 0.90 ------------ diff --git a/fs/cifs/link.c b/fs/cifs/link.c index 9717910ee514..93c200f49f51 100644 --- a/fs/cifs/link.c +++ b/fs/cifs/link.c @@ -1,7 +1,7 @@ /* * fs/cifs/link.c * - * Copyright (c) International Business Machines Corp., 2002 + * Copyright (C) International Business Machines Corp., 2002,2003 * Author(s): Steve French (sfrench@us.ibm.com) * * This library is free software; you can redistribute it and/or modify @@ -51,9 +51,12 @@ cifs_hardlink(struct dentry *old_file, struct inode *inode, if (cifs_sb_target->tcon->ses->capabilities & CAP_UNIX) rc = CIFSUnixCreateHardLink(xid, pTcon, fromName, toName, cifs_sb_target->local_nls); - else + else { rc = CIFSCreateHardLink(xid, pTcon, fromName, toName, cifs_sb_target->local_nls); + if(rc == -EIO) + rc = -EOPNOTSUPP; + } /* if (!rc) */ { |
