pastebin - collaborative debugging tool
rovema.kpaste.net RSS


msnfs41client: Patches to document filedisk-sparse in docs+tests, 2025-11-03
Posted by Anonymous on Wed 5th Nov 2025 12:53
raw | new post

  1. From 483a7649d3ad4ce3872f68ba21af14200704b84d Mon Sep 17 00:00:00 2001
  2. From: Roland Mainz <roland.mainz@nrubsig.org>
  3. Date: Mon, 3 Nov 2025 20:59:50 +0100
  4. Subject: [PATCH 1/3] tests: Document filedisk-sparse fork of bobranten's
  5.  filedisk-22
  6.  
  7. Document filedisk-sparse fork of bobranten's filedisk-22.
  8.  
  9. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  10. ---
  11. tests/manual_testing.txt | 27 ++++++++++++++++++---------
  12.  1 file changed, 18 insertions(+), 9 deletions(-)
  13.  
  14. diff --git a/tests/manual_testing.txt b/tests/manual_testing.txt
  15. index 4a2d42d..57c9013 100644
  16. --- a/tests/manual_testing.txt
  17. +++ b/tests/manual_testing.txt
  18. @@ -1,5 +1,5 @@
  19.  #
  20. -# ms-nfs41-client manual testing sequence, 2025-11-01
  21. +# ms-nfs41-client manual testing sequence, 2025-11-03
  22.  #
  23.  # Draft version, needs to be turned into automated tests
  24.  # if possible
  25. @@ -1146,16 +1146,25 @@ mkdir testruns && cd testruns
  26.  # FileDisk
  27.  # (use plain files as disks, disk/CDROM images)
  28.  #
  29. +# Original version is 'https://www.accum.se/~bosse/filedisk/filedisk-22.zip',
  30. +# we use our fork which supports punching sparse file holes and minor other
  31. +# tweaks
  32. +#
  33. +
  34. +#
  35. +# build
  36. +#
  37. +export PATH="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/:$PATH"
  38. +git clone https://github.com/gisburn/filedisk-sparse.git
  39. +cd filedisk-sparse/
  40. +MSBuild.exe filedisk.sln -t:Build -p:Configuration=Debug -p:Platform=x64
  41.  
  42.  #
  43.  # install
  44.  #
  45. -wget 'https://www.accum.se/~bosse/filedisk/filedisk-22.zip'
  46. -unzip filedisk-22.zip
  47. -cd filedisk-22
  48. -cp ./sys/Release/x64/filedisk.sys /cygdrive/c/Windows/System32/drivers/.
  49. -cp ./sys/Release/x64/filedisk.pdb /cygdrive/c/Windows/System32/drivers/.
  50. -cp ./exe/Release/x64/filedisk.exe /cygdrive/c/Windows/.
  51. +cp ./sys/Debug/x64/filedisk.sys /cygdrive/c/Windows/System32/drivers/.
  52. +cp ./sys/Debug/x64/filedisk.pdb /cygdrive/c/Windows/System32/drivers/.
  53. +cp ./exe/Debug/x64/filedisk.exe /cygdrive/c/Windows/.
  54.  chmod a+rx /cygdrive/c/Windows/filedisk.exe
  55.  sc create filedisk binPath='C:\Windows\System32\drivers\filedisk.sys' type=kernel
  56.  
  57. @@ -1173,8 +1182,8 @@ filedisk /umount V:
  58.  # Create NTFS filesystem and use it
  59.  #
  60.  rm -f /cygdrive/n/winntfs_filedisk_001.img
  61. -filedisk /mount 2 'N:\winntfs_filedisk_001.img' 8192G U:
  62. -format.com U: /FS:NTFS "/V:NTFSonNFS4_001" /Q /X
  63. +filedisk /mount 2 'N:\winntfs_filedisk_001.img' 1T U:
  64. +format.com U: /FS:NTFS /A:8192 "/V:NTFSonNFS4_001" /Q /X
  65.  mkdir /cygdrive/u/test1 && cd /cygdrive/u/test1
  66.  rm -Rfv bash && time nice ksh93 /home/roland_mainz/work/msnfs41_uidmapping/ms-nfs41-client/tests/nfsbuildtest/nfsbuildtest.ksh93 bash build
  67.  cd
  68. --
  69. 2.51.0
  70.  
  71. From 47892e6cae791e87b486ed777f2d01bac9458886 Mon Sep 17 00:00:00 2001
  72. From: Roland Mainz <roland.mainz@nrubsig.org>
  73. Date: Mon, 3 Nov 2025 21:26:00 +0100
  74. Subject: [PATCH 2/3] README.md,docs: Document filedisk-sparse as alternative
  75.  to VHD/VHDX disks
  76.  
  77. Document filedisk-sparse as alternative to VHD/VHDX disks.
  78.  
  79. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  80. ---
  81. README.md       | 10 ++++++++++
  82.  docs/README.xml |  9 +++++++++
  83.  2 files changed, 19 insertions(+)
  84.  
  85. diff --git a/README.md b/README.md
  86. index 8d34637..fd1ff44 100644
  87. --- a/README.md
  88. +++ b/README.md
  89. @@ -776,6 +776,16 @@ Within WSL mount UNC path returned by `/sbin/nfs_mount`
  90.        Dieser Fehler wurde von dem Server zurueckgegeben, auf dem sich die
  91.        Datei befindet. Versuchen Sie, die Datei woanders zu speichern.
  92.  
  93. +- [VHD/VHDX
  94. +  disks](https://learn.microsoft.com/en-us/windows-server/storage/disk-management/manage-virtual-hard-disks)
  95. +  currently (Win10, Win11) cannot use files on ms-nfs41-client/NFSv4
  96. +  filesystems as storage. It seems the Windows code makes explicit
  97. +  checks for SMB filesystems, and rejects any non-SMB filesystems.
  98. +
  99. +  As an alternative `filedisk-sparse`
  100. +  (<https://github.com/gisburn/filedisk-sparse/>) can be used to mount
  101. +  (sparse) files as disks or CDROM images.
  102. +
  103.  # Troubleshooting && finding bugs/debugging
  104.  
  105.  - `nfsd_debug.exe` has the `-d` option to set a level for debug output.
  106. diff --git a/docs/README.xml b/docs/README.xml
  107. index a1dbd2c..56460d8 100644
  108. --- a/docs/README.xml
  109. +++ b/docs/README.xml
  110. @@ -875,6 +875,15 @@ konnten gespeichert werden. Daten gingen verloren.
  111.  Dieser Fehler wurde von dem Server zurueckgegeben, auf dem sich die
  112.  Datei befindet. Versuchen Sie, die Datei woanders zu speichern.</programlisting>
  113.        </listitem>
  114. +      <listitem>
  115. +        <para><link xl:href="https://learn.microsoft.com/en-us/windows-server/storage/disk-management/manage-virtual-hard-disks">VHD/VHDX disks</link>
  116. +        currently (Win10, Win11) cannot use files on ms-nfs41-client/NFSv4 filesystems as storage.
  117. +        It seems the Windows code makes explicit checks for SMB filesystems,
  118. +        and rejects any non-SMB filesystems.</para>
  119. +        <para>As an alternative <literal>filedisk-sparse</literal>
  120. +        (<link xl:href="https://github.com/gisburn/filedisk-sparse/">https://github.com/gisburn/filedisk-sparse/</link>)
  121. +        can be used to mount (sparse) files as disks or CDROM images.</para>
  122. +      </listitem>
  123.      </itemizedlist>
  124.    </section>
  125.  
  126. --
  127. 2.51.0
  128.  
  129. From 31409aa71b356ea42d1eee7cb106bc96ad80e47a Mon Sep 17 00:00:00 2001
  130. From: Roland Mainz <roland.mainz@nrubsig.org>
  131. Date: Mon, 3 Nov 2025 21:37:51 +0100
  132. Subject: [PATCH 3/3] README.md,docs: Add note about per-machine software
  133.  installations on filedisk-sparse
  134.  
  135. Add note about per-machine software installations on
  136. NTFS<-->filedisk-sparse<-->NFSv4-Client<-->NFS-Server.
  137.  
  138. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  139. ---
  140. README.md       | 6 ++++++
  141.  docs/README.xml | 3 +++
  142.  2 files changed, 9 insertions(+)
  143.  
  144. diff --git a/README.md b/README.md
  145. index fd1ff44..2364154 100644
  146. --- a/README.md
  147. +++ b/README.md
  148. @@ -786,6 +786,12 @@ Within WSL mount UNC path returned by `/sbin/nfs_mount`
  149.    (<https://github.com/gisburn/filedisk-sparse/>) can be used to mount
  150.    (sparse) files as disks or CDROM images.
  151.  
  152. +  This can also be used to host per-machine software installations/data
  153. +  storage (e.g. use
  154. +  `filedisk /mount 35 'N:\winntfs_filedisk_003.img' S:` as global mount
  155. +  which require NTFS or ReFS, but should be physically hosted on the NFS
  156. +  server.
  157. +
  158.  # Troubleshooting && finding bugs/debugging
  159.  
  160.  - `nfsd_debug.exe` has the `-d` option to set a level for debug output.
  161. diff --git a/docs/README.xml b/docs/README.xml
  162. index 56460d8..d605c85 100644
  163. --- a/docs/README.xml
  164. +++ b/docs/README.xml
  165. @@ -883,6 +883,9 @@ Datei befindet. Versuchen Sie, die Datei woanders zu speichern.</programlisting>
  166.          <para>As an alternative <literal>filedisk-sparse</literal>
  167.          (<link xl:href="https://github.com/gisburn/filedisk-sparse/">https://github.com/gisburn/filedisk-sparse/</link>)
  168.          can be used to mount (sparse) files as disks or CDROM images.</para>
  169. +        <para>This can also be used to host per-machine software installations/data storage (e.g. use
  170. +        <command>filedisk /mount 35 'N:\winntfs_filedisk_003.img' S:</command> as global mount
  171. +        which require NTFS or ReFS, but should be physically hosted on the NFS server.</para>
  172.        </listitem>
  173.      </itemizedlist>
  174.    </section>
  175. --
  176. 2.51.0

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