LU-2675 build: remove WinNT "support" Remove the WinNT "support" code. It's not maintained or used. Signed-off-by: John L. Hammond <john.hammond@intel.com> Change-Id: I361bfce148a040db60d68d3c34a399415f2dd628 Reviewed-on: http://review.whamcloud.com/11385 Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com> Reviewed-by: Bob Glossman <bob.glossman@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-4278 libcfs: remove LWT The LWT code has been disabled on all platforms since being merged. Now that its functionality can be replaces by Systemtap etc, it is on longer needed. Signed-off-by: Peng Tao <bergwolf@gmail.com> Change-Id: I21dc913bfdbbf1bfba5e0d7de3d43b183f0e5b23 Reviewed-on: http://review.whamcloud.com/8340 Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com> Reviewed-by: James Simmons <uja.ornl@gmail.com> Reviewed-by: John L. Hammond <john.hammond@intel.com> Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Revert "LU-1346 libcfs: replace CFS_CAP_XXX with kernel definition" Shadow raised pretty valid points about compatibility and wire protocol changes caused by this patch i LU-1346 comments, so reverting This reverts commit b22fb817507ff52c02de38435fe90d758e852105 Change-Id: Ia0fcd279d17c9f996b2726e4bd5f115d1c629f49 Reviewed-on: http://review.whamcloud.com/7798 Reviewed-by: Oleg Drokin <oleg.drokin@intel.com> Tested-by: Oleg Drokin <oleg.drokin@intel.com>
LU-1346 libcfs: replace CFS_CAP_XXX with kernel definition Replace CFS_CAP_XXX with kernel standard CAP_XXX flags. Keep cfs_cap_xxx(raise/lower/raised) wrappers. Signed-off-by: Liu Xuezhao <xuezhao.liu@emc.com> Signed-off-by: Peng Tao <tao.peng@emc.com> Signed-off-by: James Simmons <uja.ornl@gmail.com> Change-Id: I656c41b94e73bf8d03698a8709be999038a50b35 Reviewed-on: http://review.whamcloud.com/4781 Tested-by: Maloo <whamcloud.maloo@gmail.com> Tested-by: Hudson Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
LU-1346 libcfs: cleanup libcfs primitive (linux-prim.h) Affected primitives: CFS_KERN_XXX, CFS_L1_CACHE_ALIGN, CFS_NR_IRQS, CFS_EXPORT_SYMBOL, cfs_psdev_t, cfs_psdev_register/deregister, cfs_sysctl_table_t, cfs_sysctl_table_header_t, cfs_unregister_sysctl_table, PORTAL_SYMBOL_PUT/GET, PORTAL_MODULE_USE/UNUSE, cfs_(try_)module_get, __cfs_module_get, cfs_module_refcount, cfs_module_t, cfs_request_module Signed-off-by: Peng Tao <tao.peng@emc.com> Signed-off-by: Liu Xuezhao <xuezhao.liu@emc.com> Signed-off-by: James Simmons <uja.ornl@gmail.com> Change-Id: Ie1ab42d60b2cba052bb21f4ec5b02a7f7a555515 Reviewed-on: http://review.whamcloud.com/6954 Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Keith Mannthey <keith.mannthey@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-1346 libcfs: cleanup macros in kp30.h Some macro cleanup in kp30.h Some other changes: . removes some unused/reduplicate macros such as our_recalc_sigpending, prepare_work, cfs_get_work_data, strtok, work_struct_t, SEM_COUNT, PORTAL_SYMBOL_REGISTER/UNREGISTER, cfs_num_present_cpus, cfs_num_present_cpus . moves some different kernel version compatible macros/inlines to portals_compat25.h . needs not differentiate CONFIG_SMP for LASSERT_SPIN_LOCKED . get/put_cpu is avaiable for both SMP and !SMP This patch does not change LWT(Light-weight trace) related code. Signed-off-by: Liu Xuezhao <xuezhao.liu@emc.com> Signed-off-by: Peng Tao <tao.peng@emc.com> Signed-off-by: James Simmons <uja.ornl@gmail.com> Change-Id: Iaa3cda88d539f3d7e677b7accda99b476daeddca Reviewed-on: http://review.whamcloud.com/4776 Reviewed-by: Keith Mannthey <keith.mannthey@intel.com> Tested-by: Hudson Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Reviewed-by: Yang Sheng <yang.sheng@intel.com> Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-2800 autoconf: remove obsolete autoconf options This commit combines 53 previous commits that only remove tests and the corresponding dead code. The only exceptions are whitespace removal in lustre/autoconf/lustre-core.m4 and removal of dead code shrinking an if/else in lustre/llite/dir.c. Summary follows: autoconf: remove d_rehash_cond and __d_rehash tests - d_rehash_cond and __d_rehash were never exported in a mainline release. - A check of the RHEL6 and SLES11 SP2 sources shows they don't export them either. autoconf: remove LC_TASK_CLENV_STORE - LC_TASK_CLENV_STORE checks to see if task_struct->tux_info exists. - That was only the case on RHEL5, so we can drop it. The rest of the code is untouched since liblustre uses the same infrastructure. autoconf: remove filemap_populate, vm_ops->fault tests - filemap_populate and the vm_ops->fault have been deprecated or removed since v2.6.23. autoconf: remove LC_UMOUNTBEGIN_HAS_VFSMOUNT test - super_operations.umount_begin has taken a super_block since v2.6.26. autoconf: remove LC_CANCEL_DIRTY_PAGE test - cancel_dirty_page was added in v2.6.20 autoconf: remove crypto API checks - The block_cipher, hash_desc, and blkcipher_desc APIs have been added since v2.6.19. autoconf: remove LC_KERNEL_SPLICE_READ test - file_operations.splice_read has upstream since v2.6.23. autoconf: remove LC_KERNEL_SENDFILE test - file_operations.sendfile has been removed since v2.6.23. - RHEL4 versions had both APIs, but RHEL4 has been out of scope for some time. autoconf: remove LC_HAVE_EXPORTFS_H test - <linux/exportfs.h> has been in the upstream kernel since v2.6.23. autoconf: remove unused LC_EXPORTFS_DECODE_FH test - exportfs_decode_fh has been upstream since v2.6.23. autoconf: remove unused LC_HAVE_MMTYPES_H test - <linux/mm_types.h> has been upstream since v2.6.24. autoconf: remove LC_FH_TO_DENTRY test - export_operations.fh_to_dentry has been upstream since v2.6.24. autoconf: remove LC_EXPORT_BDI_INIT test - bdi_init has been in the upstream kernel since v2.6.24. autoconf: remove LC_PGMKWRITE_USE_VMFAULT test - vm_ops->page_mkwrite has taken a vm_fault pointer since v2.6.27. autoconf: remove LC_PGMKWRITE_COMPACT - The vm_operation_struct._pmkw variant of page_mkwrite never existed upstream. autoconf: remove LC_TRYLOCKPAGE test - trylock_page has been in the upstream kernel since v2.6.27. autoconf: remove unused LC_READ_INODE_IN_SBOPS test - super_operations->read_inode hasn't been in the upstream kernel since v2.6.26. autoconf: remove LC_EXPORT_INODE_PERMISSION test - inode_permission has been in the upstream kernel since v2.6.27. autoconf: remove LC_VFS_DQ_OFF test - vfs_dq_off was in the upstream kernel from v2.6.27..v2.6.33 - Commit 86097b23 (LU-2642 quota: update quota APIs) introduced support for the APIs used in v2.6.34. autoconf: remove LC_SB_HAS_QUOTA_ACTIVE test - sb_has_quota_active has been in the upstream kernel since v2.6.29. autoconf: remove LC_BDI_NAME test - backing_dev_info.name has been in the upstream kernel since v2.6.32. autoconf: remove LC_EXPORT_ADD_TO_PAGE_CACHE_LRU test - add_to_page_cache_lru has been in the upstream kernel since v2.6.30. - Also remove the now unused LC_PAGEVEC_LRU_ADD_FILE test. autoconf: remove LC_SB_ANY_QUOTA_ACTIVE test - sb_any_quota_active has been removed from the upstream kernel since v2.6.27. autoconf: remove LC_BLK_QUEUE_LOG_BLK_SIZE test - blk_queue_logical_block_size replaced blk_queue_hardsect_size in v2.6.31. autoconf: remove LC_VFS_INODE_NEWSIZE_OK test - inode_newsize_ok has been upstream since v2.6.32. autoconf: remove LC_CACHE_UPCALL test - cache_detail.cache_request was renamed to cache_detail.cache_upcall in v2.6.32. autoconf: remove LC_REQUEST_QUEUE_LIMITS test - request_queue.limits has been upstream since v2.6.32. autoconf: remove LC_EXPORT_BDI_REGISTER test - bdi_register has been upstream since v2.6.32. autoconf: remove LC_SB_BDI test - super_block.s_bdi was added to the upstream kernel in v2.6.32. autoconf: remove LC_BLK_QUEUE_MAX_SECTORS test - blk_queue_max_sectors was replaced with blk_queue_max_hw_sectors in v2.6.32. autoconf: remove LC_EXPORT_GENERIC_ERROR_REMOVE_PAGE test - generic_error_remove_page has been upstream since v2.6.32. autoconf: remove LC_EXPORT_ACCESS_PROCESS_VM test - access_process_vm has been exported from the kernel since v2.6.24. autoconf: remove LC_SELINUX_IS_ENABLED test - selinux_is_enabled has been in the upstream kernel since v2.6.32. autoconf: remove LC_D_OBTAIN_ALIAS test - d_obtain_alias has been upstream since v2.6.28. autoconf: remove LC_WRITE_BEGIN_END test - address_space_operations.write_begin/end have been upstream since v2.6.29. autoconf: remove LC_DENTRY_OPEN_4ARGS test - dentry_open took 4 arguments between v2.6.29..v3.5. - The new 3 argument version is tested with LC_DENTRY_OPEN_USE_PATH. autoconf: remove LIBCFS_TASKLIST_LOCK test - tasklist_lock hasn't been exported since v2.6.18. autoconf: remove LIBCFS_DIGEST_SETKEY_FLAGS test - digest_alt.dia_setkey took 4 arguments from v2.6.18..v2.6.32. - The code protected by this test was made obsolete by the LIBCFS_STRUCT_SHASH_ALG test. autoconf: remove LIBCFS_KMEM_CACHE_DESTROY_INT test - kmem_cache_destroy has returned void since v2.6.19. autoconf: remove LIBCFS_3ARGS_INIT_WORK test - INIT_WORK has taken two arguments since v2.6.20. autoconf: remove LIBCFS_2ARGS_REGISTER_SYSCTL test - register_sysctl_table has taken one argument since v2.6.21. autoconf: remove LIBCFS_KMEM_CACHE_CREATE_DTOR tests - kmem_cache_create hasn't had a dtor argument since v2.6.22. autoconf: remove LC_REGISTER_SHRINKER test - register_shrinker has been upstream since v2.6.23. autoconf: remove LIBCFS_SCATTERLIST_SETPAGE test - sg_set_page has been upstream since v2.6.24. autoconf: remove LIBCFS_SCATTERLIST_INITTABLE test - sg_init_table has been upstream since v2.6.24. autoconf: remove unused LIBCFS_NETWORK_NAMESPACE test - init_net has been upstream since v2.6.24. autoconf: remove unused LIBCFS_SEM_COUNT test - semaphores haven't used an atomic since v2.6.25. autoconf: remove LIBCFS_CRED_WRAPPERS test - The cred wrappers have been upstream since v2.6.29. autoconf: remove LIBCFS_STRUCT_CRED_IN_TASK test - struct cred has been a member of task_struct since v2.6.29. autoconf: remove LIBCFS_STRUCT_SHASH_ALG test - struct shash_alg has been upstream since v2.6.29. autoconf: remove LIBCFS_FUNC_UNSHARE_FS_STRUCT test - unshare_fs_struct has been upstream since v2.6.30. autoconf: remove LIBCFS_HAVE_SET_MEMS_ALLOWED test - set_mems_allowed has been upstream since v2.6.31. We can remove the tests and dead code. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: James Simmons <uja.ornl@gmail.com> Change-Id: I1e8c24bfc8e86169543ac41939d4d33317665b14 Reviewed-on: http://review.whamcloud.com/5505 Tested-by: Hudson Reviewed-by: Bob Glossman <bob.glossman@intel.com> Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Alexey Shvetsov <alexxy@gentoo.org> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-1347 build: remove the vim/emacs modelines Delete all of the vim/emacs modelines. Add copyright information for a few files. Signed-off-by: Liang Zhen <liang@whamcloud.com> Change-Id: Ic22ce8d8cc7786ffdb19937eb9f93a2d49aa2581 Reviewed-on: http://review.whamcloud.com/2658 Tested-by: Hudson Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
b=15599 hsm infrastructure https://bugzilla.lustre.org/attachment.cgi?id=31961 and wiretest update (https://bugzilla.lustre.org/attachment.cgi?id=31991) a=jc.lafoucriere i=andreas.dilger i=nathan.rutman i=vladimir.saveliev
Update copyrights on source files changed since 2010-02-15.
b=20339 Remove LPSZ definition. a=andreas.dilger i=alexey.lyashkov i=pravin
b=17167 libcfs: ensure all libcfs exported symbols to have cfs_ prefix i=Andreas Dilger
b=20339 reverting patch as Andreas suggested this can break child branch from HEAD which are not in sync with lustre-core/lustre. once most of child branch are updated and there is no user of LPSZ we can land it.
b=20339 a=adilger i=pravin i=alexey.lyashkov removes the declarations for LPSZ.
i=20339 reverting patch
b=20339 a=adilger i=pravin i=alexey.lyashkov removes the declarations for LPSZ entirely
b=18498 i=nikita i=shadow Minor fix to calculate index for trace_get_tcd() and trace_get_console_buffer() correctly.
b=16150 i=adilger i=robert i=liang winnt libcfs cleanup
b=16098 Add URL for GPLv2 license in copyright headers
Land b_head_libcfs onto HEAD (20080805_1722) b=16620 i=adilger i=shadow i=isaac First stage of Libcfs cleanup. This landing includes the patches from bugs 16159, 16420, 16445, 16478, and 16479.