2552 smbfs: add support for NFS-like remove

Review Request #914 — Created Feb. 24, 2018 and submitted

gwr
illumos-gate
2552
general

2552 smbfs: add support for NFS-like remove

This is (mostly) work from Jilin Xpd jilinxpd@gmail.com
done during the 2012 Google Summer of Code program.
I finished it up, did some debug and testing etc.

Note that there remain several XXX marks and such in the code after this change.
I've postponed cleanup of those until after the mmap work to avoid making it
harder to merge that (much larger) work.

There are some STC-derived tests for this (to be integrated separately).

  • 0
  • 0
  • 5
  • 0
  • 5
Description From Last Updated
yuripv
  1. 
      
  2. No "CIFS", pretty please?

  3. 
      
yuripv
  1. Looks good (as far as I understand the code, of course).

  2. 
      
gwr
gwr
jbk
  1. Ship It!
  2. 
      
seeemef@mac.com
  1. 
      
  2. "we'll always rename the file ... and then set delete-on-close" — but below it seems only an attempt to rename is made.

    1. Yeah, that comment is a little stale.

  3. Below it seems as if the rename may fail but the set-delete-on-close may succeed — and "undo everything" will not be done.

  4. If smbfs_smb_t2rename() might fail here, as the first call above might have done, then maybe a SMBVDEBUG() is worthy here too.

    1. Sure, though generally if we can rename it to the temporary name, renaming it back doesn't fail.

  5. 
      
gwr
gwr
jbk
  1. Ship It!
  2. 
      
yuripv
  1. Ship It!
  2. 
      
seeemef@mac.com
  1. LGTM

  2. 
      
gwr
Review request changed

Status: Closed (submitted)

Loading...