Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3399664
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:47:55+00:00 2026-05-18T04:47:55+00:00

I have developed an C++ algorithm, which saves the contents of a USB key

  • 0

I have developed an C++ algorithm, which saves the contents of a USB key in a database. In the Database, as well as save the file names are saved on the USB device info: free blocks and vendors.
So when I put more control keys free blocks.
If the comparison were to change, the database must be recreated. So if I remove or add files to the USB key, the database is rebuilt from scratch. But when I rename a file, nothing happens.
You can find out the changes without having to check each file in the database?

How can I better control of the entire contents of a USB device? Some help!

Thanks!

P.s.: I used ioctl for vendor name and free blocks!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T04:47:56+00:00Added an answer on May 18, 2026 at 4:47 am

    You could create a hash value from the folder file listing and store that in your DB.

    Each time the USB stick is inserted perform the hash calculation of the folder listing and compare to the value stored. If they are different you can assume files have been removed, added or renamed and perform a refresh of your DB.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have developed an algorithm library in C++ which allows the user to implement
I have developed sample api as jar file. This jar file contains the code
I have developed a small administration page for game servers which you can add/remove/edit
i have developed an app which executes sql jobs. When I click on execute
I have developed a gem which implements some algorithms that we'll use within a
I have an algorithm that receives input and delivers output which I would like
I have developed an algorithm to find factors of a given number. Thus it
I have a algorithm which does bin packing based on certain conditions. I find
I am trying to develop an algorithm wherein I have a Location Class. In
I have developed a web site that requires user registration and authentication for some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.