Skip to content
Snippets Groups Projects
  • Phil Schwan's avatar
    4b285975
    land b_md onto HEAD: · 4b285975
    Phil Schwan authored
     - LRU counters were broken, causing constant lock purge (433, 432)
     - the first part of the fixes for the ldlm_handle2lock race (419)
     - cleanup unused ll_inode_info field (442)
     - keep ioctl semaphore from serializing test_getattr/brw
    4b285975
    History
    land b_md onto HEAD:
    Phil Schwan authored
     - LRU counters were broken, causing constant lock purge (433, 432)
     - the first part of the fixes for the ldlm_handle2lock race (419)
     - cleanup unused ll_inode_info field (442)
     - keep ioctl semaphore from serializing test_getattr/brw
mcreate.c 484 B
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>

int main(int argc, char ** argv)
{
        int rc;

        if (argc < 2) {
                printf("Usage %s filename\n", argv[0]);
                return 1;
        }

        rc = mknod(argv[1], S_IFREG | 0644, 0);
        if (rc) {
                printf("mknod(%s) error: %s\n", argv[1], strerror(errno));
        }
        return rc;
}