Giter VIP home page Giter VIP logo

Comments (8)

cimryan avatar cimryan commented on August 21, 2024

The principal reason is because that's how it the script was written by the original author and we haven't found a need to change it.

Looking around on the internet, I could speculate that perhaps the reason it was written that way was in case the mount happened before name resolution happened. But I've read that there's a "netfs option that could also address this.

It sounds like you're saying that your archive server

  1. Doesn't have a stable IP address
  2. Isn't pingable

Is that right?

from teslausb.

Cisien avatar Cisien commented on August 21, 2024

I'm not sure how stable the IP address is, since this is fully Azure hosted, but they definitely block icmp ping on that address.

from teslausb.

Cisien avatar Cisien commented on August 21, 2024

it looks like the 'hping3' package can be used hping3 -c 1 -S -p 445 $hostname instead in order to test for connectivity to a cifs share.

from teslausb.

cimryan avatar cimryan commented on August 21, 2024

Does hping3 work for all CIFS shares, on Windows, MacOS, Samba, others? If so, it seems reasonable to replace the ping test with that test for CIFS archives.

The alternative would be to add Azure File Share as another hosting technology. The current organization of the files actually makes that option easier, but it would be nice to consolidate all the CIFS options.

from teslausb.

Cisien avatar Cisien commented on August 21, 2024

I have only tested with azure's file shares, but I believe it should work. It works by using a TCP SYN to test if the port is open and listening.

from teslausb.

cimryan avatar cimryan commented on August 21, 2024

If you'll submit a PR I'll be happy to merge it into a branch in this repo to increase the chance that someone will try out the change with a Windows share.

from teslausb.

Cisien avatar Cisien commented on August 21, 2024

#92

I've done some very basic testing locally with my windows 10 pc, and a freenas samba server I have running, and hping3 worked well.

from teslausb.

cimryan avatar cimryan commented on August 21, 2024

Merged!

from teslausb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.