pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


msnfs41client backup 2024-05-02
Posted by Anonymous on Thu 2nd May 2024 14:53
raw | new post

  1. diff --git a/cygwin/devel/msnfs41client.bash b/cygwin/devel/msnfs41client.bash
  2. index 41a2b4f..51967cd 100644
  3. --- a/cygwin/devel/msnfs41client.bash
  4. +++ b/cygwin/devel/msnfs41client.bash
  5. @@ -212,7 +212,7 @@ function nfsclient_rundeamon
  6.                         "${nfsd_args[@]:1}"
  7.                 )
  8.                 "${nfsd_args[@]}"
  9. -       elif false ; then
  10. +       elif true ; then
  11.                 #
  12.                 # test nfsd_debug.exe with Dr. Memory (version 2.6.0 -- build 0)
  13.                 #
  14. @@ -223,7 +223,7 @@ function nfsclient_rundeamon
  15.                                 '-brief'
  16.                                 '-no_follow_children'
  17.                                 '-lib_blocklist_frames' '1'
  18. -                               '-check_uninit_blocklist' 'MSWSOCK,WS2_32'
  19. +                               '-check_uninit_blocklist' 'MSWSOCK,WS2_32,ucrtbased'
  20.                                 '-malloc_callstacks'
  21.                                 '-delay_frees' '16384'
  22.                                 '-delay_frees_maxsz' $((64*1024*1024))
  23. @@ -279,12 +279,6 @@ function nfsclient_system_rundeamon
  24.                 #'--gid' '1616' '--uid' '1616'
  25.         )
  26.  
  27. -       # run everything as su_system
  28. -       nfsd_args=(
  29. -               'su_system'
  30. -               "${nfsd_args[@]}"
  31. -       )
  32. -
  33.         #
  34.         # cdb cheat sheet:
  35.         #
  36. @@ -304,6 +298,13 @@ function nfsclient_system_rundeamon
  37.                         '--args'
  38.                         "${nfsd_args[@]}"
  39.                 )
  40. +
  41. +               # run everything as su_system
  42. +               nfsd_args=(
  43. +                       'su_system'
  44. +                       "${nfsd_args[@]}"
  45. +               )
  46. +              
  47.                 "${nfsd_args[@]}"
  48.         elif false ; then
  49.                 export _NT_ALT_SYMBOL_PATH="$(cygpath -w "$PWD");srv*https://msdl.microsoft.com/download/symbols"
  50. @@ -314,8 +315,15 @@ function nfsclient_system_rundeamon
  51.                         "$(cygpath -w "$PWD/${nfsd_args[0]}")"
  52.                         "${nfsd_args[@]:1}"
  53.                 )
  54. +
  55. +               # run everything as su_system
  56. +               nfsd_args=(
  57. +                       'su_system'
  58. +                       "${nfsd_args[@]}"
  59. +               )
  60. +              
  61.                 "${nfsd_args[@]}"
  62. -       elif false ; then
  63. +       elif true ; then
  64.                 #
  65.                 # test nfsd_debug.exe with Dr. Memory (version 2.6.0 -- build 0)
  66.                 #
  67. @@ -326,7 +334,7 @@ function nfsclient_system_rundeamon
  68.                                 '-brief'
  69.                                 '-no_follow_children'
  70.                                 '-lib_blocklist_frames' '1'
  71. -                               '-check_uninit_blocklist' 'MSWSOCK,WS2_32'
  72. +                               '-check_uninit_blocklist' 'MSWSOCK,WS2_32,ucrtbased'
  73.                                 '-malloc_callstacks'
  74.                                 '-delay_frees' '16384'
  75.                                 '-delay_frees_maxsz' $((64*1024*1024))
  76. @@ -340,10 +348,18 @@ function nfsclient_system_rundeamon
  77.                                 "${nfsd_args[@]}"
  78.                                 '--crtdbgmem' 'none'
  79.                         )
  80. +
  81. +               # run everything as su_system
  82. +               nfsd_args=(
  83. +                       'su_system'
  84. +                       "${nfsd_args[@]}"
  85. +               )
  86. +              
  87.                 "${nfsd_args[@]}"
  88.         elif false ; then
  89.                 typeset -i vsdiagnostics_id=50
  90. -               VSDiagnostics \
  91. +               # run everything as su_system
  92. +               su_system VSDiagnostics \
  93.                         start ${vsdiagnostics_id} \
  94.                         "/launch:$(cygpath -w "$PWD/nfsd_debug.exe")" \
  95.                         "/launchArgs:${nfsd_args[*]:1}" \
  96. @@ -354,6 +370,11 @@ function nfsclient_system_rundeamon
  97.                         "$(which -a 'VSDiagnostics.exe')" \
  98.                         "${vsdiagnostics_id}" "$$"
  99.         else
  100. +               # run everything as su_system
  101. +               nfsd_args=(
  102. +                       'su_system'
  103. +                       "${nfsd_args[@]}"
  104. +               )
  105.                
  106.                 "${nfsd_args[@]}"
  107.         fi
  108. diff --git a/daemon/nfs41_xdr.c b/daemon/nfs41_xdr.c
  109. index 1a33d95..34f60c3 100644
  110. --- a/daemon/nfs41_xdr.c
  111. +++ b/daemon/nfs41_xdr.c
  112. @@ -2304,7 +2304,7 @@ static bool_t decode_readdir_entry(
  113.      unsigned char name[NFS4_OPAQUE_LIMIT];
  114.      unsigned char *nameptr = &name[0];
  115.      uint32_t name_len, entry_len;
  116. -    fattr4 attrs;
  117. +    fattr4 attrs = { 0 };
  118.  
  119.      /* decode into temporaries so we can determine if there's enough
  120.       * room in the buffer for this entry */
  121. diff --git a/sys/nfs41_driver.c b/sys/nfs41_driver.c
  122. index c1ddcfd..c1181c8 100644
  123. --- a/sys/nfs41_driver.c
  124. +++ b/sys/nfs41_driver.c
  125. @@ -167,7 +167,7 @@ typedef enum _nfs41_updowncall_state {
  126.  typedef struct _updowncall_entry {
  127.      DWORD version;
  128.      LONGLONG xid;
  129. -    DWORD opcode;
  130. +    nfs41_opcodes opcode;
  131.      NTSTATUS status;
  132.      nfs41_updowncall_state state;
  133.      FAST_MUTEX lock;

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at