Thread (19 messages) 19 messages, 5 authors, 2016-12-05

Re: [PATCH 1/4] statx: Add a system call to make enhanced file info available [ver #3]

From: David Howells <hidden>
Date: 2016-11-24 07:27:33
Also in: linux-fsdevel, lkml

Andreas Dilger [off-list ref] wrote:
quoted
+		case S_IFCHR:	printf(" character special file\n");	ft = 'c'; break;
This will overflow 80 columns.  Could use just "character special"?
quoted
+		case S_IFDIR:	printf(" directory\n");			ft = 'd'; break;
+		case S_IFBLK:	printf(" block special file\n");	ft = 'b'; break;
+		case S_IFREG:	printf(" regular file\n");		ft = '-'; break;
+		case S_IFLNK:	printf(" symbolic link\n");		ft = 'l'; break;
Having these all as single-word items would make it easier to parse for
test programs.  Same with "IO Block:" -> "Blocksize:".  Not a huge deal.
Try doing "stat /dev/null".

David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help