Beispiel #1
0
        public int Truncate(Thread current, int length)
        {
            switch (kind)
            {
            case INodeKind.ArchINodeKind:
                return(ArchINode.ftruncate(current, length));

            case INodeKind.SecureFSINodeKind:
                return(SFSINode.ftruncate(length));
            }

            return(-ErrorCode.EINVAL);
        }