From 3d11760fe04a8563ff0eb12c79c51660f1d7e87d Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 5 Jan 2007 19:08:19 +0100 Subject: inotail.c: Print version information to stdout --- inotail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inotail.c') diff --git a/inotail.c b/inotail.c index 783ac3b..ebf2a40 100644 --- a/inotail.c +++ b/inotail.c @@ -424,7 +424,7 @@ int main(int argc, char **argv) verbose = 1; break; case 'V': - fprintf(stderr, "%s %s\n", PROGRAM_NAME, VERSION); + fprintf(stdout, "%s %s\n", PROGRAM_NAME, VERSION); return 0; case 'h': usage(EXIT_SUCCESS); -- cgit v1.2.3-54-g00ecf git'>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2016-04-29 11:27:30 +0800
committerIlya Dryomov <idryomov@gmail.com>2016-05-26 01:15:36 +0200
commitf3c4ebe65ea149ec892f94474233cfebe9cbe299 (patch)
tree4a6aa1280fa6160d55935577792cd5d46e18f665
parent076c40f18d10489e29c515bf5936952830df5e16 (diff)
ceph: using hash value to compose dentry offset
If MDS sorts dentries in dirfrag in hash order, we use hash value to compose dentry offset. dentry offset is: (0xff << 52) | ((24 bits hash) << 28) | (the nth entry hash hash collision) This offset is stable across directory fragmentation. This alos means there is no need to reset readdir offset if directory get fragmented in the middle of readdir. Signed-off-by: Yan, Zheng <zyan@redhat.com>