code: def on_same_fs(request):
      
      filename = request.POST['filename']
      checksum_in = request.POST['checksum']
  
      checksum = 0
      try:
          data = open(filename, 'rb').read(32)
          checksum = zlib.adler32(data, checksum) & 0xffffffff
          if checksum == int(checksum_in):
              return HttpResponse(content=json.dumps({'success': True}),
                                  content_type=JSON, status=200)
      except (IOError, ValueError):
          pass
  
      return HttpResponse(content=json.dumps({'success': False}),
                          content_type=JSON, status=200)
docs: Accept a POST request to check access to a FS available by a client.
  
      :param request:
          `django.http.HttpRequest` object, containing mandatory parameters
          filename and checksum.