Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

d_validate(9) [centos man page]

D_VALIDATE(9)							   The Linux VFS						     D_VALIDATE(9)

NAME
d_validate - verify dentry provided from insecure source (deprecated) SYNOPSIS
int d_validate(struct dentry * dentry, struct dentry * dparent); ARGUMENTS
dentry The dentry alleged to be valid child of dparent dparent The parent dentry (known to be valid) DESCRIPTION
An insecure source has sent us a dentry, here we verify it and dget it. This is used by ncpfs in its readdir implementation. Zero is returned in the dentry is invalid. This function is slow for big directories, and deprecated, do not use it. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 D_VALIDATE(9)

Check Out this Related Man Page

DEBUGFS_CREATE_U32(9)					      The debugfs filesystem					     DEBUGFS_CREATE_U32(9)

NAME
debugfs_create_u32 - create a debugfs file that is used to read and write an unsigned 32-bit value SYNOPSIS
struct dentry * debugfs_create_u32(const char * name, umode_t mode, struct dentry * parent, u32 * value); ARGUMENTS
name a pointer to a string containing the name of the file to create. mode the permission that the file should have parent a pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is NULL, then the file will be created in the root of the debugfs filesystem. value a pointer to the variable that the file should read to and write from. DESCRIPTION
This function creates a file in debugfs with the given name that contains the value of the variable value. If the mode variable is so set, it can be read from, and written to. This function will return a pointer to a dentry if it succeeds. This pointer must be passed to the debugfs_remove function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here.) If an error occurs, NULL will be returned. If debugfs is not enabled in the kernel, the value -ENODEV will be returned. It is not wise to check for this value, but rather, check for NULL or !NULL instead as to eliminate the need for #ifdef in the calling code. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 DEBUGFS_CREATE_U32(9)
Man Page

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Challenging Compare and validate question -- plus speed.

I have a tab delimited HUGE file (13 million records) with Detail, Metadata and Summary records. Sample File looks like this M BESTWESTERN 4 ACTIVITY_CNT_L12 A 3 M AIRTRAN 4 ACTIVITY_CNT_L12 A 3 D BESTWESTERN FIRSTNAME LASTNAME 209 N SANBORN AVE D BESTWESTERN FIRSTNAME LASTNAME 6997... (25 Replies)
Discussion started by: madhunk
25 Replies

2. Shell Programming and Scripting

How to Create LOG and Validate for this Script

Hi all, This is my Script #!/bin/bash current_date=`date +%d-%m-%Y_%H.%M.%S` Date=`date +%d%m%Y` Lfriday=`date +%d%m%Y -d last-friday` RootPath=/var/domaincount/com mysql zonefile<<EOFMYSQL CREATE TABLE com$Date(domain VARCHAR(255),col2 VARCHAR(255),col3 VARCHAR(255),col4... (10 Replies)
Discussion started by: anishkumarv
10 Replies

3. Shell Programming and Scripting

[Solved] Read and validate input arguments

Hi, I need to get input arguments, as well as validate them. This is how I'm reading them: #!/bin/bash args="$@" # save arguments to variable ## Read input arguments, if so while ; do case $1 in -v | --verbose ) verbose=true;; -z | --gzip ) compression="gz";; ... (3 Replies)
Discussion started by: AlbertGM
3 Replies

4. Shell Programming and Scripting

Bash to verify and validate file header and data type

The below bash is a file validation check executed that will verify the correct header count of 10 and the correct data type in each field of the tab-delimited file. The key has the data type of each field in it. My real data has 58 headers in it but only the header and next row need to be... (6 Replies)
Discussion started by: cmccabe
6 Replies

5. Shell Programming and Scripting

awk to compare files and validate order of headers

The below awk verifies the count and order of each text file in the directory. The script does execute and produce output, however the order of the headers are not compared to key. The portion in bold is supposed to do that. If the order of the headers in each text file is the same as key, then... (0 Replies)
Discussion started by: cmccabe
0 Replies