Guest User

Untitled

a guest
Jun 14th, 2012
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.83 KB | None | 0 0
  1. + SIZE_BYTES=10485760
  2. + gvfs-mount -oi
  3. ++ mktemp --suffix=-gvfs-test
  4. + IMG=/tmp/tmp.L3Nlv4Ukhc-gvfs-test
  5. + dd if=/dev/zero of=/tmp/tmp.L3Nlv4Ukhc-gvfs-test bs=1 count=1 seek=10485760
  6. 1+0 records in
  7. 1+0 records out
  8. 1 byte (1 B) copied, 4.0591e-05 s, 24.6 kB/s
  9. ++ sudo losetup --show -f /tmp/tmp.L3Nlv4Ukhc-gvfs-test
  10. Monitoring events. Press Ctrl+C to quit.
  11. + LOOP_DEV=/dev/loop0
  12. + sudo mkfs.ext2 -b 4096 /dev/loop0 2560
  13. mke2fs 1.42 (29-Nov-2011)
  14. Filesystem label=
  15. OS type: Linux
  16. Block size=4096 (log=2)
  17. Fragment size=4096 (log=2)
  18. Stride=0 blocks, Stripe width=0 blocks
  19. 2560 inodes, 2560 blocks
  20. 128 blocks (5.00%) reserved for the super user
  21. First data block=0
  22. 1 block group
  23. 32768 blocks per group, 32768 fragments per group
  24. 2560 inodes per group
  25.  
  26. Allocating group tables: done
  27. Writing inode tables: done
  28. Writing superblocks and filesystem accounting information: done
  29.  
  30. ++ mktemp -d --suffix=-gvfs-test
  31. + TMP_MOUNT=/tmp/tmp.4qsCSEuhS8-gvfs-test
  32. ++ seq 20
  33. + for i in '$(seq 20)'
  34. + sudo bash -c 'mount /dev/loop0 /tmp/tmp.4qsCSEuhS8-gvfs-test && umount /tmp/tmp.4qsCSEuhS8-gvfs-test'
  35. Drive connected: '10 MB File'
  36. Drive(0): 10 MB File
  37. Type: GProxyDrive (GProxyVolumeMonitorGdu)
  38. ids:
  39. unix-device: '/dev/loop0'
  40. themed icons: [drive-removable-media-file] [drive-removable-media] [drive-removable] [drive]
  41. is_media_removable=0
  42. has_media=1
  43. is_media_check_automatic=0
  44. can_poll_for_media=0
  45. can_eject=0
  46. can_start=0
  47. can_stop=0
  48. start_stop_type=unknown
  49. Volume(0): 10 MB Filesystem
  50. Type: GProxyVolume (GProxyVolumeMonitorGdu)
  51. ids:
  52. unix-device: '/dev/loop0'
  53. uuid: '8fa1088b-0989-4bb5-bca4-2f4f6fe92dc1'
  54. themed icons: [drive-removable-media-file] [drive-removable-media] [drive-removable] [drive]
  55. can_mount=1
  56. can_eject=0
  57. should_automount=0
  58.  
  59. Volume added: '10 MB Filesystem'
  60. Volume(0): 10 MB Filesystem
  61. Type: GProxyVolume (GProxyVolumeMonitorGdu)
  62. ids:
  63. unix-device: '/dev/loop0'
  64. uuid: '8fa1088b-0989-4bb5-bca4-2f4f6fe92dc1'
  65. themed icons: [drive-removable-media-file] [drive-removable-media] [drive-removable] [drive]
  66. can_mount=1
  67. can_eject=0
  68. should_automount=0
  69.  
  70. Volume changed: '10 MB Filesystem'
  71. Volume(0): 10 MB Filesystem
  72. Type: GProxyVolume (GProxyVolumeMonitorGdu)
  73. ids:
  74. unix-device: '/dev/loop0'
  75. uuid: '8fa1088b-0989-4bb5-bca4-2f4f6fe92dc1'
  76. themed icons: [drive-removable-media-file] [drive-removable-media] [drive-removable] [drive]
  77. can_mount=1
  78. can_eject=0
  79. should_automount=0
  80.  
  81. Mount added: '10 MB Filesystem'
  82. Mount(0): 10 MB Filesystem -> file:///tmp/tmp.4qsCSEuhS8-gvfs-test
  83. Type: GProxyMount (GProxyVolumeMonitorGdu)
  84. default_location=file:///tmp/tmp.4qsCSEuhS8-gvfs-test
  85. themed icons: [drive-removable-media-file] [drive-removable-media] [drive-removable] [drive]
  86. can_unmount=1
  87. umount: /tmp/tmp.4qsCSEuhS8-gvfs-test: device is busy.
  88. (In some cases useful info about processes that use
  89. the device is found by lsof(8) or fuser(1)) can_eject=0
  90.  
  91. is_shadowed=0
  92.  
  93. + break
  94. + sudo umount /tmp/tmp.4qsCSEuhS8-gvfs-test
  95. Volume changed: '10 MB Filesystem'
  96. Volume(0): 10 MB Filesystem
  97. Type: GProxyVolume (GProxyVolumeMonitorGdu)
  98. ids:
  99. unix-device: '/dev/loop0'
  100. uuid: '8fa1088b-0989-4bb5-bca4-2f4f6fe92dc1'
  101. themed icons: [drive-removable-media-file] [drive-removable-media] [drive-removable] [drive]
  102. can_mount=1
  103. can_eject=0
  104. should_automount=0
  105. Mount(0): 10 MB Filesystem -> file:///tmp/tmp.4qsCSEuhS8-gvfs-test
  106. Type: GProxyMount (GProxyVolumeMonitorGdu)
  107. default_location=file:///tmp/tmp.4qsCSEuhS8-gvfs-test
  108. themed icons: [drive-removable-media-file] [drive-removable-media] [drive-removable] [drive]
  109. can_unmount=1
  110. can_eject=0
  111. is_shadowed=0
  112.  
  113. Mount changed: '10 MB Filesystem'
  114. Mount(0): 10 MB Filesystem -> file:///tmp/tmp.4qsCSEuhS8-gvfs-test
  115. Type: GProxyMount (GProxyVolumeMonitorGdu)
  116. default_location=file:///tmp/tmp.4qsCSEuhS8-gvfs-test
  117. themed icons: [drive-removable-media-file] [drive-removable-media] [drive-removable] [drive]
  118. can_unmount=1
  119. can_eject=0
  120. is_shadowed=0
  121.  
  122. Drive disconnected: '10 MB File'
  123. Drive(0): 10 MB File
  124. Type: GProxyDrive (GProxyVolumeMonitorGdu)
  125. ids:
  126. unix-device: '/dev/loop0'
  127. themed icons: [drive-removable-media-file] [drive-removable-media] [drive-removable] [drive]
  128. is_media_removable=0
  129. has_media=1
  130. is_media_check_automatic=0
  131. can_poll_for_media=0
  132. can_eject=0
  133. can_start=0
  134. can_stop=0
  135. start_stop_type=unknown
  136.  
  137. Volume removed: '10 MB Filesystem'
  138. Volume(0): 10 MB Filesystem
  139. Type: GProxyVolume (GProxyVolumeMonitorGdu)
  140. ids:
  141. unix-device: '/dev/loop0'
  142. uuid: '8fa1088b-0989-4bb5-bca4-2f4f6fe92dc1'
  143. themed icons: [drive-removable-media-file] [drive-removable-media] [drive-removable] [drive]
  144. can_mount=1
  145. can_eject=0
  146. should_automount=0
  147.  
  148. Mount removed: '10 MB Filesystem'
  149. Mount(0): 10 MB Filesystem -> file:///tmp/tmp.4qsCSEuhS8-gvfs-test
  150. Type: GProxyMount (GProxyVolumeMonitorGdu)
  151. default_location=file:///tmp/tmp.4qsCSEuhS8-gvfs-test
  152. themed icons: [drive-removable-media-file] [drive-removable-media] [drive-removable] [drive]
  153. can_unmount=1
  154. can_eject=0
  155. is_shadowed=0
  156.  
  157. Drive connected: '10 MB File'
  158. Drive(0): 10 MB File
  159. Type: GProxyDrive (GProxyVolumeMonitorGdu)
  160. ids:
  161. unix-device: '/dev/loop0'
  162. themed icons: [drive-removable-media-file] [drive-removable-media] [drive-removable] [drive]
  163. is_media_removable=0
  164. has_media=1
  165. is_media_check_automatic=0
  166. can_poll_for_media=0
  167. can_eject=0
  168. can_start=0
  169. can_stop=0
  170. start_stop_type=unknown
  171. Volume(0): 10 MB Filesystem
  172. Type: GProxyVolume (GProxyVolumeMonitorGdu)
  173. ids:
  174. unix-device: '/dev/loop0'
  175. uuid: '8fa1088b-0989-4bb5-bca4-2f4f6fe92dc1'
  176. themed icons: [drive-removable-media-file] [drive-removable-media] [drive-removable] [drive]
  177. can_mount=1
  178. can_eject=0
  179. should_automount=0
  180.  
  181. Volume added: '10 MB Filesystem'
  182. Volume(0): 10 MB Filesystem
  183. Type: GProxyVolume (GProxyVolumeMonitorGdu)
  184. ids:
  185. unix-device: '/dev/loop0'
  186. uuid: '8fa1088b-0989-4bb5-bca4-2f4f6fe92dc1'
  187. themed icons: [drive-removable-media-file] [drive-removable-media] [drive-removable] [drive]
  188. can_mount=1
  189. can_eject=0
  190. should_automount=0
  191.  
  192. + sudo losetup -d /dev/loop0
  193. + rm -rf /tmp/tmp.L3Nlv4Ukhc-gvfs-test /tmp/tmp.4qsCSEuhS8-gvfs-test
  194. + sleep 5
  195. Volume changed: '10 MB Filesystem'
  196. Volume(0): 10 MB Filesystem
  197. Type: GProxyVolume (GProxyVolumeMonitorGdu)
  198. ids:
  199. unix-device: '/dev/loop0'
  200. uuid: '8fa1088b-0989-4bb5-bca4-2f4f6fe92dc1'
  201. themed icons: [drive-removable-media-file] [drive-removable-media] [drive-removable] [drive]
  202. can_mount=1
  203. can_eject=0
  204. should_automount=0
  205.  
  206. Drive disconnected: '10 MB File'
  207. Drive(0): 10 MB File
  208. Type: GProxyDrive (GProxyVolumeMonitorGdu)
  209. ids:
  210. unix-device: '/dev/loop0'
  211. themed icons: [drive-removable-media-file] [drive-removable-media] [drive-removable] [drive]
  212. is_media_removable=0
  213. has_media=1
  214. is_media_check_automatic=0
  215. can_poll_for_media=0
  216. can_eject=0
  217. can_start=0
  218. can_stop=0
  219. start_stop_type=unknown
  220.  
  221. Volume removed: '10 MB Filesystem'
  222. Volume(0): 10 MB Filesystem
  223. Type: GProxyVolume (GProxyVolumeMonitorGdu)
  224. ids:
  225. unix-device: '/dev/loop0'
  226. uuid: '8fa1088b-0989-4bb5-bca4-2f4f6fe92dc1'
  227. themed icons: [drive-removable-media-file] [drive-removable-media] [drive-removable] [drive]
  228. can_mount=1
  229. can_eject=0
  230. should_automount=0
Advertisement
Add Comment
Please, Sign In to add comment