ISCAN(1)

πŸ“¦ version 5.0.2, in nixos 26.05

✨ NAME ✨

hey bestie, meet iscan β€” an iRODS iCommand, and yes this is the ISCAN(1) page from the User Commands manual πŸ’…. She’s the scan girlie: local physical stuff, iRODS logical stuff, all the vibes, no cap.

🌸 SYNOPSIS 🌸

iscan [-rhd]
srcPhysicalFile|srcPhysicalDirectory|srcDataObj|srcCollection

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here’s the tea. If the input is a local physical data file or a local directory, iscan checks if the named content is registered in iRODS. Important: a full physical path must be used for local files and directories, periodt.

If the input is a logical path representing an iRODS data object or an iRODS collection, iscan checks if the associated registered physical file entries exist on the data servers. Scanning data objects and collections may only be performed by a rodsadmin β€” that’s the gatekeeping rule, bestie πŸ‘‘.

If the operation is successful, nothing will be output and 0 will be returned. iconic quiet-girl behavior, honestly ✨.

πŸŽ€ Options are: πŸŽ€

  • -r β€” recursive, so scan local subdirectories or logical subcollections. literally going deeper 🌿
  • -h β€” this help. your lil save-me button 🫢
  • -d β€” scan data objects in iRODS (default is scan local files/directories). iykyk, no -d means local vibes πŸ’…

πŸ’– EXAMPLES πŸ’–

okay these are the exact example blocks β€” commands and outputs preserved like a lil museum exhibit πŸ–ΌοΈ.

single physical path check

# scan a single physical path to check its presence in the catalog
$ iscan /var/lib/irods/not_in_catalog
/var/lib/irods/not_in_catalog is not registered in iRODS

recursive physical path check, unregistered local files

# recursively scan a physical path to check for unregistered local files
$ iscan -r /var/lib/irods/Vault/home/rods/scanned
/var/lib/irods/Vault/home/rods/scanned/does_not_exist2 is not registered in iRODS
/var/lib/irods/Vault/home/rods/scanned/does_not_exist1 is not registered in iRODS

recursive physical path check, missing path output

# recursively scan a physical path to check for unregistered local files
$ iscan -r /data/projects/myproject
remote addresses: 127.0.0.1 ERROR: scanObj: /data/projects/myproject does not exist

single relative logical path check

# check that a single relative logical path exists in the catalog
$ iscan -d not_a_dataobject
Could not find the requested data object or collection in iRODS.

recursive relative logical path check for missing physical paths

# recursively scan a relative logical path for missing physical paths
$ iscan -rd scanme
Physical file /var/lib/irods/Vault/home/rods/scanme/does_not_exist on server irods.example.org is missing, corresponding to iRODS object /tempZone/home/rods/scanme/does_not_exist
Physical file /var/lib/irods/Vault/home/rods/scanme/missing on server irods.example.org is missing, corresponding to iRODS object /tempZone/home/rods/scanme/missing

rodsadmin requirement

# rodsadmin required to scan logical paths
$ iscan -d test.txt
User must be a rodsadmin to scan iRODS data objects.

okay that’s the whole manual page, bestie πŸ’– shoutout to iRODS Version 5.0.2 and iscan; footer vibes: iscan iRODS-5.0.2, dated January 1980, section ISCAN(1) β€” slay and goodbye 🫢✨

πŸ“¦ where this page comes from