Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752740AbeAQKqd (ORCPT + 1 other); Wed, 17 Jan 2018 05:46:33 -0500 Received: from smtpbgau2.qq.com ([54.206.34.216]:53501 "EHLO smtpbgau2.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750853AbeAQKqc (ORCPT ); Wed, 17 Jan 2018 05:46:32 -0500 X-QQ-mid: esmtp27t1516185986tk900azwd X-QQ-SSF: A1000000000000709H110500000000R X-QQ-FEAT: g43DYpPXAn5pTTmvR80NCm3zACz5g/JUymG5vWda4zmV9anNQoJGW9w+xbs0H nLmvEg3fa1DiCwTrrDLSEv6puqOF9pCwtAEMW57p0QRPMo0UXlo5a48clXkM1EK/NFIkAQ2 c0SqjD3SPmf0xhReLxp92ZjU6okfzXLEJGMqjTrHb6iOuEt4JXntZWeeUXcK93WvH14OgHY 8Lz2fhdr/zmhB1poiVEYktDPR1gLkX3NOcEeJtCwsEcV1r956HiV3RR5myKP5vSVkGI7uF2 cllQQcg5hJopEN X-QQ-GoodBg: 0 From: ChenGuanqiao To: hirofumi@mail.parknet.co.jp Cc: linux-kernel@vger.kernel.org, ChenGuanqiao Subject: [PATCH v8 0/3] fs: fat: add ioctl to modify fat filesystem partion volume label Date: Wed, 17 Jan 2018 18:43:52 +0800 Message-Id: <20180117104355.889-1-chen.chenchacha@foxmail.com> X-Mailer: git-send-email 2.11.0 X-QQ-SENDSIZE: 520 Feedback-ID: esmtp:foxmail.com:bgforeign:bgforeign1 X-QQ-Bgrelay: 1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: The FAT filesystem partition volume label can be read with FAT_IOCTL_GET_VOLUME_LABEL and written with FAT_IOCTL_SET_VOLUME_LABEL. FAT volume label (volume name) is exactly same stored in boot sector and root directory. Thus, the boot sector just needs to be upgrade when the label writing. And, Ignore the volume label in struct msdos_sb_info. v8: 1. struct msdos_sb_info reduction. 2. remove MSDOS_ROOT_INO check in label entry search. 3. replace uppercase in the label with lowercase, like windows. 4. put the copy_to_user() back into the lock. 5. delete unnecessary lock. v7...v1: write the patch ChenGuanqiao (3): fs: fat: Add fat filesystem partition volume label in local structure fs: fat: Add volume label entry method function fs: fat: add ioctl method in fat filesystem driver fs/fat/dir.c | 47 +++++++++++++++ fs/fat/fat.h | 5 ++ fs/fat/file.c | 132 ++++++++++++++++++++++++++++++++++++++++++ fs/fat/inode.c | 6 ++ include/uapi/linux/msdos_fs.h | 2 + 5 files changed, 192 insertions(+) -- 2.11.0