摘要:
The present invention provides a computer implemented method for truncating a file in a file system. The file system receives a request to truncate a file to a target size, the file having a first inode. The file system creates a second inode to a transient directory, wherein the second inode holds a plurality of in-progress entries. The file system sets a target size in the first inode. The file system writes a truncate entry to a journal, the truncate entry comprising a predetermined size. The file system truncates the file by up to the predetermined size. The file system determines that the file is above the target size. Responsive to a determination that the file is above the target size, the file system repeats the truncating step and the determining step. Responsive to a determination that the file is not above the target size, the file system applies the in-progress entries from the transient directory.
摘要:
Methods, systems, and products for delayed deletion of extended attributes associated with a file in a file system are provided. Embodiments include identifying a file to delete, moving an extended attribute directory associated with the file to a background deletion directory, deleting the file, and deleting in the background the extended attribute directory. Some embodiments also include deleting an ACL associated with the file.
摘要:
Methods to allow, suppress, or reformulate a presentation of a UI element invoked by a computer program are provided. One method includes applying an administrator-configurable heuristic to determine whether to allow a native presentation of the UI element, to suppress the native presentation of the UI element, or to enable a reformulated presentation of the UI element. The method further includes one or more of suppressing and reformulating the UI element in accordance with a determination of the heuristic.
摘要:
A system for managing a file system. In response to a user selecting an image of the file system to perform a rollback operation, each data block in the file system that is owned by the image is searched for. Then, it is determined whether a data block owned by the image is marked in a first map and a second map. In response to determining that the data block owned by the image is marked in the first map and the second map, the data block is marked in a third map. In response to determining that the data block owned by the image is marked in the third map, a new data block is allocated in the file system. Subsequently, data from the data block owned by the image is copied to the new data block in the file system prior to performing the rollback operation to avoid a collision that causes data corruption.
摘要:
A variable valve apparatus includes a high lift cam and a low lift cam in parallel with the high lift cam. A tappet body includes a high lift tappet body that constantly contacts the high lift cam, and a low lift tappet body that is disposed in the high lift tappet body and selectively contacts the low lift cam. An inner column is connected with a valve and reciprocally disposed within the low lift tappet body. A supporting member is disposed below the tappet body. A lost motion elastic member is disposed between the supporting member and the tappet body for supplying restoring force to the tappet body. A first connector selectively connects the high lift tappet body and the low lift tappet body. A second connector selectively connects the low lift tappet body and the inner column.
摘要:
A continuous variable valve lift apparatus according to an exemplary embodiment of the present invention includes an input cam disposed to an input shaft, a first shaft in parallel with the input shaft, a first link connected with the first shaft, a second link rotatably connected to the first link, an output cam that is rotatably connected with the second link and configured with a contact portion contacting the input cam, a second shaft disposed to the output cam parallel with the input shaft, at least one valve unit that is opened and closed by the output cam, and a control part that controls a position of the second shaft.
摘要:
A system and method in a data processing system for recovering data in a file system. A request to modify a data block in the file system is detected. In response to detecting the request to modify the data block, metadata describing the data block in the file system is written in a log. In response to detecting an error during the writing of the metadata, an error counter is incremented. Finally, in response to a request to recover the data in the file system, the metadata is read only if the error counter is less than or equal to a predetermined value.
摘要:
A method, apparatus, and computer instructions for managing data in a file system in a data processing system. A request to modify a data block in the file system is detected during file system recovery time. In response to detecting the request, metadata is written to describe the data block into a snapshot image. The data is copied for the data block in the file system to the snapshot image. The data block is modified in the file system after the data is copied into the snapshot image. The snapshot image may be used to return the file system to a state prior to modifying the data block in the file system.
摘要:
Methods, systems, and products for delayed deletion of extended attributes associated with a file in a file system are provided. Embodiments include identifying a file to delete, moving an extended attribute directory associated with the file to a background deletion directory, deleting the file, and deleting in the background the extended attribute directory. Some embodiments also include deleting an ACL associated with the file.
摘要:
An apparatus and method for distributing work on a doubly linked list to a plurality of worker threads are provided. With the apparatus and method, an initial thread obtains the list lock for the linked list and inserts a marker element at the beginning of the linked list. Elements in the linked list that are before the marker element in the linked list are considered work that has been assigned or work that has been completed. Elements of the linked list that are after the marker element in the linked list are work to be done. The initial thread spawns worker threads to perform the work on the linked list and passes the address of the marker element to each of the worker threads. Each worker thread then operates independently to perform work on the linked list based on the current position of the marker element in the linked list.