none
BranchCache - If a file is opened more than once at the same time is it locked for the second user?

    Question

  • On a site that is using BranchCache, if user 1 opens a document, then user 2 opens the same document while user 1 has it opened, is the document locked for user 2 as read-only? If so does the second user get a prompt to notify them that the file is locked and also when the document is available for modifying? Also if user 2 has it opened and user 1 makes modifications and closes it, what happens to the document that user 2 has opened? Do they need to close and open to get the changes that user 1 has made?

    Thanks

    Glen

    Wednesday, June 30, 2010 2:31 AM

Answers

  • Glen:

    Just to clarify, BranchCache has no impact on file system semantics such as file locking.  All locking semantics are preserved as is with or without the use of BranchCache.

    File locking is dependent on the scenario......

    Take for example a MyNotes.TXT file that is opened using the Windows Notepad application.  User1 and User2 can have the file open for read write access at the same time.  Notepad does not put an explicit lock on the file.  So the copy that's on the server will reflect those changes that were last made from the most recent save by either User1 or User2 or from any other user.

    Behaivor is different with MS WORD.  When User1 opens a read/write .DOC file using MS WORD, a lock is put on the file preventing another from editing the same .DOC file.  User2 can open the file with WORD (or Notepad) but won't be able to save the file until the lock is released.

    Hope that helps.

    Si.

     

    • Marked as answer by Tiger Li Friday, July 02, 2010 1:52 AM
    Friday, July 02, 2010 12:01 AM

All replies

  • Hi Glen,

     

    Thanks for posting here.

     

    Based on my knowledge , with branchcache mode, the behavior of shared file access is simulate with no-branchecache mode.

     

    I assume the shared file is MS office document.

     

    >if user 1 opens a document, then user 2 opens the same document while user 1 has it opened, is the document locked for user 2 as read-only? If so does the second user get a prompt to notify them that the file is locked and also when the document is available for modifying?

     

    Yes , if user attempt to open a file which had been opened by other user , then system will notify user to choose open as read-only or open a copy of this file.

     

    > Also if user 2 has it opened and user 1 makes modifications and closes it, what happens to the document that user 2 has opened? Do they need to close and open to get the changes that user 1 has made?

     

    In that case ,user2 have to open the original file again so that he can check the modification of user1 .If user2 had chosen open a copy of this file before and modified , then the modifications need  saved to a new file,it will not combine with original file automatically.

     

    If anything is unclear or if there is anything I can do for you, please feel free to let me know.

     

    Thanks.

     

    Tiger Li


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    • Edited by Tiger Li Friday, July 02, 2010 1:51 AM
    • Marked as answer by Tiger Li Friday, July 02, 2010 1:52 AM
    • Unmarked as answer by Tiger Li Friday, July 02, 2010 1:52 AM
    • Proposed as answer by Tiger Li Friday, July 02, 2010 1:52 AM
    Wednesday, June 30, 2010 7:09 AM
  • Glen:

    Just to clarify, BranchCache has no impact on file system semantics such as file locking.  All locking semantics are preserved as is with or without the use of BranchCache.

    File locking is dependent on the scenario......

    Take for example a MyNotes.TXT file that is opened using the Windows Notepad application.  User1 and User2 can have the file open for read write access at the same time.  Notepad does not put an explicit lock on the file.  So the copy that's on the server will reflect those changes that were last made from the most recent save by either User1 or User2 or from any other user.

    Behaivor is different with MS WORD.  When User1 opens a read/write .DOC file using MS WORD, a lock is put on the file preventing another from editing the same .DOC file.  User2 can open the file with WORD (or Notepad) but won't be able to save the file until the lock is released.

    Hope that helps.

    Si.

     

    • Marked as answer by Tiger Li Friday, July 02, 2010 1:52 AM
    Friday, July 02, 2010 12:01 AM