Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixme error message - This should never happen. #151

Open
shuther opened this issue Jan 23, 2024 · 2 comments
Open

fixme error message - This should never happen. #151

shuther opened this issue Jan 23, 2024 · 2 comments

Comments

@shuther
Copy link

shuther commented Jan 23, 2024

I am not sure what should be shared in this case, but I am getting this error message.
Let me know if I can run it with debugs.

Also, I am not sure the min size is interpreted properly. I don't think I have so many files over 200MB?

rdfind -makehardlinks true -ignoreempty true -minsize 200M -dryrun true ~/devProjects/
(DRYRUN MODE) Now scanning "/home/shuther/devProjects"
Dirlist.cc::handlepossiblefile: This should never happen. FIXME! details on the next row:
possiblefile="/home/shuther/devProjects/proxyP1/SecureAI-Tools/deployment/db"
, found 789093 files.
(DRYRUN MODE) Now have 789093 files in total.
(DRYRUN MODE) Removed 27167 files due to nonunique device and inode.
(DRYRUN MODE) Total size is 262926893732 bytes or 245 GiB
Removed 25620 files due to unique sizes from list. 736306 files left.
(DRYRUN MODE) Now eliminating candidates based on first bytes:

@shuther
Copy link
Author

shuther commented Jan 23, 2024

for the minimum size, it seems the k/m is not supported; maybe we should get an error message if a letter is used or it should be supported?

@fire-eggs
Copy link

This is the relevant chunk of code from DirList.cc:

  if (S_ISDIR(info.st_mode)) {
    std::cerr << "Dirlist.cc::handlepossiblefile: This should never happen. "
                 "FIXME! details on the next row:\n";
    std::cerr << "possiblefile=\"" << possiblefile << "\"\n";
    // this should never happen, because this function is only to be called
    // for items that can not be opened with opendir.
    // maybe it happens if someone else is changing the file while we
    // are reading it?
    return -2;

So what would be useful is to know more about /home/shuther/devProjects/proxyP1/SecureAI-Tools/deployment/db. Is it a file? Folder? Link? Could it have been locked by something at the instant that rdfind was looking at it? An access rights issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants